Parallelism experiments in JavaScript
summary
Claim: JavaScript gains low-level primitives for parallelism using shared array buffer and shared Int32 views, not just heavier web workers. Benchmarks show postMessage runs ~54,000 messages/sec while the shared-memory example hits 6 million messages per second. Live builds on Nightly run a parallel Mandelbrot and a near-native Unity WebGL benchmark port that scales across 4–8 cores and reuses pthreads code. Implementation works and is being pushed toward standardization and cross‑browser adoption.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:37Concurrency vs Parallelism
- 2:08Evolution of the web
- 3:39JavaScript performance
- 4:25CPU utilization
- 5:33Why does this matter
- 7:00Parallelism in JavaScript
- 8:54Design considerations
- 11:50Shared Memory
- 14:52Shared array buffer
- 20:55Live demos
- 24:50Unity WebGL benchmark
- 27:09Unity 3D engine
related talks
24mShared Memory & Parallel Programming with JavaScript
25mGetting Over Moore's Law: Parallelization Using JavaScript in the Browser
23mParallel JavaScript
58mWays to Parallelize Tests in JavaScript
22mFearless Concurrency with JavaScript and Beyond
41mConcurrency and Parallel Computing in JavaScript
32mMulticore JavaScript: Past, Present and Future
33mAsync patterns to scale your multicore JavaScript elegantly.
