3 ms·
It's not OO but you can roll your own. See: http://sleep.dashnine.org/manual/functions.html#3 http://sleep.dashnine.org/manual/functions.html#3 It does threadi
by raffi 17y ago
It's not OO but you can roll your own. See: http://sleep.dashnine.org/manual/functions.html#3 http://sleep.dashnine.org/manual/functions.html#3
It does threading using a fork(&function) abstraction. You can pass an initial set of variables to share but otherwise it's shared nothing. The fork returns an I/O handle which you can use to communicate values back and forth (even serialized objects). You can also wait(fork(&function)) to get a return value when the thread finishes.
The Manual, covers the whole language:
http://sleep.dashnine.org/manual/ http://sleep.dashnine.org/manual/
An article talking about some of the fun things to do with continuations:
http://today.java.net/pub/a/today/2008/07/24/fun-with-continuations.html http://today.java.net/pub/a/today/2008/07/24/fun-with-contin...
Blog with Sleep examples:
http://www.jroller.com/sleepsnip/feed/entries/rss http://www.jroller.com/sleepsnip/feed/entries/rss
There is also a web app server for it.
http://www.hick.org/~raffi/moconti.html http://www.hick.org/~raffi/moconti.html