Things Have History
The garbage collector that belonged to nobody

software-architecture · 3 min read

The garbage collector that belonged to nobody

Before today, every Kotlin program compiled to WebAssembly shipped its own garbage collector. Not borrowed, not shared — a private copy, two to four megabytes of allocation and collection logic embedded in the binary before the application had loaded a single class. Dart did the same. Java. Scala. Any managed language that wanted to run in the browser had to pack its own janitor.

On November 23, 2026, the W3C published WebAssembly 3.0, and the janitors were finally let go.

WebAssembly arrived in all four major browsers in early 2017 as a low-level binary format: sandboxed, portable, nearly as fast as native C. By December 2019 it was a W3C standard. Each subsequent release narrowed the gap between what Wasm could express and what a real application needed. Wasm 3.0 is the release that closes it for managed languages.

The centerpiece is WasmGC — WebAssembly Garbage Collection. The specification allows a Wasm module to declare structured reference types: structs, arrays, closures. It then delegates their allocation and collection to the host engine’s native garbage collector — V8, SpiderMonkey, or JavaScriptCore in a browser context. JetBrains shipped Kotlin/Wasm under the new model and measured nearly three times the throughput of an equivalent Kotlin/JS build in UI-heavy workloads. Flutter’s Dart team reported five to ten times faster startup. The GC is now the browser’s problem; the application binary is 60 to 80 percent smaller.

Memory64 is quieter but equally consequential. The original Wasm memory model was 32-bit, capping addressable space at four gigabytes. That ceiling was invisible to most web apps and deeply visible to Photoshop Web, AutoCAD Web, and anyone trying to run a language model in a tab. Memory64 replaces it with the same 64-bit address space that server-side code has taken for granted since the mid-2000s. The ceiling is gone.

Seven further proposals round out 3.0: exception handling, tail calls, typed function references, 128-bit SIMD, multiple memories, extended constant expressions, and branch hinting. Tail calls alone unblock functional languages that compile via continuation-passing style and would otherwise overflow the Wasm stack. The proposals had been shipping behind browser flags for two to four years; 3.0 makes them normative across all conforming implementations, which now includes Safari.

There were features that did not make the cut. Stack Switching — which would let a Wasm module suspend and resume execution without yielding control back to JavaScript — and JavaScript Promise Integration both stayed out of 3.0. Even a versioned standard has a line. The W3C Community Group drew it here: nine proposals with consensus across all engines, rather than eleven with two still unsettled.

By mid-2026, 5.5 percent of Chrome page loads touched a WebAssembly module. That is not the fraction of sites that use Wasm; it is the fraction of every page load. The number climbed quietly while the headlines went elsewhere. Wasm had become infrastructure.

The design goal written into the original 2015 proposal was “a safe, portable, low-level code format designed for efficient execution.” Eleven years on, the format runs in browsers, at the CDN edge, in serverless functions, in plugin sandboxes, and inside AI inference pipelines. Version 3.0 is the moment the word “portable” stopped being aspirational.

Sources

Spot a mistake?

Wrong date, broken citation, a fact that doesn't hold? Tell us. It lands in an inbox a human reads and the post can be pulled or corrected.