~/talk

A Compiler Author’s Guide to WebAssembly GC

Talkat Wasm I/O 2025 · 2025-03-27..03-28· [webassembly]
slides:none on file

Grain compiler transitions from linear memory to the WebAssembly GC proposal and ships a runtime heap instead of in-module reference counting, so removed reference counting and kept a minimal allocator for component/Interface Types work. Binary size for an empty module falls from about 3,91 bytes to 292 bytes, with hello world shrinking ~35%. Benchmarks with a 10M-element linked list and big-number allocs show Wasmtime slightly slower but V8 gives ~10x speedup and WasmEdge interpreter shows ~5x; practical quirks include non-nullable-local validation, struct-walking codegen, and buffer i8 load/store limits.

AI-written summary · about

  1. 0:00WebAssembly GC intro
  2. 1:26GC proposal goals
  3. 4:17New GC reference types
  4. 9:17Quirks compiling to GC
  5. 12:48GC in Grain
  6. 20:03Binary size and perf impact
  7. 23:37GC benefits and future
  8. 26:12Q&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.