summaryrefslogtreecommitdiff
path: root/src/detached
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 15:57:57 -0300
committerGabriel Schneider <[email protected]>2026-10-30 16:29:54 -0300
commitf7a0b6d902f001cff0343e11263868c5356f33c6 (patch)
tree5d063c3f6a7d08a360b7bd3f7955221414101299 /src/detached
parent5b120f481a5e581d5252c41a4ddcc3e28c8a07f3 (diff)
downloadpardes-f7a0b6d902f001cff0343e11263868c5356f33c6.tar.gz
pardes-f7a0b6d902f001cff0343e11263868c5356f33c6.zip
tape: an error crosses by its name, a stat as fs.OsStat, and the tape's shape is in wire.semantics: a replica of another build read its session's units as its own build's, so a window client of a terminal's session, or of the box's, read every error by a number its build gives another (451 of 505 names numbered otherwise in the Linux terminal's and window's builds, 244 between Linux and FreeBSD: pardes-gui replaying a terminal's tape panicked at `unexpected error code, found error.NonLocalPath`, and so did main's window client of a session on the box at its Look of a fifo) and a FreeBSD stat out of step (nlink 8 bytes there, 4 here); a name this build's set lacks is a divergence (error.NoSuchError), never another error; an anyerror (a host's report) reads back as one of tape.Failure's, a Debug build panicking at one outside it as it is taped; tape.shape (each taped type's fields, tags, enum names and numbers) in semantics refuses, in words, builds whose tapes differ (the stat taped as before: the Linux and FreeBSD builds hash to two), and a site whose result tape.results does not list is a compile error; walk's test of an error by its name
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/detached')
-rw-r--r--src/detached/wire.zig14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/detached/wire.zig b/src/detached/wire.zig
index 119601fc..1c9e554e 100644
--- a/src/detached/wire.zig
+++ b/src/detached/wire.zig
@@ -29,9 +29,13 @@ const family = switch (config.platform) {
/// What makes two cores step differently, hashed: a replica's hello carries
/// its own, and one of another build is refused. The protocol, the release
/// and commit, the platform and build options, every dependency's content
-/// hash (grammars, ghostty, Unicode) and the walker codec's assumptions
-/// (pointer width, byte order). Not the OS: a Linux client of a FreeBSD
-/// session is the main case, and what differs there is the host's, taped.
+/// hash (grammars, ghostty, Unicode), the walker codec's assumptions
+/// (pointer width, byte order) and the tape's shape (tape.shape: what each
+/// input and each answer of the host's is laid out as). Not the OS: a Linux
+/// client of a FreeBSD session is the main case, and what differs there is
+/// the host's, taped, in a shape every OS shares (an error by its name, a
+/// stat as fs.OsStat). Nor the build mode: a Debug build steps as a
+/// release one does (regexp.zig's one budget).
/// Nor the terminal's build against the window's: their cores step alike,
/// the GUI's own words by the view's frontend (builtins.zig `here`), so a
/// window replicates a terminal's session and a terminal a window's.
@@ -41,14 +45,14 @@ const family = switch (config.platform) {
pub const semantics: u64 = blk: {
@setEvalBranchQuota(1_000_000);
break :blk std.hash.Wyhash.hash(0, std.fmt.comptimePrint(
- "wire {d}\npardes {s} {s}\n{s} grammars {} {} {} {} mupdf {} themes {} workspace_tag {} sources {} board {d}x{d}\nusize {d} {t}\n{s}",
+ "wire {d}\npardes {s} {s}\n{s} grammars {} {} {} {} mupdf {} themes {} workspace_tag {} sources {} board {d}x{d}\nusize {d} {t}\n{s}\n{s}",
.{
version, config.version, config.commit orelse "unstamped",
family, config.syntax_highlighting, config.syntax_zig_grammar,
config.syntax_minimal_grammars, config.syntax_full_grammars, config.mupdf,
config.theme_animation, config.workspace_tag, config.embed_sources,
config.esp32p4_cols, config.esp32p4_rows, @sizeOf(usize),
- builtin.cpu.arch.endian(), config.deps,
+ builtin.cpu.arch.endian(), config.deps, pardes.tape.shape,
},
));
};