~/talk

Writing a Nanopass Compiler

name:Andy Keep
links:none on file
slides:none on file

Nanopass framework builds a compiler as many tiny, checked passes rather than monolithic phases, with formal grammars that auto-generate traversal boilerplate and immediate well-formedness errors. The project claims to have replaced Chez Scheme compiler (student prototype scaled to a commercial compiler) and expands a backend to 52 back-end passes while keeping reasonable speed (self-hosting compile ~10s vs original ~3s). The example implements a subset of Scheme targeting C, uses 61-bit tagged integers and a flat closure representation, and the code is on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 0:39Compiler History
  3. 3:27Nanopass History
  4. 6:59Nanopass Framework
  5. 9:52Aside: Chez Scheme
  6. 11:56Example
  7. 26:56What about closures?
  8. 28:00What about C?
  9. 35:35What else can we do?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.