diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 07:42:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 11:40:11 -0300 |
| commit | d2f854de898cb84776e9f56ece0ec9e9c548e27d (patch) | |
| tree | 26a39f40fce8f74d0f7b26f1e4b911a5fb1b1eaf /dev/root.zig | |
| parent | 2d30f3781ab40c38710835806a1029359509d27b (diff) | |
| download | pardes-d2f854de898cb84776e9f56ece0ec9e9c548e27d.tar.gz pardes-d2f854de898cb84776e9f56ece0ec9e9c548e27d.zip | |
client: one client loop, which the terminal's client and the window's both run (the reorganisation's runners, step 10b, its first part; the design round's rule L): runtime/client.zig holds the loop a replica client runs, its link and its replica inside it, over a frontend of ten calls, each for a reason the two loops had (own: the window's own work over the frame it shows before a pass, its size posted, its font, a touchpad's rows, the pointer, the timedemo, the test feed, whose end ends the loop; again: its own motion, the last frame presented again; deadline: when it wants waking for its own sake, 0 when it holds an input already; wait: until an input, a message or the deadline, inputs in through the loop's input and messages through its take; present and drawn: a frame shown or owed, what it wrote and whether it moves; start: a join's first inputs; said and ended: the session's stream from the reader's thread onto the frontend's own queue; drop: what the reader queued let go once the link ended), and what a client holds across its joins (client.Start: its allocators, the addons it distrusts, its frame timings, the blobs it keeps far, its joined replica), made the same for both; what differed between the two loops is one behaviour now or a value the frontend gives: the copy is taken whenever the wait is not 0 (the window's rule; the terminal's "an event is held already" is a deadline of 0), a frame owed is waited for a frame on in the window's deadline (a skipped swapchain image has nothing that wakes it; a terminal's held frame is answered by the terminal), the timedemo's and the latency trace's waits are the window's deadline, the terminal's capabilities and the window's title and blink are their wait's ends, the frame's record keeps what each wrote (bytes on the terminal, presented in the window) and whether its own motion goes on (the window's; the terminal's false, as before), the reader's queue is drained the terminal's way for both (until the reader has ended, then joined); the window's motion frames are counted in the stats line's `again` as the terminal's were (the one change, a counter); the two old loops, tui.zig runClient with its Client and linkReader and gui.zig's Client, clientReader and clientSession, are each that loop with their frontend now (dev/tui/tui.zig +174 -216 there, dev/gui/gui.zig +329 -334, runtime/client.zig +233 of which 30 are the calls' description; all told +577 -389). Gate: tui core-test 836/979 (143 skipped), shell-test 1014/1017, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's); gui unit-test 1612/1616 with the base's BaselineHarnessMismatch; replicas --clients 5 diverged 0, unequal 0, deltas wrong 0, quiet 470/0, 600/0, 764/0, stopped 78/64/78 (the base's, the soak not yet on the loop); daemon.py plain, --far, --games, --window-clients, --upgrade from pardes-tree's pfx-base to this and back; the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs; gate-w run3-1 against tree1: frames 77/77 byte-identical in Debug, the alternated windows' pictures identical in all 10 runs, corpus2x +0.128% (PASS), perfops 97 counts within 0.1% (largest image-frame on large +0.029%); its unit-test 1608/1616: the gate was started in the background (`&`), so SIGINT was ignored down to its test shells and the host_io tests whose Ctrl-C must end a foreground job failed (they pass alone, and the whole unit-test passes 1612/1616 when SIGINT is not ignored)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/root.zig')
0 files changed, 0 insertions, 0 deletions
