diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 11:54:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 12:58:24 -0300 |
| commit | 60e956c332bc0aca49ea92e59fa1d1ec3ab418c2 (patch) | |
| tree | 0c15331e757194ef152be12d02de6d952c2b68bb /runtime/root.zig | |
| parent | eae5736ad923731135dd35b3783c90a3358bd0fa (diff) | |
| download | pardes-60e956c332bc0aca49ea92e59fa1d1ec3ab418c2.tar.gz pardes-60e956c332bc0aca49ea92e59fa1d1ec3ab418c2.zip | |
runtime: ONE session loop, which the terminal's and the window's sessions run (the reorganisation's runners, step 10c, its first part; the design round's rule L): runtime/session.zig's Loop(Frontend) holds what a session is apart from its frontend (its allocators and workers, its frame record, its core from an upgrade, a dump or new, the prompt files, the 9P listener, its replica clients' Peers) and runs it from start to end (the first effects, an upgrade's shells, the pump, the clients' boundary, an Upgrade, the daemon's notes, a Restore; the listener ended first, then the clients, the frontend's devices, the prompt files, the core), over a frontend of eleven calls (options, open, close, resumePtys, start, sent, upgradeAsked, note, watched, restoring, restored: each a difference the two still have, their devices being step 11's), and the two localSessions (193 and 189 lines) are now each frontend's Own (177 and 167); what differed is one behaviour now or a value the frontend gives: the end's order is the window's (the clients let go before the devices stop, where the terminal stopped its devices first), a session that quit does not restore in the same pass (the terminal's lacked the test), a Restore's new core is given the host by the session (no effect: pump sets it); Peers is the loop's, each Shell points at it (a client's at an empty one, as its value was); no other behaviour changes. Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test lspcomplete and lspcompletemoved (the base's; winch and headersweep-restored failed once and passed on their retry); gui unit-test 1613/1617 with the base's BaselineHarnessMismatch; replicas --clients 5 (the soak's own session stand-in still) diverged 0, unequal 0, quiet checks 526/0, 550/0, 811/0, unlisted 0; daemon.py plain, --far, --window-clients, --upgrade from pardes-tree's pfx-base to this and back, --games (once failed at load 10, a client's keys stopped at a kind's pane; then the base and this alternated three times each at load 2-3, all pass); the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs; the start to the first frame (the startup kit's start.py, ReleaseFast, no addons, medium.zig, the base against this): the terminal 54.3/53.4/53.4M -> 53.4/54.3/53.4M instructions, best of 25 8.4 -> 8.4 ms; the window offscreen 396/394/404M -> 395/401/397M, best of 10 229 -> 222 ms; gate-w run4-1 against tree1: frames 77/77 byte-identical in Debug, unit-test 1613/1617 (no failure the base has not), the alternated windows' pictures identical in all 10 runs, corpus2x -0.118% (noise 0.092%), perfops 97 counts within 0.1% (largest image-frame on large +0.026%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/root.zig')
| -rw-r--r-- | runtime/root.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/root.zig b/runtime/root.zig index 61db8cbe..ec89e734 100644 --- a/runtime/root.zig +++ b/runtime/root.zig @@ -5,6 +5,7 @@ //! and `core`. pub const daemon = @import("daemon.zig"); pub const client = @import("client.zig"); +pub const session = @import("session.zig"); pub const upgrade = @import("upgrade.zig"); pub const crash = @import("crash.zig"); pub const addon_test = @import("addon_test.zig"); @@ -14,6 +15,7 @@ pub const ninep = @import("9p.zig"); test { _ = daemon; _ = client; + _ = session; _ = upgrade; _ = ninep_io; _ = ninep_io.Client; |
