Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> event loops require inversion of control

Nope. Coroutines cut that gordian knot. Inversion of control is for when you want to make code verbose and hard to reason about!

I have a partially complete node.js-esque system in Lua (Javascript's smart brother, which has efficient and well-integrated coroutines), but I may not finish it for a while, at this point - I've gotten pulled into Erlang instead (and life, in general). I kept feeling like I was reimplementing Erlang, anyways. (My LuaSocket.select-based backend works, but my high-scalabilityTM libev backed is on hiatus, and the usual select vs. epoll/kqueue trade-offs apply.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: