lua-users home
lua-l archive

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



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