The Mad Cousin
summary
Nexus claims to run server JavaScript across cores by replacing V8’s single event loop with JavaScriptCore and a thread pool that schedules callbacks on multiple threads, using a lock‑based atomic model and a lock‑free priority queue. It implements promise-based event emitter semantics, ArrayBuffer stream filters, file push/pull devices, and per‑promise parallel handlers. Examples show scaling to cores and logical CPUs (four cores × two logical = eight threads), a concurrency flag (concurrency=1), and measured higher throughput and lower RAM compared to multiple Node processes.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 6:00JavaScript Core
- 12:25JavaScript
- 16:54InputOutput
- 19:50File Push Device
- 22:18Why Nexus
- 23:32Logical CPUs
- 25:20Dynamic Scaling
- 26:45Memory Utilization
related talks
33mAsync patterns to scale your multicore JavaScript elegantly.
32mMulticore JavaScript: Past, Present and Future
41mDissecting NodeJS - How it works under the hood
49mA Journey into Node.js Internals
33mParallelism experiments in JavaScript
36mHigh density server side java script
24mShared Memory & Parallel Programming with JavaScript
26mTechniques and Tools for Taming Tangled Twisted Trains of Thought
