[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Serializable VM
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Sun, 16 Aug 2020 22:06:00 -0300
On 2020-08-16 10:03 p.m., Egor Skriptunoff wrote:
> On Sun, Aug 16, 2020 at 11:20 PM Soni "They/Them" L. wrote:
>
> Try Eris? https://github.com/fnuecke/eris
>
>
> Eris can only persist a Lua value (you must have this value in the Lua
> C API stack).
> How to persist the whole VM with Eris?
> VM is not a Lua value.
1. wrap the main coroutine.
2. that's literally it, there are no extra steps. as long as you can get
it to yield you can persist the whole thing other than the wrapper itself.