Re:RethinkDB internals: making coroutines fast
by sharkbot on Thursday December 23, 2010 @04:12PM
(#2035858)
Lua's primary multitasking primitive is coroutines, and they work quite well. Preemptive threading support can be bolted onto the language, but the coroutine support is well thought-out and elegant, and doesn't suffer from the limitations of Python's generators (i.e., yielding from within nested function calls).
[ Parent
| on HN ]
Re:RethinkDB internals: making coroutines fast
by epall on Thursday December 23, 2010 @05:20PM
(#2036050)
Monocle (http://saucelabs.github.com/monocle/) solves a lot of the issues with using Python generators as coroutines.