The Runtime Theory
Runtime & ExecutionIn production

Interpreters vs. Compilers

Recording in progress
#interpreters#compilers#bytecode#languages

Both start from the same source text, but they diverge at a fork: translate everything upfront and execute native code, or walk the program while it runs. This video follows both paths through the frontend and beyond — lexer, parser, AST, then either codegen or a tree-walking/bytecode loop — and shows why modern languages refuse to pick a side.

Topics covered:

  • The shared frontend: lexing, parsing, and building the AST
  • The compiler path: codegen, object files, linking, and what the CPU finally runs
  • The interpreter path: walking the AST or executing bytecode in a VM loop
  • Why bytecode is the compromise: portable, compact, and fast to interpret
  • Dispatch overhead: why interpreter loops are slow and how switch-dispatch helps
  • The blur: bytecode VMs with JITs, transpilers, and source-to-source compilers
  • How Python, Java, and JavaScript each split the difference in practice

Related articles

More in Runtime & Execution

05:09
runtime

How Garbage Collection Actually Works

A visual walkthrough of mark-sweep, generational collection, and concurrent GC — the algorithms that keep your memory clean.

Watch
63:33
runtime

What Your Code Does Before main()

The loader, the linker, the dynamic linker, and the runtime — everything that happens between pressing run and your first line of code.

Watch
16:06
runtime

How Threads Actually Work

The kernel scheduler, context switches, goroutines versus threads — a visual walkthrough of what 'running on a core' really means.

Watch
In production
runtime

Async/Await Under the Hood

What async/await compiles to — state machines, continuations, and the executor — and how your async function actually runs on one or many threads.

Details
In production
runtime

Virtual Machines Explained

How language VMs like the JVM and the CLR work — bytecode verification, the execution engine, and the runtime services beneath your program.

Details
In production
runtime

Reference Counting vs. Tracing GC

The two families of automatic memory management — refcounts, cycles, and ARC versus tracing collectors, roots, and reachability — compared on real trade-offs.

Details
In production
runtime

Stack vs. Heap Memory

Where your variables actually live — the hardware stack's push and pop discipline versus the heap's malloc and free — and why the difference matters.

Details
In production
runtime

The Event Loop, Visualized

How Node.js and the browser run one thread with many tasks — the call stack, the task queue, and microtasks — animated frame by frame.

Details
In production
runtime

JIT Compilers Explained

How just-in-time compilers work — profiling, tiered compilation, and generating machine code at runtime — from interpreter to native in microseconds.

Details

Depth, delivered weekly

One technical dispatch a week — articles and episode notes before they go public.

One technical dispatch per week. No noise.