Wasm/k: Delimited Continuations for WebAssembly
summary
Adds Wasm/k, a small WebAssembly extension that implements delimited continuations with five new ops (control, restore, continuation_copy, continuation_delete, prompt) and a continuation_table to store captured stacks safely. Provides a prototype language C/k and a compiler to Wasm/k, and an implementation as a Wasmtime fork. Demonstrates efficient embedded green threads and generators by letting compilers mutate the formal stack instead of mirroring everything in linear memory, and enforces safety with prompt at FFI boundaries.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:49Review of WebAssembly
- 2:46Linear Memory
- 7:18Go vs WebAssembly
- 7:51Solution
- 12:46Semantics
related talks
31mIntroducing Kotlin/Wasm
47mStack Switching in WebAssembly with Effect Handlers
32mThe State Of Kotlin/Wasm
18mContinuing WebAssembly with Effect Handlers
50mWebAssembly: A Recovering Kubernetes Engineer's View of the Future
43mMeet Your Future - WebAssembly
40mSmarter Operating Systems Will Use Wasm - The Coming OS Revolution
35mMicroservices and WASM, Are We There Yet?
