Alice's Adventures in Memoryland
summary
Explains how JavaScript objects become zeros and ones by tracing allocation from virtual RAM to physical cells, demonstrates heap snapshots in Chrome DevTools, describes V8 memory layout (stack, young generation 1–8MB split into from/to spaces, old generation) and GC algorithms (copying scavenger, mark‑sweep‑compact), cites that roughly 20% survive promotion, notes Orinoco runs scavenges and parallel major GC across up to seven threads, and shows string interning, shallow copy pitfalls, and when fragmentation forces compaction.
AI-written summary · about
chapters (14)
- 0:00Introduction to memory in JavaScript
- 1:22Binary code and memory basics
- 3:52RAM and memory cells
- 6:22Heap and stack in JavaScript
- 8:11JavaScript engines like V8
- 9:15Memory allocation in V8
- 11:44String interning in JavaScript
- 13:08Modification by reference
- 15:56Garbage collection overview
- 17:41Young generation GC
- 20:52Old generation GC
- 24:26Mark-sweep-compact process
- 25:28Recap of memory journey
- 27:12Closing and resources
related talks
17mAlice's Adventures in Memory Management, or how JavaScript objects work
31mJavaScript memory management: Visual Guide
27mVisualised guide to memory management in JavaScript
26mThe Hitchhiker's Guide to All Things Memory in Javascript
22mThe Hitchhiker's Guide to All Things Memory in JS
21mMemory: Don't Forget to Take Out the Garbage
38mUnderstanding Memory Behavior on Nodejs
23mWarp Speed Memory Management
