v3 Capstone: Full Pipeline
Lesson, slides, and applied problem sets.
View SlidesLesson
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
- Lex
- Parse
- Analyze
- Compile
- Encode to BC2
- Decode
- 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