An early design proposal (2012) for parallel, shared-memory JavaScript. The model allows a parent worker to spawn child tasks that execute in parallel while the parent is suspended, with ownership-based memory safety enforced dynamically. Children get read-only access to parent data via proxy objects, and can create and return new mutable data. The proposed API includes low-level fork/join primitives via a scheduler object and a higher-level array partitioning API. The implementation plan uses SpiderMonkey compartments and proxy objects to isolate heaps and enforce read-only access without modifying the JIT or interpreter.
25 Impressions