Jarred Sumner's Bun is testing shared-memory threads inside JavaScriptCore

The open oven-sh/WebKit pull request would let new Thread(fn) share normal JavaScript objects across cores, but it is not a shipped Bun feature.

By · Published

Primary source: GitHub

Why it matters

Shared-memory threads would move Bun's concurrency story from worker ergonomics into VM architecture, but the current evidence is still an open PR with unresolved safety and benchmark work.

Illustration of interconnected threads and shared memory in JavaScriptCore, representing Jarred Sumner's Bun testing a new Thread call sharing objects across cores.

Jarred Sumner (@jarredsumner) has opened a GitHub pull request in Bun's patched WebKit fork that proposes shared-memory threads for JavaScriptCore, the kind of runtime-level change that would let JavaScript code run a closure on another core while sharing the same heap.…

When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.

Reader comments

Conversation for this story loads after sign-in.