summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 17:44:54 -0300
committerGabriel Schneider <[email protected]>2026-11-18 17:44:54 -0300
commit41f665c986886790e474bef78928f4b0d3b05c21 (patch)
treefe14dc9afdbcc36e42fbdcb17e7257083dda9d98 /src/dump.zig
parente3e9a2d35ded6b668c2bb668845bb39d86e0412b (diff)
parentf3a38a45c00eb02f0aaaca7185e5601ab7224913 (diff)
downloadpardes-41f665c986886790e474bef78928f4b0d3b05c21.tar.gz
pardes-41f665c986886790e474bef78928f4b0d3b05c21.zip
integration: addons in a client part 4 (the scroll bench's clock, a view laid out as the active one, the Shadow path deleted, address P:H on a late joiner) with the client path's round 4 and Zig 0.17.1: no conflict; on Zig 0.17.1: replicas with five clients: diverged 0, unequal 0, deltas checked/wrong 1782/0, 1769/0, 1871/0, quiet checks 582/0, 773/0, 791/0; tui core-test 819/960 (141 skipped), shell-test 995/998, behaviour-test 274/274 and its replay 20 seeds with 0 failures, pane-test 183/184; gui frame corpus 77/77 Debug and ReleaseFast against mbase171, unit-test 1592/1596, the tui build has no SDL symbol; the perf window, each of its three runs now the gated tree's: corpus2x -0.096% (spread 0.19%), corpus-snake -0.164%: the +0.77% that held this merge was the gate measuring another workspace (the helper that ignored GATE_W)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 102b10d0..7f45ecc8 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -768,7 +768,8 @@ const SlotRecord = struct {
values: []const u8 = "",
live: bool = false,
/// What decides its next calls (Kind.step): a replica joining keeps
- /// them, its Shadow calling where the authority's kind does.
+ /// them, its pane of a kind with no code there calling where the
+ /// authority's kind does.
next_tick: u64 = 0,
views: [views.max]u64 = @splat(0),
focused: bool = false,
@@ -832,7 +833,8 @@ pub fn slotRecord(s: *Kind.Slot) !?[]u8 {
}
/// The pane back from its record, a placeholder holding it until its
-/// kind opens it (`revivePane`; a replica's core keeps it a Shadow).
+/// kind opens it (`revivePane`; a replica's core with no code for it keeps
+/// it so).
pub fn slotRead(out: *Kind.Slot, gpa: std.mem.Allocator, bytes: []const u8) !void {
var arena: std.heap.ArenaAllocator = .init(gpa);
defer arena.deinit();
@@ -880,9 +882,10 @@ pub fn reviveSlot(p: *Pardes, id: usize, s: *Kind.Slot) void {
} else {
s.version = p.kinds.kinds[k].version;
if (s.ops == null) {
- // A replica's Shadow is the authority's pane as it is: it ticks
- // when that one does, not because it was loaded (a kind opened
- // here ticks to lay itself out).
+ // A replica's pane of a kind with no code there is the
+ // authority's as it is: it ticks when that one does, not
+ // because it was loaded (a kind opened here ticks to lay
+ // itself out).
s.next_tick, s.views, s.focused = kept;
}
}