On Sat, Apr 25, 2009 at 9:38 AM, Asko Kauppi
<askok@dnainternet.net> wrote:
Have you looked at Lanes?
http://luaforge.net/projects/lanes/
http://kotisivu.dnainternet.net/askok/bin/lanes/
It is a loadable module that provides Lua state separation, message passing, shared table storage etc. It is not using coroutines for this, but individual Lua states run on OS threads.
-asko
Phoenix Sol kirjoitti 25.4.2009 kello 18:24:
Olá lua list,
I feel like I am standing on a precipice here, contemplating lua, and running out of reasons not to dive off...
Is it safe to assume that it would be relatively easy to implement 'message-passing-style-scheduling' in lua, where one coroutine yields to another by passing a message to it? (without accumulating stack frames?!)
Can this be done in lua, without changes to the interpreter?
What I am really after, is a lua implementation of Stackless Python's 'Channels'...
Obrigado!
Phoenix Sol