summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 11:52:57 -0300
committerGabriel Schneider <[email protected]>2026-11-18 12:16:41 -0300
commit69bf62d3e245934b922025c62d8703700521cac0 (patch)
tree24ed2d0950caa4723101c34afd98b70687d19d75 /src/dump.zig
parent0cc7413bbf1d546f29976b9639896a209e2e7f27 (diff)
downloadpardes-69bf62d3e245934b922025c62d8703700521cac0.tar.gz
pardes-69bf62d3e245934b922025c62d8703700521cac0.zip
kinds: the Shadow path deleted (the session painting a pane of a kind for each client and sending its frames, the rasters as strips, the client's picture cache): no kind in the tree reached it but a test's since the PDF and the picture run where they are shown (PA_PLAIN); a kind that is not plain shows a line in a client saying it runs in the session alone, its keys and mouse still the session's; Kind.zig 1,743 -> 1,367 lines (the Shadow section, Slot.shadow, draw's Shadow branch, the three Shadow tests), replica.zig 4,579 -> 4,477 (Screens.shadows and the kind_shadow/kind_raster/kind_want messages, PeerOf.shadow, Replica.blobs; Screens.flush keeps its view argument, unread now), the Counter kind's test rewritten for the line, draw.zig's pointer from the Shadow, dump.zig's comments; the manual (running.typ) and next-run.md say what a client shows; net -472 lines; tui core-test 817/956 (139 skipped; the three Shadow tests gone), shell-test 991/994, behaviour-test 274/274, --replay 20 seeds 0 failures, pane-test 181/182, replicas pass, addon-test 1/1, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), test/daemon.py, --games and --window-clients pass, --far timed out once at load 10-12 (the ssh client's first frame) and passed alone; gui unit-test 1586/1590 (its perf check's BaselineBuildMismatch, the base's), the frame corpus 77/77 against mbase2
Co-Authored-By: Claude Opus 5.5 <[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;
}
}