Unblocking sleep semantics

Axel Rauschmayer axel at rauschma.de
Tue Jan 17 12:38:23 PST 2012

More material: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/

On Jan 17, 2012, at 21:30 , Dean Landolt wrote:

> You can get these semantics with generators plus a library (see Dave Herman's task.js [1] as a great example). As generators your `return function;` special form would be spelled spelled `yield` instead, and as shallow continuations this style avoids the potential interleaving hazards implied by your proposal (the inherent run-to-completion violation of fibers).
> [1] https://github.com/mozilla/task.js

Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120117/15758ec3/attachment-0001.html>

More information about the es-discuss mailing list