<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/build/addons.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-23T12:15:57Z</updated>
<entry>
<title>pdf, build: the test of a PDF searched for what its page has not and asked the sections it has not, and the C-backed addons' own Zig built with the checks a release keeps: on the installed ReleaseSafe build (4faf94b72b60) a session with docs/design.pdf open aborts at the keys `/zzqxv&lt;Enter&gt;` (a search for a pattern page 1 does not have: the page's job asks the bridge for its hits, pardes_pdf_search_page answers OK with quads NULL and a count of 0, and pdf.zig:762 slices the NULL: "attempt to use null value" on a worker, the whole session gone), and at `f` on test/pdf-fixtures/tall.pdf (no outline: items NULL, count 0, sliced in sections()); no Debug run ever saw either because a Debug build compiled pdf.zig and image.zig at c_optimize, ReleaseFast, without the checks; now core.zig's `addon_optimize` (ReleaseSafe in Debug, c_optimize otherwise) builds the two addons' modules (their Zig and their bridge's C) as the user's build does, MuPDF, FreeType, zlib and stb staying at c_optimize; the test (test/behaviour/addons_pdf.zig, through 9P: `/zzqxv` on design.pdf, its `:1:1` a miss, `f` on tall.pdf said to have no outline) fails in Debug with the abort at pdf.zig:762 (logs/t1-dbg-filter.log: 1/2, 1 crashed)</title>
<updated>2026-11-23T12:15:57Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-23T12:00:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=0733d0a0d89bacb64f45d71b06ffbcf1abe6ffb3'/>
<id>urn:sha1:0733d0a0d89bacb64f45d71b06ffbcf1abe6ffb3</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: sketchbook's devices by name: the window asks sketchbook (in build/gui.zig only) for its `c`, translated from gui.zig's header over pardes's own SDL (-Dc-header, -Dc-include), its `dev` (the executor, cells, presentation, glyph atlas and scene format: src/gui/gui.zig takes the five from it) and the named font.c, compiled against pardes's FreeType and HarfBuzz as before; every sb.path into sketchbook, the copied shader list, compileGlsl and -Dgpu-only are gone; -Dprebuilt-shaders is passed through; the GPU addons take gpu_scene from the same instance (addons.gpu gets the window's dependency, null off the window, after it); the Cells and Atlas tests are sketchbook's own now (5 fewer here). gui: frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 1582; the 5 moved, the base's 8 failures), tui-has-no-sdl; tui: core-test 811/950 (139 skipped), configures with ../sketchbook moved aside</title>
<updated>2026-11-17T18:38:03Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T18:17:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da'/>
<id>urn:sha1:d0c4da0b37f45b805081eb3f3dd95ae0fa9a99da</id>
<content type='text'>
</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 tty configures with no sketchbook beside it</title>
<updated>2026-11-17T17:27:57Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T17:27:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=dd85d1d636383a735171472c96fd595a91856530'/>
<id>urn:sha1:dd85d1d636383a735171472c96fd595a91856530</id>
<content type='text'>
The snake and veil GPU addons ask for sketchbook, a path dependency,
and a missing path is a fatal error at configure (reports/build-api.md
3.2), so every build failed without ../sketchbook, the terminal's too.
addons.gpu now asks for it under the window build alone (-Dplatform=gui
or the bare build); elsewhere snake-shader and veil are still steps,
which fail saying so. On the terminal's build the snake_shader addon's
--addon-test comparison goes with it (behaviour-test and addon-test run
the fake, snake, life and pdf ones there).

Gates: with ../sketchbook moved aside, zig build -l -Dplatform=tui (and
--print-configuration, and the musl shape) succeeds, where the parent
fails "failed to open ../sketchbook: FileNotFound"; -Dplatform=gui still
needs it. zig build -l and -h byte-identical, whole matrix; the
printed configuration byte-identical for the bare and gui shapes; the
tui, musl, nopdf, tsmin, ReleaseFast and macos shapes lose the
snake_shader and veil libraries, their installs, glslc runs, test and
--addon-test comparison and sketchbook's abi-hash tool, and gain one
Fail step; the tui configuration is the same with and without
sketchbook. Warm rebuild on tui (install addons, core-test shell-test
unit-test process-test): 0 compiles not cached, the parent's counts,
installed binaries cmp-identical to the parent's.

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>
