Re:Node.js has jumped the shark
by swah on Tuesday October 04, 2011 @02:09PM
(#3072091)
Does the same criticism applies to code written with Greenlet/Gevent (see for example Brubeck web server)?
[ Parent
| on HN ]
Yes, not yielding control from a function in any evented framework will block the main event loop.
In programming languages that support coroutines, yielding a sleep every few loops will release the event loop. In languages without coroutines like javascript you will need to write your algorithm in CPS to release the event loop.