Live data from Hacker News

Node.js Interview: 4 Questions with Creator Ryan Dahl

bostinnovation.com

1–5 of 5 posts

Re: Node.js Interview: 4 Questions with Creator Ryan Dahl

#4
>No matter what I did, someone was going to load an existing blocking Lua library in and ruin it.

I don't think this is the case, the most popular library for networking in Lua has been COPAS, which does nonblocking by using coroutines. And even the canonical guide to Lua, PiL http://www.lua.org/pil/, also has a chapter on using coroutines with LuaSocket to download multiple files asynchronously at the same time. Most complaints of Lua are about having too few libraries, so it's interesting to see an argument claiming it has too many.

If anyone is interested in a nonblocking networking library that uses callbacks (similar to node.JS) instead of coroutines for Lua and LuaJIT, I've started such a project here: https://github.com/davidhollander/ox