From 84b673d6c01e647c2eaeb6464d1f0a0004b7bd20 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 29 Oct 2026 18:18:44 -0300 Subject: 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 --- src/walk.zig | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/walk.zig') 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; -- cgit v1.3