Erik Arvidsson builds shared-memory threads three times. First, in the Porffor compiler with Thread, Lock, and Condition, where threads share one heap, unlike workers. Then @arv/threads, a TypeScript ownership checker with Sending<T>, Shared<T>, and shared structs. Finally, @arv/structs, a runtime and compiler that follow the TC39 structs proposal with shared struct and Atomics.Mutex. Each comes with a playground.
Multithreaded JavaScript
