<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/build/library.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-20T07:38:20Z</updated>
<entry>
<title>build: build.zig reads like sketchbook's (pardes-build-2 item 4; the start design's 4.3 and 4.4): its head comment is a consumer's lines, both shapes (`pardes-syntax` with `.grammars = .minimal`, as computeranim's anim takes it; `pardes-editor` with `.grammars = .none, .editor = true` and a grammar of its own, as sketchbook's examples/live does) and what each option selects, and `build()` begins with what such a package may ask for, the mode and `grammars` (pardes's own build takes both too), then `if (!b.isRoot()) return library(...)` with the target and `editor`, which only a dependency declares: the root's target is not read there, since its default comes from -Dplatform (x86_64-linux-gnu.2.38, or the Mac's) and a package that passes none keeps the native one; build/library.zig is `library` at the foot of build.zig, the editor option read with the others and handed in (its body otherwise as it was); `-Deditor` stays a dependency's alone and the root's -Dgrammars help text is the head comment's words; lines: build.zig 361 -&gt; 430 (26 of them the head comment), build/library.zig 49 -&gt; 0, build.zig and build/ 2,971 -&gt; 2,991; tui install, lib-test (the package still asks for `.grammars = .minimal, .editor = true`) and hxlib (538 cases, 0 mismatches) as before</title>
<updated>2026-11-20T07:38:20Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-20T07:37:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=a3634ab3dbf2fabd997f137c47eafd7bc6c442b0'/>
<id>urn:sha1:a3634ab3dbf2fabd997f137c47eafd7bc6c442b0</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 grammar set is one option, `grammars`, with `none | minimal | full` (pardes-build-2 item 3; the start design's step 3, P31's lean): for a package that depends on pardes `.grammars = .minimal` where it wrote `.@"tree-sitter" = .minimal`, and for pardes's own products `-Dgrammars=minimal` where `-Dtree-sitter=minimal` was (one option, not two spellings of one: no live gate script passes -Dtree-sitter, only two configure-matrix scripts of an earlier agent's and the first build pass's shapes script, which also name test/lib and the deleted `disabled` and change anyway; the three consumers' lines change for `.grammars` anyway); `none` is tree-sitter's runtime with no grammar, for a program that hands in its own at run time (sketchbook's examples/live, which set `zig` only because it was the smallest set that kept syntax on: `zig`, its one setter, goes, and the Zig grammar is a minimal one: grammar_manifest's tiers are minimal and full); syntax.zig's sets read `none` (`minimal_grammars` is `!= .none`, four tests' doubled condition one), the Build pane prints the set's own name (`none` was what it printed for the zig set), and abi/wire.zig hashes the set as the four words it was hashed as, so a minimal or a full set's semantics did not move (8b6382fddba7b382 full, 0520895ac88d25ad minimal, as at items 1 and 2) and `none` hashes as highlighting with no grammar (794d23e0255281f8; the old zig set's hash is gone with it); test/lib asks with `.grammars`; the manual's table, its library section's two lines and the changelog say it; build.zig and build/ 2,974 -&gt; 2,971 lines; -Dgrammars=full, minimal and none each install and pass lib-test, and the old spelling is refused (`invalid option: "tree-sitter"`); the suites run on the stack's top (item 5)</title>
<updated>2026-11-20T07:36:47Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-20T07:36:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=fc9e2eaf5ad86719a3bc57d18ce4ad302461dfbd'/>
<id>urn:sha1:fc9e2eaf5ad86719a3bc57d18ce4ad302461dfbd</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 `-Dtree-sitter=disabled` tier is deleted (pardes-build-2 item 2; P31's Q5, decided on the evidence 2026-11-20): a pardes with no tree-sitter at all, whose syntax.zig stubbed `ts` with four opaque types and answered every call empty; it did not compile on the base (`zig build install -Dplatform=tui -Dtree-sitter=disabled`: core/indent.zig:48 `struct 'syntax.ts__struct_3541' has no member named 'Tree'`, since indent.zig reads the parse tree the stub never had) and nobody set it; out with it: the `disabled` value of `TreeSitterGrammars`, build/core.zig's `treeSitter` made always (its module and its queries no longer optional, so `TreeSitter.wire` and `core.module` add them plainly), the stub `ts` and `ts_queries`, `syntax.enabled` and every branch that was for it: 32 guard lines and 16 terms of a condition in core/syntax.zig (its `start` and `stop` unwrapped), whole test guards in core/draw.zig, Stream.zig, File.zig, Query.zig, Core.zig (2), mouse.zig, replica.zig (2), test/output.zig (7), test/panes.zig (11) and test/behaviour/{panes,settings}.zig, a term in Stream.zig's two worker tests, `TreeContext.enabled` (builtins.zig) and the config table's condition on it (config.zig), test/output.zig's two conditions on the grammars; abi/wire.zig hashes the grammar set as the same four words (`true true` for highlighting and the Zig grammar, which every set has now), so `pardes version`'s semantics line did not move: 8b6382fddba7b382 on tui, gui, the bare build's two, both statics and FreeBSD, 0520895ac88d25ad with -Dtree-sitter=minimal, as at item 1; the manual's option table and the changelog say it; build.zig and build/ 2,981 -&gt; 2,974 lines; every shape configures (11) and builds (tui, gui, bare, static musl and gui, FreeBSD, -Dtree-sitter=minimal, the macOS library for Linux and aarch64-macos); tui core-test 856/1006 (150 skipped), shell-test 1046/1049, pane-test 183/184, behaviour-test 275/275 and -- --replay 275/275, term-test 17/17, kitty-test 45/45, addon-test 5/5, lib-test, hxlib 538 cases 0 mismatches, process-test 0 of 144 failed (diffstack failed once and passed on the runner's own retry), gui unit-test 1643/1647 (the perf check's BaselineHarnessMismatch, the base's); load 5-26 on 16 cores</title>
<updated>2026-11-20T07:33:18Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-20T06:57:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=852299dd8d056b90446508757d8c6dacf8975abe'/>
<id>urn:sha1:852299dd8d056b90446508757d8c6dacf8975abe</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: one options module a module set, `pardes_options`, and `build_info` beside it (the start design's step 2, pardes-build-options change 2): `core.module` makes the set's options from the build's `ShellConfig` and the set's `Core` (the platform, now a `Core` field in place of a module handed in; the grammar set; the terminal; pardes-isolate's `isolated`; the addons compiled in and the pdf one with them, `builtin_addons` and `builtin_pdf`; tracy; the workspace tag; embedded sources; the library's `lib`), one module shared by the set's five as `pardes_config` was, and `build_info` (version, commit, change, built, deps) made once in `assemble` and given to every set; the three one-value modules made in both values (`term_options`, `pardes_isolation`, `builtin_addons`), `shellOptions`, the six `Parts` fields that held them, `Parts.tracy` and `Parts.embed_sources` (the `ShellConfig` in `Parts` holds both) and the assembly's two options (`opts`, `gui_opts`) go; the library's `pardes-syntax` and the editor (the library's and hxlib's) get `pardes_options` with no terminal, the editor's with `lib` as before; the sources' imports follow, one identifier a line (abi/wire.zig and core/Output.zig import both, the hash's and the Build pane's lines reading the version, commit and dependencies from `build_info`); test programs see it as before, through the core module's import table (pane-test, behaviour-test); `pardes version`'s semantics line did not move on any product (38b5ae573b965550; d41689a1f97605b8 with -Dtree-sitter=minimal); build.zig and build/ 2,992 -&gt; 2,960 lines (3,005 at the base); every shape configures and builds as on the base, pardes-isolate and -Dtree-sitter=disabled failing with the base's same errors (pardes-isolate reaching them through its own options module); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test (11/11 in the consumer), hxlib 538 cases 0 mismatches, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); the frame and perf gate (gpu/bo-s2 against tree1) PASS: 77/77 frames byte-identical in Debug, the alternated window corpus2x -0.104% (pictures identical in all 10 runs), the 97 per-operation counts within 0.1% (largest image-frame +0.0345%; against the coordinator's pardes-merge22 gate m22-g, 90 within 5 ppm, deep-sel 8-10 ppm, image-frame up to 85 ppm, its known noise); load 5-25 on 16 cores</title>
<updated>2026-11-20T03:24:42Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-20T02:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=a481de9feea08de7b5b82c2471de70abd70d7462'/>
<id>urn:sha1:a481de9feea08de7b5b82c2471de70abd70d7462</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>core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's</title>
<updated>2026-11-19T01:23:51Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-19T01:03:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=99f5b10eccd95aa0066ea6fe6bb75f367ab56a47'/>
<id>urn:sha1:99f5b10eccd95aa0066ea6fe6bb75f367ab56a47</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>build: typst found at make time; the deprecated build names replaced</title>
<updated>2026-11-17T17:33:52Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T17:30:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=3e77fdcd57693b337d915873e9919de2e1ec6521'/>
<id>urn:sha1:3e77fdcd57693b337d915873e9919de2e1ec6521</id>
<content type='text'>
docs.add takes typst through b.findProgramLazy: the three renders run
the program found at make time, and without typst on PATH the step that
renders fails ("program not found") where three addFail steps and the
optional renders said so before. findProgram was the configure cache's
poison; build() now poisons it itself, with the reason (the environment,
the clock and vendor/ are read untracked: REORG decision 20 keeps the
configure uncached). Line for a line: lazyDependency -&gt; dependencyLazy
(catch for orelse), runAllowFail -&gt; runFallible, b.dupe -&gt;
b.graph.dupeString, .ReleaseSafe -&gt; .safe; build.zig through zig fmt.
Left: gui.zig's three lazyDependency calls (lines 62-176, which another
change rewrites) and std.Build.package_map (no line-for-line
replacement: dependencyLazy's error would have to reach build()).

Gates: zig build -l and -h byte-identical, whole matrix and test/lib
(its configuration too); the configuration gains the find-program step
and the typst runs are named run typst (...) instead of by the path
found, nothing else changes; --print-configuration-path still a tmp/
path, twice; zig build cheatsheet writes cheatsheet.pdf, and with PATH
holding zig alone fails "program not found" while -l succeeds. Warm:
install addons, core-test shell-test unit-test process-test on tui, and
install addons on gui: 0 compiles not cached, binaries cmp-identical.

Co-Authored-By: Claude Opus 5.5 &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>
<entry>
<title>build: the core named once (core.module), the window's pieces made once</title>
<updated>2026-11-17T16:45:32Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T16:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=7a1c66f1a15911763db42d890e9e8172fe404170'/>
<id>urn:sha1:7a1c66f1a15911763db42d890e9e8172fe404170</id>
<content type='text'>
build/core.zig's module() makes every core: the shell, the core, the core
without the terminal (core-test), pardes-isolate, the static, the bare
build's window, the syntax module's (syntax-test) and the 9P test roots;
each import and library a core takes is written there once, in the order
the fold over core_mods and wireCore gave them, so every compile keeps its
inputs. Parts holds what a core is made of, Core the few ways the products
differ. Tracy's client and BSD libutil stay where they were (Tracy: the
shell and the core; libutil: the shell), now said by a field. Gone: the
core_mods fold and its buffers, wireCore and its eleven optional fields,
the 9P roots' copies of core_module's import table and link objects.
The editor library's and pardes-syntax's import lists are written out in
full (editorModule, library.zig); TreeSitter.wire adds the grammars;
ShellConfig has defaults, so the library's two literals are one.
build/gui.zig's make() builds SDL, gui_c, sketchbook's renderer, HarfBuzz
and the renderer's and atlas's tests once, and Window.wire links them into
each window shell. One pardes-lspmock (tests and process-test shared it
twice from one root); tools.program() makes the eleven uniform runner
programs in a line each. The pdf benches (tools.pdfBenches) are made once
the core is.

Gates: zig build -l and -h byte-identical to the base over the matrix
(bare, tui, gui, macos, ReleaseFast, -Dpdf=false, -Dtree-sitter=minimal,
musl, -Dtracy), test/lib's configuration byte-identical. Warm rebuild of
install addons and core-test shell-test unit-test process-test on the
base's cache: tui every compile cached (0 rebuilt), 2339/2486 tests passed
with the base's 4 known failures, the same counts as the base; gui one
change: SDL3 had -DSDL_DISABLE_STB=1 added once per window shell (twice
with -Dplatform=gui), now once, so libSDL3.a's cache path moves and
pardes-gui and the shell-test root relink (their argv differ in that one
path, nothing else); tests 2398/2545, as the base. Installed bin/pardes,
image.so and pdf.so cmp-identical on tui; image.so and pdf.so identical on
gui, pardes-gui differs by the relinked SDL3 (size 398,737,210 -&gt;
398,733,114). zig build syntax-test, which did not compile on main, now
compiles and passes (40/40).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>build: build() cut into build/*.zig, as pure moves</title>
<updated>2026-11-17T16:26:17Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T16:26:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=e5c57a863004914136c4e6b0fa13ed805b3b383d'/>
<id>urn:sha1:e5c57a863004914136c4e6b0fa13ed805b3b383d</id>
<content type='text'>
build.zig 2,406 -&gt; 658 lines; the pieces moved verbatim into a file per
thing, each a function called where its code stood, so every step, module
and option is made in the same order as before: build/docs.zig (the typst
renders, builtins-json, command-line.txt), build/addons.zig (the GPU
addons, the pdf addon and its benches, the image addon), build/patches.zig
(vaxis, zstbi, ghostty's kitty loader, mvzr), build/gui.zig (the window's
shells and its renderer and atlas tests), build/macos.zig (the app, dmg,
e2e, its unit-test), build/tools.zig (harnesses, hx*, benches, perf, the
syntax snapshots, lib-test, history), build/tests.zig (unit-test and its
roots), build/library.zig (what a dependent package gets), build/core.zig
(the options module, themes, grammars, uucode, the editor module,
wireCore); mupdf.zig is build/mupdf.zig. A fragment takes what it uses as
explicit parameters, or as one struct of exactly those (cloud9's and
build/process.zig's pattern). Platform, PerfBuild and TreeSitterGrammars
stay in build.zig: Options names an enum or struct by @typeName, so where
they are declared is in every options file.

Gate: zig build --print-configuration, -l and -h byte-identical to the
base over bare (-Dhome-install=false), tui, gui, macos, tui and gui
ReleaseFast, -Dpdf=false (tui, gui), -Dtree-sitter=minimal, musl,
-Dtracy, and test/lib's -l and --print-configuration.

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