3 ms·
Lua's primary multitasking primitive is coroutines, and they work quite well. Preemptive threading support can be bolted onto the language, but the coroutine su
by sharkbot 16y ago
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).
- epall 16y agoMonocle (http://saucelabs.github.com/monocle/ http://saucelabs.github.com/monocle/) solves a lot of the issues with using Python generators as coroutines.