I'm working on an application that needs to keep track of the execution. My use case is once the epoch period has elapsed, I can save the memory representation so far as well the pointer of the last command so that I can continue later. Is this possible?
I guess I should validate that I should be able persist to somewhere like a physical datastore
Wasmtime doesn't currently support suspending execution while there are call frames on the stack, which is what using epochs as a suspension point gives you. In that sense it's only possible to serialize state between wasm function calls at this time.
There's a sibling topic at #wasmtime > Wasm module execution suspension (creating amodule snapshot) with a bit more discussion too
Alex Crichton said:
Wasmtime doesn't currently support suspending execution while there are call frames on the stack, which is what using epochs as a suspension point gives you. In that sense it's only possible to serialize state between wasm function calls at this time.
Awesome! Thank you for the response
Last updated: Feb 27 2025 at 23:03 UTC