plum
git clone https://git.pyrossh.dev/plum
A statically typed, imperative programming language inspired by rust, python
831c28f
— Peter John
2026-11-16T18:50:19+05:30
plan: U4a-d perf
docs/plans/2026-11-13-no-globals-tests-ports.md
CHANGED
|
@@ -47,4 +47,8 @@ Decisions (user's answers):
|
|
|
47
47
|
- **U1 uniqueness fragility** (sl/uniq-filter): a `filter` of a `List<Looping>` anywhere cost Orbit Runner's `PlayingScreen.update` 4 of its 5 in-place spreads; fix the pass, put `Looping.without` back to a `filter`.
|
|
48
48
|
- **U2 screen names** (sl/screen-names): `Screen.name()` defaults to the type's name; navigation by type, `Cmd.goTo<S>()`, a wrong screen is a compile error; games drop `name()`. With it: docs/std.md describes `Dice`.
|
|
49
49
|
- **U3 closure/match bugs** (after U1): backlog's closure binder of one name in two match arms ("undefined function"), and the nullary-variant match inside a closure matching every value.
|
|
50
|
-
- **U4
|
|
50
|
+
- **U4 perf** (user, 2026-11-16: "Yes please 1, 2, 3 as others in backlog"), one fresh agent each, after U1+U2, each measured before/after on Orbit Runner, Clockwork and the benchmarks:
|
|
51
|
+
- **U4a typed closures:** a closure struct per signature called with `call_ref` (backlog: `anyref`, two casts and an indirect call per call, two objects per closure); constructor shorthand `OnFrame(Tick)` for a variant passed as a function.
|
|
52
|
+
- **U4b paint without the list:** `view()`'s list painted as it is built, no per-frame `List<View>` and fewer trait calls; the declarative paint's +5% and T7's +2% back.
|
|
53
|
+
- **U4c in-place misses:** backlog's 36 of 56 (a value rebound by a pattern, receiver read again after a method call, shared value, field passed on, argument from inside a closure); the Elm `update` regression.
|
|
54
|
+
- **U4d the backlog's other runtime perf items:** a value struct in an enum payload boxed twice; statics slower than free functions; the smaller codegen items (`br_on_cast`, inliner on `unbox.*`, empty supertypes, purity of closure-taking functions); `Map` reuse alongside sharing. Compile-time items stay with the modular checker in the backlog.
|