The Runtime Theory
medium · 5h · 12 steps

Language and Runtime Internals

Move from tokenization and bytecode to JIT specialization, heap management, and event-loop scheduling.

Curriculum (12 steps)

1

A lexer groups characters into tokens such as identifiers, numbers, and punctuation.

Start→
2

An interactive concept flow for how a parser turns tokens into structure, from its assumptions through the main operation and boundary checks.

Start→
3

Follow the key state changes and boundary checks involved in how a parser turns tokens into structure.

Start→
4

Bytecode is a compact instruction representation designed for a virtual machine rather than one physical processor.

Start→
5

A just-in-time compiler translates code while a program runs.

Start→
6

Follow the key state changes and boundary checks involved in when a runtime compiles hot code.

Start→
7

A function call transfers control while preserving enough state for the caller to resume.

Start→
8

The heap holds objects whose lifetimes are not tied to one simple lexical scope.

Start→
9

An interactive concept flow for heap allocation and garbage collection, from its assumptions through the main operation and boundary checks.

Start→
10

An event loop repeatedly selects ready work and runs callbacks or tasks.

Start→
11

Explain the model, execution steps, complexity, and limits of async code still runs on an event loop.

Start→
12

Word Break

practice

Determine whether a string can be segmented into dictionary words.

Start→