3 ms·
Node.js Interview: 4 Questions with Creator Ryan Dahl
- chr15 15y agoFYI from January 31, 2011.
- silentbicycle 15y agoPreviously: http://news.ycombinator.com/item?id=2163234 http://news.ycombinator.com/item?id=2163234
- rocksy 15y agoconversation on that is much better than this repost
- davidhollander 15y ago>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/ 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 https://github.com/davidhollander/ox