diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 03:43:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 03:43:55 -0300 |
| commit | 4faf94b72b60ecb0656e7e90ca693b63b1fde71c (patch) | |
| tree | d5f23e93b7f19ed373e1c644c8ae3f364d30d84d /core/walk.zig | |
| parent | 1ebae0db0a185455b2a03f22f5106113c6407a2f (diff) | |
| parent | aac453a5bf4730405cdeac4b42bffbcd24d73947 (diff) | |
| download | pardes-4faf94b72b60ecb0656e7e90ca693b63b1fde71c.tar.gz pardes-4faf94b72b60ecb0656e7e90ca693b63b1fde71c.zip | |
integration (a base for the next rounds, not yet the gathered line): a join's dump with its digest on the one decision: pardes-m62-base (`lkzwnmls`: pardes-merge60 + pardes-one-decision) and pardes-dump-digest (`rwmqumpw` on `oyournly` on `ollusskr` on `xsutplvu`, on pardes-m60-base: a join's digest is taken with its dump (`dumpJoin`), which makes no host call: a 9P request served in a dump's gap no longer leaves a client refused its own load; the hand-walked types listed with the tests that join over each; a refused load names its field); no conflict; core-test 924/1088 (164 skipped), shell-test 1130/1133 (2026-11-23)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/walk.zig')
| -rw-r--r-- | core/walk.zig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/walk.zig b/core/walk.zig index 9b760144..d870052d 100644 --- a/core/walk.zig +++ b/core/walk.zig @@ -711,6 +711,22 @@ fn graph(comptime roots: []const type) []const type { } } +/// The types the walk of `roots` reaches that walk themselves by hand (a +/// `digest` or a `dumpWrite` of their own): the ones whose digest can take +/// what their dump does not carry, which the one walk holds for the rest. +pub fn handWalked(comptime roots: []const type) []const type { + comptime { + var out: []const type = &.{}; + for (graph(roots)) |T| switch (@typeInfo(T)) { + .@"struct", .@"union" => if (@hasDecl(T, "dumpWrite") or (@hasDecl(T, "digest") and @TypeOf(T.digest) == fn (*const T, *Hasher) void)) { + out = out ++ .{T}; + }, + else => {}, + }; + return out; + } +} + fn indexIn(comptime types: []const type, comptime T: type) u32 { comptime { @setEvalBranchQuota(100_000_000); |
