Skip to content

Future: Implement Salsa for Incremental Computation #28

Description

@FrancoGiachetta

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions