lua-users home
lua-l archive

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


Benjamin Tolputt wrote:
> Is "2008" still a viable target for releasing LuaJIT 2.x? Not after a
> hard date, of course, just trying to ascertain an approximate time-frame
> for being able to use this. Basically, I am looking for a fast
> green-thread solution that can be saved to disk for resuming later. Lua
> has almost everything it needs for this with the exception that the JIT
> compilation prevents the serialization. If LuaJIT 2.x can do this in the
> next, say, three to six months - it would be the solution I am looking for.

Open source doesn't come with any guarantees -- this applies to
release dates, too. :-) In your case you could just use Lua+Pluto
and upgrade later.

But a question remains: why are you going for coroutine persistence?
It's a charming solution for sure. But most people who went down
this road sooner or later had to realize that this approach is
quite restrictive. The data dependencies between coroutines and
shared state can become quite complex. Explicitly saving only the
necessary state is often the better solution. Also think about
migration of saved state between software versions, editing saved
state or debugging saved state (oh dear).

--Mike