stack-switching icon indicating copy to clipboard operation
stack-switching copied to clipboard

A repository for the stack switching proposal.

Results 36 stack-switching issues
Sort by recently updated
recently updated
newest added

This patch adds a reference interpreter for the stack switching proposal. It implements all of the proposed instructions (currently it contains the old version of `barrier`, which we can adapt...

When we previously discussed `func.bind`, my memory is that we ended up with a soft idea that this could be accomplished with a future separate "closure" type that has space...

The stack switching proposal notably does not feature the `barrier` instruction from the WasmFX/typed continuations proposal? The question is, do we want to include such an instruction? Do we have...

question

Once this proposal gets to Phase 3 and we can study the performance of realistic workloads, I think it's important for this group to measure a workload that, e.g., uses...

We should develop the spec testsuite for the stack switching proposal. We have something implemented already in ([cont.wast](https://github.com/WebAssembly/stack-switching/blob/wasmfx/test/core/stack-switching/cont.wast), [validation.wast](https://github.com/WebAssembly/stack-switching/blob/wasmfx/test/core/stack-switching/validation.wast), [validation_gc.wast](https://github.com/WebAssembly/stack-switching/blob/wasmfx/test/core/stack-switching/validation_gc.wast)), however it does not thoroughly test `switch` and it could...

enhancement

It would be good to update the explainer with a sketch of how we expect the embedding API given in the appendix to be extended. Taking inspiration from how the...

Wasmfx has a way of sending an exception to a suspended coroutine: resume_throw. However, the current EH proposal has two ways of throwing exceptions: throw and throw_ref. We need to...

I think that without loss of generality we can require (in the binary format) that the definition of continuation types come after the definition of the signature type they reference....

The explainer introduces six instructions: cont.new, cont.bind, resume, resume_throw, suspend, switch. While this is not a large number, it is more than 1. Furthermore, it is entirely possible that we...

This patch populates the "Execution" section of the Explainer document with the reduction rules for stack switching. Resolves #91.