summaryrefslogtreecommitdiff
path: root/src/wire.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 18:31:03 -0300
committerGabriel Schneider <[email protected]>2026-11-06 20:00:43 -0300
commit3e1677f526baa02179c5646223f48b316e5152e0 (patch)
tree2ac232f703a0c2f17abc0f07db4161660c0c2544 /src/wire.zig
parent1b38ca0aa0bfae1177f80a6713ec6d787d2f77d4 (diff)
downloadpardes-3e1677f526baa02179c5646223f48b316e5152e0.tar.gz
pardes-3e1677f526baa02179c5646223f48b316e5152e0.zip
kinds #40, rasters as bounded messages on the wire (§17.3 C): a placement over PA_RASTER_MAX is dropped at paint and said once, a kind's frame names its placements by key and their pixels cross before it as `raster` strips of at most 4 MiB over the rows its `src` shows (only those the peer was not sent with the frame before), the peer assembles them by name in a 64 MiB cache let go by least recent use but for what a Shadow shows, a frame naming one it lacks draws its cells and asks once for its pane again, the sender checks every message against wire.max_payload (Debug's panic, release's drop and log) and a reader names an oversized one (said on the client as it joins again, logged at the session) instead of reading it as the link's end, so kinds #21's byte budget goes; wire 23; and pdf.c lays out for a view with pictures over a glyph view until an input chooses (one layout until 7c), so the 110-column window of the stall's repro shows its page
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/wire.zig')
-rw-r--r--src/wire.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wire.zig b/src/wire.zig
index 65b93bf1..3dd08b29 100644
--- a/src/wire.zig
+++ b/src/wire.zig
@@ -9,6 +9,10 @@ const builtin = @import("builtin");
const pardes = @import("pardes.zig");
const config = @import("pardes_config");
+/// 23: a pane of a kind's frame names its rasters by key, their pixels
+/// crossing before it as strips of 4 MiB at most over the rows it shows
+/// (screen kind 5), and a replica lacking one asks for its pane again
+/// (kind 4); a tick's prefix is on the tape, out of the frame;
/// 22: a PDF's pixel scroll (0x1a) is gone with the core's PDF, the pdf
/// addon's panes scrolled by the wheel as any kind's are;
/// 21: a session's views are `Pardes.views` in its dump and its digest
@@ -31,7 +35,7 @@ const config = @import("pardes_config");
/// part B); 14: the hello names a session and
/// carries the semantics hash, and a ping is answered (phase 5's
/// groundwork); 13: the frames went (phase 3).
-pub const version: u16 = 22;
+pub const version: u16 = 23;
/// The terminal's build and the window's step alike (`semantics`).
const family = switch (config.platform) {