~/talk

Stack Switching in WebAssembly with Effect Handlers

Talkat WAW 2024 · on Monday, 2024-01-15· [webassembly]
slides:none on file

Proposes a Wasm extension, WasmFX, that models stacks as continuations and adds three core instructions to create, suspend and resume them. Provides a formal spec plus a reference implementation on the Wasm reference interpreter and partial work in Wasmtime (resume_throw and barrier not yet landed). Uses typed continuations and restricts to one-shot continuations for linearity. Demonstrations include yield-style generators that compute 55, a BFS lightweight-thread scheduler that interleaves 0 1 2 3, and a cancellation pattern via resume_throw; examples run successfully on the reference impl.

AI-written summary · about

  1. 0:00Stack switching intro
  2. 1:08Motivation for effect handlers
  3. 6:23Effect handlers vs alternatives
  4. 8:50Effects instruction set
  5. 15:26Proposal status and implementations
  6. 16:08Example: Yield generators
  7. 24:37Example: Lightweight threads
  8. 33:27Design power and expressiveness
  9. 41:34Resources and closing
  10. 41:55Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.