<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/build/patches/ghostty_kitty.zig, branch main</title>
<subtitle>Pardes</subtitle>
<id>https://git.0x4200.cafe/pardes.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/pardes.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/'/>
<updated>2026-11-20T04:04:49Z</updated>
<entry>
<title>term: a kitty image's medium (a file, a temporary file, shared memory) is the session's read and a recorded answer on the tape, so every replica's emulator is handed the bytes the session read, or its failure, and never reads its own machine: ghostty's loader gets the bytes through `LoadingImage.read_medium` (an Edit in build/patches.zig, ghostty's own read handed to it, the report in docs/ghostty-kitty-medium.md), which the terminal module sets to the core's `Term.media`, a `tape.valueIn(.medium, ...)` site (a new Site; `valueIn` is `value` with the answer's slices in the loader's allocator, no yield inside a feed), so a read crosses to a client as a file read does (inline under 1 MiB, by hash at or over it), a temporary file is deleted and shared memory unlinked once, on the session, and the program is answered by the session alone; a replica no longer loads by direct data only: `Term.direct`, `State.direct` and the `direct` entry go (`media` in their place); under screen state the read stays the authority's (a screen-state replica feeds no emulator); FIRST the test through the replica's surface (a session and a bytes replica, four images shown, by a file, a temporary file, shared memory and a missing file): on the base the digests parted (expected 8810391091473565423, found 2236913079067993401: the replica's loader said "unsupported medium" and did not move its cursor), now they agree, the terminals dump the same bytes, the temporary file and the object are gone and the replica read nothing (ghostty's FileNotFound warned once); tui term-test 17/17, kitty-test 45/45, core-test 856/1007 (151 skipped), shell-test 1043/1046, unit-test -Dtest-filter=bytes: 23/23 (the perf check's BaselineHarnessMismatch, as on the base)</title>
<updated>2026-11-20T04:04:49Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-20T03:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=4bcf2055cb97d0c69fc94643b3e43b579d6fa30c'/>
<id>urn:sha1:4bcf2055cb97d0c69fc94643b3e43b579d6fa30c</id>
<content type='text'>
Co-Authored-By: Claude Opus &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>build: the upstream patches as data, applied at make time by tools/patch.zig</title>
<updated>2026-11-17T17:25:10Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T17:07:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=73e324a8dc89837b5de35b5cedee3a112fad5ec4'/>
<id>urn:sha1:73e324a8dc89837b5de35b5cedee3a112fad5ec4</id>
<content type='text'>
Each of the four upstream patches (vaxis's parser, render and queue,
zstbi, ghostty's kitty loader, mvzr) is a table of edits in
build/patches.zig: the text to find, how many times it occurs, its
replacement. tools/patch.zig (39 lines, the shape of sketchbook's
reload_edit) applies one file's table at make time, and appends what the
patch adds as a real Zig file of build/patches/ (vaxis_parser.zig,
vaxis_render.zig, ghostty_kitty.zig, mvzr_budget.zig); an edit whose text
moved or doubled writes nothing and fails that file's step. The
configure no longer reads or carries ~300 KB of patched sources: the
binary configuration halves (tui 607,524 -&gt; 302,049 bytes, gui 643,248
-&gt; 337,769). build/patches.zig 386 -&gt; 338 lines, plus 57 in its four
appended files.

Gates: zig build -l and -h byte-identical, whole matrix and test/lib.
The patched files byte-identical to the base's (Parser.zig, Vaxis.zig,
queue.zig, graphics_image.zig, mvzr.zig, zstbi.c), and the four module
directories the compiles read (vaxis 53 files, ghostty 1,009, mvzr,
zstbi) identical file for file (sha256). The warm rebuild cannot be all
cached: a module root in another directory is another compile, though
its bytes are the same (a 10-line experiment shows it), so this was
built from a wiped cache: install addons, core-test shell-test unit-test
process-test on tui and gui give the base's counts (tui 2339/2486, gui
2398/2545, the same failures). pardes and pardes-gui differ from the
base's in layout only: section sizes equal, every named symbol the same
name, size and kind (tui 37,228; gui 79,507 against the base tree
relinked cold), anonymous symbols the same sizes; image.so and pdf.so
identical once their debug info is stripped. (A cold relink of the base
tree itself takes operator new from libc++abi.a rather than libc++.a,
as this one does: the base's binary was linked in another order.) A
second build is all cached, the patch runs too.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
</feed>
