What happens when I allocate memory?
An allocation usually never reaches the OS: a runtime allocator carves it out of memory it already holds. When it does need more, the OS hands out virtual pages that cost nothing until first touch, when a page fault finally assigns physical RAM. The three runtimes route the same request very differently.
Inputnew Object() / obj = SomeObject() / malloc(64)Where do 64 bytes actually come from — and why is the answer different in C++, JavaScript and Python?
ZoomThe picture from the language’s point of view: the program asks, an object appears on "the heap".
- ↓
- ↓
Click a node to see what happens there, what state changes, how it fails, and which lesson explains it. Then zoom to the next level and watch the arrow you clicked expand into its own chain — no step is magic.