Re:Show HN: LuaJIT FFI binding to libuv with coroutines
by pguillory on Thursday August 28, 2014 @05:38PM
(#8239856)
In addition to what benjaminva said, luv uses callbacks (like Node.js), whereas this uses coroutines. So for example with luv you might do something like:
With this binding the code would look like:
With coroutines, you can use exceptions and for/while loops and they continue to work as you would expect.
[ Parent
| on HN ]
There are no comments on this comment yet.