Multicore JavaScript: Past, Present and Future
summary
JavaScript already exposes promises, async/await, workers, SharedArrayBuffer and Atomics but developers nearly never use atomics or shared buffers in practice, so the proposal set targets real friction points: module blocks for transferring code as objects (Surma leads), shared disjoint heaps to spin up passable heaps and avoid deep copies, and a new structs type to allow safe concurrent data. Roadmap adds lighter-weight actors, a concurrent standard library and WebAssembly GC integration to make multicore use practical.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 2:34JavaScript’s hardware roots
- 5:03Concurrency models explained
- 8:52Thread vs web-like models
- 10:16TC39’s two-phase plan
- 13:52Data transfer pain points
- 16:18Module blocks and shared heaps
- 18:25Why atomics go unused
- 19:09Structs for thread safety
- 20:34Lightweight actors needed
- 21:41Scheduling API integration
- 22:42Future standard library
- 23:23Closing and acknowledgments
