Arc Forumnew | comments | leaders | submitlogin
1 point by dido 6151 days ago | link | parent

I have news. Continuations can and are used to implement lightweight processes/green threads. Stackless Python is one example. See for instance here:

http://www.stackless.com/spcpaper.htm

Continuations are more general than lightweight processes. They can also be used to implement exceptions, coroutines, and Ruby-style generators, and many other interesting control abstractions besides.



1 point by KirinDave 6151 days ago | link

I have news. That your news is not news.

I'm just curious why we'd explicitly be re-implementing lwp over and over for each unique use rather than having a more formal implementation.

It's great that the arc application server does this for us, but maybe it could be part of the language? It certainly gives a lot of flexibility and it's a no brainer for making programs shorter, since any sort of server would be rewriting it (and probably with many uniquely wrong choices).

-----