[E-Lang] Why Not Coroutines? (was: Deadlock-free [was what is good about E?])

Richard greon@best.com
Thu, 19 Jul 2001 19:02:36 -0700


Dan Moniz writes:

>At 11:03 PM -0700 7/18/01, Richard wrote:

>>I think what Dan means is that he has seen code where one thread
>>just produces a stream of values and another thread consumes said values.
>>He would prefer for coroutines to be used for that instead of
>>threads, if the language supports coroutines, and I think I share his
>>preference.

>Coroutine threads (or user threads) are merely one application 
>(albeit a popular one) of coroutines.

You seem to be saying that coroutines can be used to implement user
threading.  No.  *Continuations* (which are provided, eg, by Scheme and
Stackless Python) can be used to implement user threading.  You mean
"continuations".

http://www.stackless.com/spcpaper.htm
"Continuations and Stackless Python"