plum

#treesitter#compiler#wasm

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

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


7b9cdb5 — Peter John 2026-11-16T20:14:56+05:30
backlog: the time-travel snapshots question
Files changed (1) hide show
  1. docs/backlog.md +1 -0
docs/backlog.md CHANGED
@@ -70,3 +70,4 @@ The retained scene tree was replaced by master's screen view in functional form:
70
70
  3. `Map.getEntryAt`: keep the name?
71
71
  4. Which performance item first after the Map work: compile time, typed closure calls, or the scene tree with snapshots?
72
72
  5. Rerun the before/after benchmark on an idle machine? The 2026-11-11 run had a load average of 5 to 19 from other work.
73
+ 6. **Drop the time-travel snapshots?** (talked over 2026-11-16, not decided) `Game.snaps` (one `Snap` every `Game.SnapEvery` = 600 ticks, at most cap/600; `Snap`, `snapped`, `bare`, `Snap.upTo`, `remade`'s start; added in T7) only make a move back fast: going back starts from the nearest snapshot and plays at most 600 ticks, where master (no checkpoints, docs/game.md "What it costs") makes the game again and plays every tick from 0, so its cost grows with the session (Orbit Runner at about 1 µs a tick: some 0.1 s per move back 25 minutes in; repeated every frame while the travel keys scrub back; seconds for the 10,000-actor benchmark). Undo of a few presses, the tests' runs, recording and replays (a replay only plays forward from tick 0) are the same either way. Here a snapshot is only a kept reference to the immutable `Game`, which master can't have cheaply. Lean: remove them for simplicity and add them back if scrubbing stutters.