Compilers & languages
0 of 13 steps read
Evolution
Foundations
Lexing, LL and LR parsing, semantic analysis and type checking, runtime organization, code generation, dataflow optimization, register allocation and garbage collection. In English.
StanfordWebsiteOptimization
Optimizers kept tracing which assignment reaches each use, so SSA form gives every variable a single assignment and places merges at dominance frontiers.
IBM· 1991Compiler infrastructure
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· 2004Each 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· 2020Just-in-time compilation
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· 1991TurboFan arrives too late for code that is only warm, so V8 added Maglev, a quick optimizing tier built from bytecode and type feedback.
Google· 2023Types
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.
CornellStatic 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· 2006Memory management
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· 2018Systems code needs control without memory bugs, so Rust checks ownership and borrowing at compile time and confines unsafe code behind safe APIs.
2021Concurrency
Compilers can break correct threaded code when threads come from a library, so Boehm argues C and C++ must define a memory model.
HP· 2005WebAssembly
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· 2017Static analysis
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