Understanding R from the Runtime Up

A living technical corpus about interpreters, memory, concurrency, scheduling, and runtime architecture, written for capable R and Python programmers who never studied systems programming. It teaches the machinery under the language: what happens when R runs your code, why some things are slow or impossible today, and what the alternatives cost.

your R program interpreter parser syntax tree evaluation loop runtime services heap and GC environments native code operating system: threads, processes, virtual memory

The layers this corpus teaches, from the code you write down to the operating system.

Start here

R RUNTIME Start with R internals SEXPs, environments, promises, and the garbage collector behind every R session. INTERPRETER Learn interpreter design What interpreters, virtual machines, and compilers are, and where they differ. MEMORY Understand memory Stack, heap, allocation, caches, and garbage collection strategies. CONCURRENCY Understand concurrency Threads, races, locks, atomics, and the architectures built on them. GAPS Explore current gaps Why R is hard to parallelize, and where each constraint lives. OPEN Browse open design questions The unresolved questions that drive the current experiments.

Or start from what you already hit

SYMPTOM Start from a problem More cores made it slower. Workers ate the memory. The result changed. Each symptom routed to the mechanism behind it. SCOPE What this corpus teaches The scope in one page: the three layers, how the sections build, and what the corpus leaves out. MAP See the shape of it The dependency spine of the corpus, arranged by depth. Every box is a page. CONCEPTS Find a page by idea Every concept the corpus teaches, defined, with the pages that teach it.

Guided reading paths

Six ordered paths through the corpus, matched to where you start:

New here? How to read this corpus explains the page structure, the callouts that separate fact from hypothesis, and the diagram conventions.


Most pages name their prerequisites above the text and their onward links at the foot, so you can enter anywhere and walk outward. A page that one of my projects depends on ends with a “Where this appears” section that links to that project.

Back to top