← All topics

Compilers & languages

0 of 13 steps read

Read first
Evolution

Foundations

1
Stanford CS143: Compilers

Lexing, LL and LR parsing, semantic analysis and type checking, runtime organization, code generation, dataflow optimization, register allocation and garbage collection. In English.

StanfordWebsite
Further reading

Optimization

2
Efficiently Computing Static Single Assignment Form and the Control Dependence Graph

Optimizers kept tracing which assignment reaches each use, so SSA form gives every variable a single assignment and places merges at dominance frontiers.

IBM· 1991

Compiler infrastructure

3
LLVM: A Compilation Framework for Lifelong Program Analysis & Transformation

Compilers optimized once behind a private IR, so LLVM keeps an SSA representation that tools can optimize again at link time and run time; its typed pointers have since become opaque.

UIUC· 2004
4
MLIR: A Compiler Infrastructure for the End of Moore's Law

Each domain-specific compiler rebuilt its own IR stack, so MLIR lets dialects at different levels of abstraction share one infrastructure and lower into each other.

Google· 2020

Just-in-time compilation

5
Optimizing Dynamically-Typed Object-Oriented Languages With Polymorphic Inline Caches

Dynamic dispatch hides types from the compiler, so polymorphic inline caches record each call site's receiver types and hot code is recompiled for them.

Stanford· 1991
6
Maglev - V8's Fastest Optimizing JIT

TurboFan arrives too late for code that is only warm, so V8 added Maglev, a quick optimizing tier built from bytecode and type feedback.

Google· 2023

Types

7
OCaml Programming: Correct + Efficient + BeautifulSection 10.6

Untyped programs fail at run time and typed ones need annotations, so Hindley-Milner turns a program into type equations and solves them by unification.

Cornell
Further reading
A Theory of Type Polymorphism in Programming University of Edinburgh· 1978
8
Gradual Typing for Functional Languages

Static and dynamic typing each suit different tasks, so gradual typing lets typed and untyped code mix, checking at run time where they meet.

University of Colorado· 2006

Memory management

9
Getting to Go: The Journey of Go's Garbage Collector

Go wanted short pauses without moving objects, so its collector went concurrent and dropped generational designs whose always-on write barrier cost too much.

Google· 2018
10
Safe Systems Programming in Rust

Systems code needs control without memory bugs, so Rust checks ownership and borrowing at compile time and confines unsafe code behind safe APIs.

2021

Concurrency

11
Threads Cannot Be Implemented as a Library

Compilers can break correct threaded code when threads come from a library, so Boehm argues C and C++ must define a memory model.

HP· 2005

WebAssembly

12
Bringing the Web up to Speed with WebAssembly

JavaScript was a poor compilation target, so the browser vendors designed WebAssembly, a bytecode with formal semantics that validates fast and runs near native speed.

Google· 2017

Static analysis

13
Scaling Static Analyses at Facebook

To catch crashes and security bugs before code ships, Facebook runs compositional analyzers, Infer and Zoncolan, on every code change and comments during code review.

Meta· 2019