Compiler theory doesn't have a "move fast and break things" phase. The fundamentals—lexing, parsing, semantic analysis, code generation—have been settled for decades. What changes is who's reading the textbooks.
In 2021, Douglas Thain, a computer science professor at the University of Notre Dame, released a refreshed edition of Introduction to Compilers and Language Design, built around his CSE 40243 compilers course. It's not a niche release. It's become one of the most widely mirrored free compiler textbooks online, appearing as a standalone PDF, on library aggregators like FreeComputerBooks, and as a paperback and hardcover on Amazon.
That spread matters for indie developers and tinkerers specifically. Most of us never took a formal compilers course. We learned Python, C#, or Lua as consumers of a language, not as people who understood how the interpreter under the hood was actually built. A free, well-structured textbook lowers the barrier to fixing that gap—and if you're building anything with a custom scripting layer (a modding API, a shader DSL, a save-file format with logic embedded in it), that gap is exactly where bugs live.
This post walks through what the book covers, how it fits into the broader landscape of compiler education around 2021, and what we've actually learned building our own interpreter here at Glad Labs—where the textbook's abstractions meet the messy reality of a working codebase.
What a Compiler Actually Does
Before getting into the book itself, it's worth being precise about the term. According to Wikipedia's entry on compilers, a compiler is software that translates code written in one programming language into another—typically from a high-level source language down toward something a machine (or virtual machine) can execute directly.
The pipeline that Wikipedia lays out is the same one every compilers course teaches: source code goes in, gets turned into an intermediate representation, and eventually comes out as object code, bytecode, or machine code. Along the way you've got compile time versus runtime, linking, and execution—concepts that show up whether you're writing a C compiler targeting x86 or a toy interpreter for a game's scripting language.
The distinction that trips people up early is compiler versus interpreter versus virtual machine. A compiler translates ahead of time. An interpreter executes source (or an intermediate form) directly, on the fly. A virtual machine sits in between—it executes a compiled intermediate representation, but does so at runtime, which is how a JVM or a CLR-based .NET runtime behaves. Thain's book, like most compilers courses, treats these as points on a spectrum rather than separate disciplines, because the front end—lexing and parsing—looks nearly identical regardless of what you do with the result afterward.
What Thain's Book Actually Covers
The book opens with the basics: what a compiler is, why you'd study one, and how the traditional academic answer ("optimizing performance for a fixed target machine") coexists today with a broader practical answer—building interpreters, transpilers, and domain-specific languages for problems that have nothing to do with CPU architecture.
The publisher listing on FreeComputerBooks confirms the book was independently published in June 2020, with a free digital edition released in 2023, and it's explicitly framed as a one-semester course—the same pacing Thain uses for his Notre Dame class. That's a deliberate design choice. A lot of compiler textbooks are written for a two-semester graduate sequence and assume you'll spend a full year on it. Thain's version is scoped so a working developer, not just a full-time student, can get through it.
A companion summary of the 2021 edition on FATSIL frames the book as targeting "students and developers" specifically—not just an academic audience—with the stated aim of improving foundational understanding of programming language development. A separate write-up from RottenPanda describes the update as focused on modern language features and compiler techniques, positioning it as a comprehensive resource that remains relevant today.