lua-users home
lua-l archive

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


On 08.01.2010 01:59, teppy wrote:
> Hello all,
> 
>   I'm planning to modify Lua for use in an MMO server. The architecture
> is similar to the server that runs our current game, "A Tale in the
> Desert," but would use Lua as the scripting language.
>   Each machine in the server cluster would have a number of suspended
> Lua threads. It would pick one to run; the running thread could yield
> for a variety of reasons, including:
> 
>     1. The code the thread is running explicitly yields.
>     2. The code tries to access a table that is not resident on the
> machine that the thread is running on.

I would do it in lua alone. Check out coroutines in PIL [1] and alua [2].

1. http://www.lua.org/pil/9.4.html
2. http://alua.inf.puc-rio.br/

Regards,
miko