lua-users home
lua-l archive

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


No, but I am now; thanks :)

It's really refreshing to 'rethink things'... I've become accustomed to thinking in terms of processes and coroutines, because of Python's 'global interpreter lock' (present in Stackless, btw); I'm excited by the idea of using threads and coroutines instead... among other things ;-)


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