[Neko] serializeable continuation possible?
ncannasse at motion-twin.com
Wed Apr 18 09:55:46 CEST 2007
> Hello List, Big up to Nicolas :)
Hi Luke !
> So some one line questions..
> 1. did anyone get anywhere with getting ruby running on neko ? that
> would really rock.
Robert Feldt managed to make a working prototype of Ruby-on-Neko, but I
don't know how much far he went.
> 2. does neko support continuations?
> 3. does haxe support continuations?
Continuations are not available in JS and Flash. And since they are not
available in Neko either, haXe has no support for them.
> 4. if so, is it possible to serialize them and restore them? I know its
Neko is already capable of serializing closures, and they can be
unserialized as long as the bytecode doesn't get changed.
If you manage to encode your architecture using closures instead of
continuations (that is, without using the VM stack as a state), then you
could use haXe/Neko without a problem.
One other possibility is to use Neko Threads for synchronization between
tasks. One thread waits for messages and worker threads sleep until the
task is resolved before notifying the main thread. Look at the
neko.vm.Thread haXe API.
More information about the Neko