Runtime Internals
Inside the Execution Engine: Stack Frames, Memory Allocation & Call Stack Tracing
Follow one function call from the moment its frame is pushed until it returns.
FIRST-PRINCIPLES SOFTWARE ENGINEERING
Skip surface-level tutorials. We visualize how runtimes, compilers, memory models, and distributed systems actually execute under the hood.
Push main() Stack Frame
The runtime reserves a stack frame for main(), holding its return address and local variables, before the first instruction runs.
Methodology
One mechanism per episode, traced on screen from start to finish, with code to run afterwards.
100% screen-focused visual mental models, frame-by-frame execution traces, and architectural diagrams.
Opening the black box—tracing AST parsing, memory pointers, OS threads, event loops, and wire protocols rather than surface syntax.
Every episode ships with runnable GitHub repositories, step-by-step mental model diagrams, and debugging challenges.
Curriculum
Three language-agnostic tracks. Each one builds on the last.
How programs are parsed, compiled, laid out in memory, collected, and scheduled.
How source text becomes tokens, and tokens become a syntax tree.
How engines execute code, and when they compile it to machine code.
Where values live, and why some outlive the function that created them.
How runtimes find and reclaim memory that is no longer reachable.
How a single thread serves thousands of connections.
Flagship episodes
Runtime Internals
Follow one function call from the moment its frame is pushed until it returns.
Concurrency
Trace a socket read from the system call to the callback that handles it.
Storage Engines
Open a database file and see how rows are stored, logged, and indexed.
Open source
Clone the exercises, run the benchmarks on your own machine, and inspect the source of every diagram.
$ tree -d insideruntimedev
$ git clone https://github.com/insideruntimedev/runtime-internals.git$ cd runtime-internals/01-execution-framesRelease notes
One email when an episode is released, with its diagrams and code.
AN ALPHA SQUARE ENGINEERING INITIATIVE
InsideRuntime is built and maintained by Alpha Square—a software engineering consultancy architecting high-performance web platforms, mobile applications, and scalable backend systems.