[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Time Travel Debugging
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 1 Nov 2019 07:18:56 -0300
> Is it possible to save the Lua VM state and restore it?
In principle, it can be done since the Lua API accepts a memory
allocator. Like you've said, it is tricky to handle userdata.
I've experimented with LPSM to make a Lua state persistent across
invocations of the interpreter. It worked reasonably well for a while.
The LPSM library is available at http://freshmeat.net/projects/lpsm/
but it does not seem to work on modern systems. I'd love to hear about
a modern replacement.