lua-users home
lua-l archive

Re: Serializable VM

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


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.

AltStyle によって変換されたページ (->オリジナル) /