lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 9, 2012 at 1:22 PM, Rob Hoelz <rob@hoelz.ro> wrote:
Basically, I want to create an event library for Lua [..] on coroutines

You might want to look at https://github.com/SierraWireless/luasched, which I presented at last year's Lua workshop (http://www.lua.org/wshop11/m2m-embedded-development-with-lua.pdf, starting at slide #19). What's published on github is POSIX/select() based, but it's easily ported on event-loop-based system: we've got it running without a proper OS underneath, directly on a microcontroller's event loop.

The detailed reference doc is in https://github.com/SierraWireless/luasched/blob/master/sched/init.lua's comments, and can be generated with LDoc (will soon move on to Eclipse's Lua documentor system). We should commit the generated doc on github IMO, I'll try to do that.