Re: Serializable VM
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Serializable VM
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: 2020年8月16日 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.