[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: what core things might be in Lua 5.2
- From: gary ng <garyng2000@...>
- Date: Sat, 10 Nov 2007 23:11:30 -0800 (PST)
--- Nathan Youngman <email@example.com> wrote:
> Asko Kauppi wrote:
> > Please try it together with Lua Lanes for
> multithreading. Lanes
> > should take care of all the threading stuff,
> seamlessly (no locking).
> Thanks for the suggestion Asko. I just went through
> the comparison of
> threading kits:
Thanks for the pointer.
I don't see a comparision between lua lane and luatask
as both seem to be using similar approach(i.e.
independent lua state with message passing running in
seperate OS threads).
Another issue which I don't see people mentioning is
how to properly clean up these lua states. My
experience with 'rings' is that for certain third
party modules(say the luasql.mysql binding), it is
impossible to properly clean up a lua state(memory
leaks). So both lua lane and luatask if used in the
erlang manner(repetitively create and destroy states
like function calls), would have issues for writing
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around