summaryrefslogtreecommitdiff
path: root/src/walk.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 18:18:44 -0300
committerGabriel Schneider <[email protected]>2026-10-29 21:13:33 -0300
commit84b673d6c01e647c2eaeb6464d1f0a0004b7bd20 (patch)
treefc2fd4ee5d2024d1159a4135d4e0b00fc2ee2030 /src/walk.zig
parent7ba57610929544bf3d1b3d0bf65dbb039d97942b (diff)
downloadpardes-84b673d6c01e647c2eaeb6464d1f0a0004b7bd20.tar.gz
pardes-84b673d6c01e647c2eaeb6464d1f0a0004b7bd20.zip
dump: a pane another build cannot give a terminal for is a terminal still; a session read by name is tested; nothing of a load goes to stderr
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/walk.zig')
-rw-r--r--src/walk.zig13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/walk.zig b/src/walk.zig
index ce097c0e..304fc5aa 100644
--- a/src/walk.zig
+++ b/src/walk.zig
@@ -1,7 +1,9 @@
//! The reflective walk over the core's state: one comptime `@typeInfo` walk
//! that hashes a session into a digest (the replay harness compares two),
-//! and that the complete dump and the rollback copy are to walk the same
-//! way (docs/next-daemon.md).
+//! encodes values for the tape, and dumps a session for another build to
+//! load by name (`Dump`, `Load`: Restore, -l, the store, a handover, and
+//! the join of phase 5). The rollback copy is to walk the same way
+//! (docs/next-daemon.md).
//!
//! Values, never addresses: a pointer is followed to what it points at, a
//! slice is its elements, an ArrayList its items, a hash map its entries in
@@ -19,10 +21,13 @@
//! .authority = .{ "host" },
//! // A field written only as far as another says: hashed that far.
//! .len = .{ .{ "jumps", "njumps" } },
+//! // What a field holds is made with another allocator on a load.
+//! .alloc = .{ .{ "image", "image" } },
//! };
//!
-//! None of the three kinds is in a digest. A type with a `pub fn
-//! digest(*const T, *Hasher) void` of its own hashes itself.
+//! None of the three kinds is in a digest or a dump. A type with a `pub fn
+//! digest(*const T, *Hasher) void` of its own hashes itself; one with
+//! `dumpWrite`, `dumpRead` (and `dumpFree`) dumps itself as bytes.
const std = @import("std");
pub const Hasher = std.hash.Wyhash;