Hi! 

I'm interested in checkpointing an emscripten wasm instance to a file and 
then at another time/place restoring it from that file with the exact 
memory intact. 

I'm specifically interested in doing this with pyodide. See my open issue 
on the pyodide repo: https://github.com/iodide-project/pyodide/issues/380

wasm-persist <https://github.com/dfinity/wasm-persist> is a project that 
does exactly this. I have tried persist.hibernate 
<https://github.com/dfinity/wasm-persist/blob/master/docs/index.md#hibernate> 
on the 
wasm instance returned from Module.instantiateWasm 
<https://emscripten.org/docs/api_reference/module.html#Module.instantiateWasm> 
but 
I'm getting an empty object back.

Another option is to get the wasm memory buffer and save that to a file, 
but my first attempt resulted in a 1gb file!

Does anyone have any ideas or pointers to similar work?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to