Description
Salsa provides incremental recomputation for multi-phase compilers. Each phase (parse, type-check, codegen) becomes a cached query that only re-executes when its inputs change.
Use case
Enable incremental compilation and LSP support (go-to-def, autocomplete) by caching AST, types, and IR between compiles.
Potential implementations
- Incremental recompilation (only re-parse changed files).
- Persistent compilation cache across runs.
- Parallel compilation phases.
Description
Salsa provides incremental recomputation for multi-phase compilers. Each phase (parse, type-check, codegen) becomes a cached query that only re-executes when its inputs change.
Use case
Enable incremental compilation and LSP support (go-to-def, autocomplete) by caching AST, types, and IR between compiles.
Potential implementations