summaryrefslogtreecommitdiff
path: root/abi/wire.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 03:57:20 -0300
committerGabriel Schneider <[email protected]>2026-11-20 04:33:18 -0300
commit852299dd8d056b90446508757d8c6dacf8975abe (patch)
treec8318551828a1e4897fbcc46791c9e9f87d2e61c /abi/wire.zig
parent1e127c3968205f0e42faa4eb5b894cea296346d0 (diff)
downloadpardes-852299dd8d056b90446508757d8c6dacf8975abe.tar.gz
pardes-852299dd8d056b90446508757d8c6dacf8975abe.zip
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 -> 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
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'abi/wire.zig')
-rw-r--r--abi/wire.zig13
1 files changed, 7 insertions, 6 deletions
diff --git a/abi/wire.zig b/abi/wire.zig
index 1f7d02d2..4f6e199b 100644
--- a/abi/wire.zig
+++ b/abi/wire.zig
@@ -63,18 +63,19 @@ const family = switch (config.platform) {
pub const semantics: u64 = blk: {
@setEvalBranchQuota(1_000_000);
// The grammar set as the four words it was hashed as when it was four
- // options (highlighting, zig, minimal, full), so the hash stays.
+ // options (highlighting, zig, minimal, full), so the hash stays:
+ // highlighting and the Zig grammar are in every set.
const g = config.grammars;
// The two long ones (the dependencies, 2.5 KB, and the tape's shape,
// 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 {} {} {} {} workspace_tag {} sources {}\nusize {d} {t}\n",
+ "wire {d}\npardes {s} {s}\n{s} grammars true true {} {} workspace_tag {} sources {}\nusize {d} {t}\n",
.{
- version, build_info.version, build_info.commit orelse "unstamped",
- family, g != .disabled, g != .disabled,
- g == .minimal or g == .full, g == .full, config.workspace_tag,
- config.embed_sources, @sizeOf(usize), builtin.cpu.arch.endian(),
+ version, build_info.version, build_info.commit orelse "unstamped",
+ family, g != .zig, g == .full,
+ config.workspace_tag, config.embed_sources, @sizeOf(usize),
+ builtin.cpu.arch.endian(),
},
) ++ build_info.deps ++ "\n" ++ pardes.tape.shape);
};