The Road to Component Model 1.0
Component Model 1.0 is planned around five workstreams: a lazy ABI that replaces cabi_realloc-based eager allocation with opaque value handles and inlinable built-ins, native implementation in at least two browser engines, simpler implementation via guest and host C ABIs plus a component-smashing tool, ecosystem and tooling growth, and WIT expressivity features such as optional imports, callbacks, resource subtyping and a map type. The ABI change ships opt-in in a 0.3.x release and becomes the default at 1.0, with adapters keeping P1, P2 and P3 components working. Other planned work removes the roughly 3.5x overhead on synchronous cross-component calls and adds cooperative threads and stream splicing in WASI P3 follow-up releases. jco's "use components" marker borrows the asm.js telemetry strategy to build the case for native browser support.
Related posts
- WASI 0.3 Launched
Bytecode Alliance mediumAdeptWASI 0.3.0 is ratified and rebases WASI onto the Component Model's native async primitives. The canonical ABI gains `stream<T>`, `future<T>` and `async func`, which replace `wasi:io` pollables and streams. Scheduling moves to a single host-managed, completion-based event loop modeled on io_uring/IOCP, so async components can finally be composed with each other. Streams now return a separate error future, and `wasi:http` is reorganized into `service` and `middleware` worlds that allow in-process service chaining. Wasmtime 46 will enable WASI 0.3 by default, jco already supports it, and Rust and Go bindings illustrate idiomatic stackless and stackful async.
- Why is WebAssembly a second-class language on the web?
Mozilla Hacks mediumAdeptWebAssembly remains second-class on the web because it can only load code and reach Web APIs through JavaScript. That forces arcane instantiation boilerplate, language-specific glue code from tools like wasm-bindgen and embind, JS-centric documentation, and real runtime overhead. A 2020 TodoMVC experiment with the Dodrio Rust framework found that removing JS glue cut DOM-update time by 45%. The esm-integration proposal, being implemented in Firefox, simplifies loading, and the WebAssembly Component Model with WIT interfaces is proposed as a standardized artifact that could let Wasm call Web APIs directly with no JavaScript in between.
- Life of a Zed Extension: Rust, WIT, Wasm
Zed mediumAdeptZed extensions are written in Rust but never compiled on the user's machine. A CI step in the zed-industries/extensions repository runs a small extensions CLI that compiles each extension's Rust code to a Wasm component targeting wasm32-wasip1 and its Tree-sitter grammars to Wasm. It packages them with Tree-sitter query files into an archive plus a manifest.json, uploads both to S3, and zed.dev mirrors the manifests into a database for the in-editor extension list. The extension API is a hand-written Rust trait layered over types that wit_bindgen generates at compile time from WIT definitions, so the WebAssembly Component Model can pass strings, records and resources like Worktree between the Wasm module and the Zed host.
- Introducing the WebAssembly JavaScript Promise Integration API
V8 mediumAdeptJSPI lets WebAssembly code written against synchronous APIs call asynchronous Web APIs. It intercepts Promises returned from wrapped JavaScript imports, suspends the Wasm computation, and resumes it from the browser's event loop when the Promise resolves. Wrapped exports return a Promise instead of a direct value. JSPI changes neither JavaScript nor Wasm, and suspend/resume costs are roughly constant: a deliberately bad Promise-based Fibonacci benchmark puts each JSPI'd call at about 1μs. The API is at phase 4 and ships in Chrome 137 and Firefox 139. Emscripten examples show `-s JSPI` with `EM_ASYNC_JS`, plus a trampoline pattern that lazily fetches and instantiates a Wasm module on first call.
- Flex Model: an event-driven feature engineering system
Jane Street Tech Blog mediumAdeptFlex Model is Jane Street's OCaml framework that turns market events into feature vectors for neural-network trading models, replacing a 17k-line monolith where adding one feature touched nineteen files. Incremental was rejected because its cutoffs and update coalescing silently drop history-dependent events. Flex Model instead splits each feature into per-event handlers that update state and eval functions that compute values on demand, giving up runtime graph changes to keep history inside the graph. A startup planner compiles feature dependencies into per-event-kind action lists run without cutoffs, avoiding unpredictable branches and letting teams add new event types without touching the core. The hot path is allocation-free, checked with [@zero_alloc]. Unboxed floats from OxCaml cut tail latency by about 25% in one test replay.