summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 14:44:08 -0300
committerGabriel Schneider <[email protected]>2026-11-21 15:36:57 -0300
commita86e213e3e8053906df5ed4a37821c41a4afd932 (patch)
tree9e22bf5bbe7b988757d10f80ac2348f8e5da27cf /core/root.zig
parent8152cf383c8296be29e80175b57e40f8d41049bf (diff)
downloadpardes-a86e213e3e8053906df5ed4a37821c41a4afd932.tar.gz
pardes-a86e213e3e8053906df5ed4a37821c41a4afd932.zip
layers: `Changes` does not hold the loop (P43), in Stream.zig's model: the word records what is asked (`jj.Ask`: the pane by serial, the file, the revision annotated, the revset; `Stream.changes`, one at a time, one asked meanwhile in `changes_next`) and emits the `search` effect with a generation of its own (`jj.gen_bit`); the shell's worker (`jj.start`, through Stream.start) runs jj's two commands (the log with each change's diff of the file, the annotation) and posts their raw answers as ONE input (`Event.search`, its new `jj` field naming the pane: the log in `rows`, the annotation in `styles`, a refusal with `end` failed), which the step takes (`jj.receive`): the last asked is parsed (`jj.parse`: pins, provenance, hunks, nest) and pinned, an earlier one's or a closed pane's dropped, then the one asked meanwhile goes; a replica replays that input and never runs jj; a host with no workers (a test) runs both as sites on the loop, a host whose worker cannot start hands the answer in as an input; while it runs the pane says `Changes: jj…` and what it showed stays until the answer lands; round 3's `may_wait` row for `Changes` is gone (the far-client walk: nothing stops there now); tests through the replica's surface with a worker host: the word returns before jj answers and says so, the answer lands as one input and a client replaying it ends equal; a second Changes before the first's answer pins only the second's; the pane closed before the answer: nothing pinned, nothing kept (no leak); measured (ReleaseSafe, `Changes xpxluunz..pvtvmpzx` on core/replica.zig, 16 changes, 8,328 lines, 112 hunks, jj's answers taken by hand): the step that takes the answer holds the loop 2.3-2.8 ms, where the word held it 588-603 ms (jj's two runs, 253 and 349 ms here, are the worker's now); core-test 899/1059 (160 skipped), shell-test 1101/1104 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/root.zig b/core/root.zig
index de1c44b0..5c91afd1 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -629,7 +629,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{
.{ "exec.zig", 3, "kindOf's stat (tape.site(.kind), its io the tape's) and Shell's check (tape.site(.shell))" },
.{ "fs.zig", 38, "the file system behind the tape's sites (open, read, write, stat, mkdir, access; their io the tape's), the process's home (read once at the start, taped), the 9P transport" },
.{ "hunks.zig", 1, "a test helper's file read" },
- .{ "jj.zig", 8, "jj run under tape.site(.jj) on an io of its own (the tape's spawns nothing) with this process's environment, the signal mask cleared as Stream's children's: the session's, a replica replays its answer" },
+ .{ "jj.zig", 9, "jj run under tape.site(.jj) on an io of its own (the tape's spawns nothing) with this process's environment, the signal mask cleared as Stream's children's: the session's, a replica replays its answer; or on a worker for `Changes`, its answer an input; a test's shell inbox (dev)" },
.{ "look.zig", 6, "openLink's fork (the host's: a view's frontend opens a link) and a remote's error name" },
.{ "memory.zig", 7, "the memory regions themselves (mmap, madvise, their locks)" },
.{ "replica.zig", 75, "the client and session engines: sockets, threads, clocks, the blob cache, traces" },