~/talk

Experience Report: Stack Switching in Wasm SpecTec

Talkat WAW 2025 · on Monday, 2025-01-20· [webassembly, compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Implements the STX stack‑switching extension in SpecTec by encoding captured continuations as lists of frames and using a bubbling semantics that escales frames one by one. Finds that naive bubbling produces a lot of duplicated rules so SpecTec generates match functions (extraction functions) per context to locate labels and captured values. Proposes adding native context to SpecTec to avoid repetition, notes several backend and DSL changes are required and the current solution is fragile.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Stack switching in SpecTec
  3. 2:14WebAssembly semantics
  4. 6:17Frames and control structures
  5. 8:24Stack switching semantics
  6. 10:16Bubbling implementation
  7. 12:47Contexts in semantics
  8. 14:55Native context design
  9. 17:07Match functions
  10. 20:00Implementation challenges
  11. 21:17Q&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.