Stream: wasmtime

Topic: Keep Track Of Executuon


view this post on Zulip Ashanti Mutinta (Feb 25 2025 at 15:02):

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?

view this post on Zulip Ashanti Mutinta (Feb 25 2025 at 15:03):

I guess I should validate that I should be able persist to somewhere like a physical datastore

view this post on Zulip Alex Crichton (Feb 25 2025 at 15:56):

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.

view this post on Zulip Alex Crichton (Feb 25 2025 at 15:56):

There's a sibling topic at #wasmtime > Wasm module execution suspension (creating amodule snapshot) with a bit more discussion too

view this post on Zulip Ashanti Mutinta (Feb 25 2025 at 17:42):

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