Wednesday, January 16, 2013

Coroutine Event Loops in Javascript (link)

Javascript 1.7, currently only available in Firefox, introduces a yield keyword for implementing generators and coroutines. An intriguing use of coroutines is to implement event loops as an alternative to callback functions. This is particularly relevant to Javascript, where the use of callbacks is pervasive.


No comments:

Post a Comment