plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


3c77b5b — Peter John 2026-11-16T14:36:44+05:30
docs/backlog: the modular checker and its cache, decided, not built
Files changed (1) hide show
  1. docs/backlog.md +2 -0
docs/backlog.md CHANGED
@@ -17,6 +17,8 @@ The retained scene tree was replaced by master's screen view in functional form:
17
17
 
18
18
  ## Decided, not built
19
19
 
20
+ - **Modular checker and its cache** (user 2026-11-16: "Yes I want a modular checker", then "put it in the backlog"). Design and stages in `docs/plans/2026-11-16-modular-checker.md`: each module checked once into an artifact (a hashed interface plus body results), names fixed by the defining module, module-local node ids rebased at link, a per-program link step for trait implementers and generic instantiations, a memory and disk cache keyed by the imports' interface hashes. Stages 0-6, optional 7 (incremental re-checks in the passes). Expected: `plum check` 35-45% faster, `plum check std tests` 40-60%, the LSP most; `plum test` only 6-8% without stage 7. Today only the parse is cached (c086b705).
21
+
20
22
  - **Compile-time layer** (`docs/plans/2026-11-09-comptime-generics.review.md`). The `<>` syntax, the trait list in `[]` and the trait jump table from that plan are done. Still to build: `@hasMethod`, `@hasField`, `@fields`, `@field`, `comptime if` and `comptime for`, `@compileError`, `@embedFile`, `@src`, constants computed while compiling, `comptime fun`, value generics and type aliases, default type parameters, `Option` of a reference as a nullable reference (no allocation for `Some`, allocation-free `for` loops), derives in std (`hash`, `eq`, `lerp`, JSON; `toStr` is `[Show]`, std/Str, since 2026-11-16), replay checksums with snapshot and rewind, easing and tweens in `Anim`.
21
23
  - **Testing** (user: "All 3 please"): `group "name"` blocks with scoped helpers; compare-mode tests (one flag runs a test with and without fusion and in-place updates); property tests in std (`check(|a, b| a + b == b + a)` with generated inputs).
22
24
  - **Constant map literals.** `[k => v]` lowers to `Map.empty().with(..)`, O(n log n). When every key is a compile-time constant, build the tree while compiling.