Bun has an open PR adding shared-memory threads to JavaScriptCore
- Programming
- Developer Tools
- AI
- Open Source
- Infrastructure
The submission points to a pull request on Bun’s fork of JavaScriptCore, not upstream WebKit, that adds shared-memory threads to JavaScript so code can run on multiple threads in one heap and share normal objects directly. The author says it implements a 2017 JavaScriptCore design for concurrent JavaScript and calls it one of the scariest merges Bun has attempted, because once a JIT and garbage collector become thread-aware, every future engine change inherits that complexity. That core idea landed as plausible. People familiar with VM internals said shared-heap threading in JavaScript is technically possible and the old design already mapped out how to handle prototype chains, garbage collection, and memory safety at a conceptual level. What changed here is not whether the model can exist, but that LLMs now seem capable of producing a working prototype of something this invasive.
Treat this as a sign that LLMs can now prototype deep runtime changes, not as proof those changes are ready to bet production systems on. If you depend on Bun, watch its governance, review process, and release quality more closely than its benchmark charts.
- github.com
- Discuss on HN