diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 23:57:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 00:29:40 -0300 |
| commit | 137be286869241d19ea60ecb7737957d861162d7 (patch) | |
| tree | 854878c3a2152195b95d6b469c011db5a0d7e6a7 /docs | |
| parent | 9b20d00ca5ffbab640b87249d65e4165414d22c1 (diff) | |
| download | pardes-137be286869241d19ea60ecb7737957d861162d7.tar.gz pardes-137be286869241d19ea60ecb7737957d861162d7.zip | |
kinds: a PA_PLAIN kind runs in the client that shows it (the games and veil): its head says its whole state is the one block its open allocates, plain bytes changed only by its calls, each a function of the block and what the call is handed (no statics, clock, randomness or file of its own; tick is not told PA_FRAMED); the core keeps the block (Kind.Slot.plain, the core's memory, a client's rollback epoch, which the copy saves) and its hash after each call is the call's taped outcome and in the digest (Slot.state), so a client whose block came out otherwise is caught at that call, joins again, and runs the session's frames of it from then (Addon.distrust); a client loads its own code for the kind by name, version, ABI and functions (Addon.plainOps; its scan only when the session has one), opens each such pane from the session's block byte for byte (dump.plainHere; the block is the dump's record, the kind's load given it at a Restore alone), speculates its keys, mouse and the tick after them, and draws it; one without the addon draws a line saying so; the session sends no Shadow for these panes; snake, life, snake_shader and veil say PA_PLAIN; test/liar.zig, a kind whose tick reads the clock; test/daemon.py --games: snake and life focused in two clients while a third types text for 30 s, keys stopped 0 and 0 of 451 and 450 (the base: 33 of 36 stopped in a tty client), rollbacks 385, 345, 366, every digest agreed, and the liar caught at its tick, its client joined again once and agreed; the GPU snake focused in a window client (offscreen) of a terminal's session and of a window's steps every 200 ms (2, 3, 4, 5, 7, 8, 9, 10, 12, 13), keys stopped 0 of 27, its digest agreed; the snake_shader's load tidying hover and timers made a client's block another than the session's at the first tick, caught so, hence the block itself in the dump; running.typ says a plain addon runs in a client; perf --only medium --reps 10 instructions:u 2,459.25M (base) -> 2,459.23M, --terminal-mib 8 3,928.50M -> 3,928.50M; tui core-test 811/950 (139 skipped), shell-test 993/996, pane-test 180/181, replicas pass (diverged 0, checked/wrong 0), behaviour-test 269/273 (the four addon ABI tests the base fails), --replay 20 seeds 0 failures, addon-test 157/157 steps 5/5, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; winch failed once under load and passes alone), test/daemon.py, --far and --games pass; gui unit-test 1582/1590 (the base's), the frame corpus 77/77 against mbase, test/daemon.py --window-clients passes (its PDF window case skipped: no pdf.so built)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/typ/running.typ | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/typ/running.typ b/docs/typ/running.typ index 8177ec39..e78c8f1a 100644 --- a/docs/typ/running.typ +++ b/docs/typ/running.typ @@ -117,7 +117,8 @@ spelling of `attach work`. // same build, handed on); replica.zig:1-19 (speculation and rollback); // replica.zig:2013-2023, views.zig:31, Core.zig:1110-1153 (four views, the // session's own among them); replica.zig:2111-2133 (a client leaving); -// replica.zig:756-757 (a kind's code runs in no replica); gui.zig:2147-2161 +// replica.zig initDump, Addon.zig plainOps (a plain kind's code runs in +// the client that has it; another's in the session alone); gui.zig:2147-2161 // (a client's notch: whole rows sent), :3544 (glideFrame: the picture on // the client's clock); gui.zig:580-608 (a client's font: the session's // request, by the face's name on this machine). Measured 2026-11-17 @@ -137,8 +138,11 @@ truth, rolling back when the session ordered things differently. A session takes three clients: four views at once, its own among them. A client's #word("Detach"), or its terminal or window closing, ends that client only; the last client of a detached session leaves its layout as -the session's, for the next one to find. In a client, an addon's panes -show what the session's code drew (the code runs only in the session). A +the session's, for the next one to find. In a client, an addon whose state +is plain (`PA_PLAIN`: the games) runs in the client that shows it, from +that client's own addons, its keys applied at once; one the client lacks +shows a line saying so; any other addon's panes show what the session's +code drew. A window client's wheel glides as the session's own window does: whole rows go to the session, and the picture moves between them on the client's own clock. It takes the session's font only when the same face is installed on |
