v3 Capstone: Full Pipeline

Lesson, slides, and applied problem sets.

View Slides

Lesson

v3 Capstone: Closures + GC in the Full Pipeline

Why this module exists

This capstone proves the compiler is real at a higher bar:

  • nested functions and closures
  • arrays and maps
  • bytecode as an artifact
  • garbage collection

1) Pipeline

  1. Lex
  2. Parse
  3. Analyze
  4. Compile
  5. Encode to BC2
  6. Decode
  7. Run in VM (with GC)

2) What to look for

  • Lexical capture works (closures see outer vars)
  • Indexed assignment works
  • GC reclaims unreachable arrays/maps

Module Items