continuations
How does this Scheme list iterator use call-with-current-continuation?
I\'m trying to read this code: (define list-iter (lambda (a-list) (define iter (lambda () (call-with-current-continuation control-state)))[详细]
2023-02-24 03:39 分类:问答Do continuation record the PC and register states?
currently, when I am experimenting the continuation in functional languages, my understanding is that a continuation records the current program counter and register files, and when a continuation is[详细]
2023-02-20 13:55 分类:问答Scala: compilation error when declaring continuation of type Any => Nothing
This code gives compilation error: import scala.util.continuations._ object CTest { def loop: Nothing = reset {[详细]
2023-02-17 22:20 分类:问答Are there any programming languages where continuations restore the heap in addition to the stack?
Languages that I am familiar with with support for continuations (Scheme and Ruby) restore the stack state and instruction pointer from when the continuation was created. I am wondering if there are a[详细]
2023-02-17 15:22 分类:问答Real-world usage of Lua co-routines/continuation serialization to simplify async logic?
The Pluto library for Lua claims to be able to serialize Lua co-routines. I interpret this as meaning \'serializeable continuations\', which is an important feature for making asyncronous programming[详细]
2023-02-16 01:01 分类:问答Is Rhino the only interpreter with support for sandboxing and serializable continuations?
I need (a) sandboxing, and (b) serializeable continuations. I\'m exposing server-side game scripting to users, and it is extremely async, thus the callback pattern makes code un-readable and very un-a[详细]
2023-02-15 12:42 分类:问答Is continuation-style-programming prone to stack overflow
In response to this question about jQuery effects, I thought about using the callback argument to .fadeIn( 500, my_function ).[详细]
2023-02-12 02:40 分类:问答Is there any "idiom" or pattern in JS that'll let me pause execution while an animation runs?
I basically have this code: for (var i = 0; i < num; i++) { ShowCard(i); } Right now, ShowCard is just adding a DOM element, but I want it to have an animation that\'ll show this card flying fro[详细]
2023-02-10 10:52 分类:问答Continuations and implicit conversions
I was experimenting with continuations, and I came across a case that seems to suggest that @cpsParam thwarts implicit conversions.[详细]
2023-02-08 12:58 分类:问答GWT Server Push using Jetty Continuations?
I\'m supposed to implement a web application where the user log\'s in and by that registers for some sort of events (in this case, alarms). When an alarm happens, the server needs to push the alarm to[详细]
2023-02-06 20:25 分类:问答
加载中,请稍侯......