> open docs/design.pdf window 78x9 tag [1/16] petscii:on palette:commodore ascii:on docs/design.pdf |Pardes: A Text Environment |Architecture and implementation of the rewrite |Abstract. Pardes is a text environment in the acme tradition: columns of panes |body a live terminal, a file, an image or a PDF. It is one program with five t |SDL3 window, a browser tab driven by vanilla JavaScript, an AppKit application |— where the prototype had three parallel implementations of one editor. Two se |is a state machine over plain values: Event in, Surface and a queue of Effect |said in those types exists in pardes. Downward, host.VTable is twenty-one opti |one answered in-process, so the zero-method host is both the test harness and > graphics on tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | | | placement 794x1123 src 0,0 794x184 over 0,0 78x9 key 3017bc3ce49f9593 at 0,0 624x144 > size 60 20 window 58x7 tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key j tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,27 794x193 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key 3j tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,109 794x193 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key G tag [16/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 1182c0220e1b5a25 at 0,0 464x112 > key gg tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 5400263dddff499a at 0,0 464x112 > key 3gg tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 1da05d9257cc481d at 0,0 464x112 > PdfFit tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key acaee8c0ff4f63a6 at 192,0 79x112 > ctl =fit:height tint:filtered > PdfTint full tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 11acd08483d3011b at 192,0 79x112 > ctl =fit:height tint:full > PdfTint loud tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf |ent: PdfTint takes disabled, filtered or full, not "loud" | | | | | | placement 794x1123 src 0,0 794x1123 over 0,1 58x6 key a790cfe920570b8b at 198,0 67x96 > key tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf |ent: PdfTint takes disabled, filtered or full, not "loud" | Last | | | | | placement 794x1123 src 0,0 794x1123 over 0,2 58x5 key b7d9755f4d1c3b06 at 204,0 56x80 > dump dump 24 bytes tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | | | | | placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 4a2b3987bae4cbef at 192,0 79x112 > graphics off tag [3/16] petscii:on palette:commodore ascii:on docs/design.pdf |The watch path, in full, because it is the ask with the mo |machinery behind it. The tty and SDL hosts and the detache |daemon implement it in src/file_watch.zig, with Linux in­ |otify or a macOS kqueue behind one mark/reconcile transact |the native macOS host watches with debounced DispatchSourc |instead, then restats the exact path under a pane-generati |guard. All three macOS watchers mark the same two things f > key j tag [4/16] petscii:on palette:commodore ascii:on docs/design.pdf |/// How to route a method, read off its own name. A method |/// is a COMPILE ERROR rather than a silent push, because |/// forgotten pull is invisible in every unit test and obv |/// user: one Ctrl-V pasting twice. |fn isPull(comptime name: []const u8) bool { | if (std.mem.startsWith(u8, name, "pull_")) return true | if (std.mem.startsWith(u8, name, "push_")) { > key 2k tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |the core — src/pardes.zig |update(ev) — one dispatch, mutates |render(arena) → *Surface |emit(e) → fixed ring, limits.effect_cap |nextEffect() → perform(e) |single-threaded by construction |native input > key 3gj tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |emit(e) → fixed ring, limits.effect_cap |nextEffect() → perform(e) |single-threaded by construction |native input |termios+vaxis / SDL / DOM / |AppKit / a byte sink on a UART |Event > key gk tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |render(arena) → *Surface |emit(e) → fixed ring, limits.effect_cap |nextEffect() → perform(e) |single-threaded by construction |native input |termios+vaxis / SDL / DOM / |AppKit / a byte sink on a UART > key 999gj tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |detach is served only by a detached core’s host, and the n |is the point rather than an oversight — a local tty or SDL |has no session to leave, so perform reports that on the pa |message row instead of quietly quitting something (the .de |arm of Pardes.perform). |2 | > key gj tag [3/16] petscii:on palette:commodore ascii:on docs/design.pdf |The watch path, in full, because it is the ask with the mo |machinery behind it. The tty and SDL hosts and the detache |daemon implement it in src/file_watch.zig, with Linux in­ |otify or a macOS kqueue behind one mark/reconcile transact |the native macOS host watches with debounced DispatchSourc |instead, then restats the exact path under a pane-generati |guard. All three macOS watchers mark the same two things f