[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: how to make a callback based socket interface?
- From: Fabien <fleutot+lua@...>
- Date: Fri, 30 Sep 2011 12:14:46 +0200
I believe that nmap does something like that for its Lua workers; you should check their sources.
Beware though that despite Node.js' hype, callback-driven APIs quickly turn user code into an unmaintainable spaghetti plate mess.
The antidote to this is coroutine, offering callback performances with normal code readability, and Lua is one of the few languages which properrly supports them.
On Fri, Sep 30, 2011 at 11:55 AM, Xavier Wang <email@example.com>
are there callback based socket interface in Lua?