views:

254

answers:

3

What is the Lua equivalent of Twisted Python, Eventmachine for Ruby, NIO for Java, etc.?

If there is none, how does one do non-blocking event-based network I/O?

In general, how does one solve the C10K problem in Lua?

Thanks!

+1  A: 

Looks like lua-ev is your best bet.

Ignacio Vazquez-Abrams
Eeek this is horrible looking:http://github.com/brimworks/lua-ev/blob/master/test/test_ev_io.lua#L50-L106
z8000
A: 

I don't understand all the buzzwords in your question, but looking up the C10K problem suggested that Lua coroutines in the context of the Kepler project might be helpful. That would certainly be the place I would go to create a highly performant Web app using Lua and serving large numbers of clients.

Norman Ramsey
I am having trouble understanding the question as well. Copas might be enough, or ConcurrentLua or Lua Lanes.
ponzao
A: 

Node.js. Javascript isn't too much different from Lua and node is crazy fast.

ysaw