diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 18:11:38 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 19:48:03 -0300 |
| commit | c607dc14502a6956bdfa3575bc7363514a7abeb4 (patch) | |
| tree | 309b6954e2e53c43f47ef6ab902745957b05b60d /abi | |
| parent | 8e850e6c923dcd84b7a5483f73377bd192b94a2b (diff) | |
| download | pardes-c607dc14502a6956bdfa3575bc7363514a7abeb4.tar.gz pardes-c607dc14502a6956bdfa3575bc7363514a7abeb4.zip | |
wire: a replica's semantics hash takes what pardes changes in its dependencies (pardes-term-join-10, item 2; the note's "what cannot be made impossible"): `wire.semantics` hashed every dependency's pin but not build/patches.zig's edits nor the files they append nor uucode_config.zig, which an unstamped build has no commit to stand for, and which change how a core steps for the same bytes (ghostty's page size, so how many rows its history drops at once; a kitty medium's read; mvzr's budget; the Unicode tables ghostty measures widths by): build/core.zig `patchesHash` reads them at configure time (each file's name and text, xor-ed: no order) into `build_info.patches`, which `semantics` formats in; the failing run first: on the base, a comment appended to build/patches/mvzr_budget.zig left `pardes --version`'s semantics at f5f5b4aa40343313 both ways; with this change c5df65c0a926efab became 39ea20fc4149cc6b (logs/item2.sum); still not in the hash, on purpose: ghostty's optimize mode (build/core.zig:518, Debug builds it safe; Debug and ReleaseSafe sides of one session stay allowed, the upgrade rows between the two builds are that guard) and its SIMD (:517, off for a Darwin target built elsewhere: a scalar and a vector path must agree, ghostty's own tests); and pardes's own terminal module (its history cap, kitty limits) stands only in a stamped commit (the ponytail above `semantics`)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'abi')
| -rw-r--r-- | abi/wire.zig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/abi/wire.zig b/abi/wire.zig index 46e51645..55a08909 100644 --- a/abi/wire.zig +++ b/abi/wire.zig @@ -74,8 +74,10 @@ const family = switch (config.platform) { /// 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, the terminal emulator, 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 +/// (pointer width, byte order), the tape's shape (tape.shape: what each +/// input and each answer of the host's is laid out as) and what pardes +/// changes in its dependencies (build_info.patches: the patches' text, the +/// Unicode tables' configuration). 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 @@ -96,12 +98,12 @@ pub const semantics: u64 = blk: { // 11 KB) joined on, not formatted: formatting them at comptime was 5 % // of a compile of the core. break :blk std.hash.Wyhash.hash(0, std.fmt.comptimePrint( - "wire {d}\npardes {s} {s}\n{s} grammars true {} {} {} workspace_tag {} sources {}\nusize {d} {t}\n", + "wire {d}\npardes {s} {s}\n{s} grammars true {} {} {} workspace_tag {} sources {}\nusize {d} {t}\npatches {x}\n", .{ version, build_info.version, build_info.commit orelse "unstamped", family, g != .none, g != .none, g == .full, config.workspace_tag, config.embed_sources, - @sizeOf(usize), builtin.cpu.arch.endian(), + @sizeOf(usize), builtin.cpu.arch.endian(), build_info.patches, }, ) ++ build_info.deps ++ "\n" ++ pardes.tape.shape); }; |
