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

I never said it did. Of the many complains in-thread about Javascript, it's the main one that also applies to Lua. I'd say Lua's coroutines are a bigger feature for asynch. development, though.

I wrote an embedded non-blocking / event-loop webserver in Lua as part of one of my projects (a distributed filesystem). I got sidetracked by other projects, and lost interest in writing non-blocking webservers after I got into Erlang, but plan on getting back to the filesystem soon. If I find time to neaten up that code, are you interested in swapping notes?

One tricky part is error handling - I spent a lot of time on that (and was pretty impressed by Erlang's error handling model). I don't know how well node.js does that, beyond managing control flow by hand.



>If I find time to neaten up that code, are you interested in swapping notes?

Yes, I wrote a coroutine-less one here and tried to include design decisions in readme: https://github.com/davidhollander/ox

It works for HTTP but has few features so far. I have a bunch of exploratory code lying around though, so I could be adding message passing or better fileserving to it in the future. I will send you an email at some point.




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

Search: