diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-21 23:58:17 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 23:58:22 -0300 |
| commit | 6cb805ff4989af6dfef7426a96b3abb4c22e3a0a (patch) | |
| tree | 03626c267644c9153ae72a8630927eb63790275c /core/Effect.zig | |
| parent | 544eee368537eea98e7552e730948c2c8fb380e9 (diff) | |
| download | pardes-6cb805ff4989af6dfef7426a96b3abb4c22e3a0a.tar.gz pardes-6cb805ff4989af6dfef7426a96b3abb4c22e3a0a.zip | |
replica: an addon's landing is on the tape, and a client on the session's machine runs a kind loaded by path from that path while its bytes are the session's (P51): `Addon load <path>` typed in a session with any client attached parted every client (core/Effect.zig ran `Addon.perform` inside the core's pump entry, where the nested `update(.addon)` is no recorded input (core/tape.zig `enterInput` records none on the core's side) and a replay skipped the perform: the session's core took the kind, no client's did); the perform is now a recorded value call of the core's (`p.tape.value(.landing, Addon.perform, ...)`, `Site.landing` at the end of the tape's sites: the tape's shape and so `wire.semantics` change, the wire's version does not), its event recorded inside it and applied by a replay, a speculation waiting for the session's (`authorityOnly`); and `Addon.plainOps`, after a client's own addons, reads the library at the kind's path (its own copy, head and init as a load's) and runs it when its BLAKE3 is the one the session lists, else lets it go and the pane shows the kind's line, which now says so (core/Kind.zig `draw`); nothing is fetched over the link and no bytes the session sent are run; test/panes.zig: a session's `Addon load` of the image addon at a temporary path lands on its in-process client with no divergence (it diverged before), the client's picture pane runs the kind's code from that path (it fails with the path load taken out), and a client joining after the file was written over (one byte more) shows its line; the corpus through a client window (PARDES_PAIR, terminals by bytes) now runs to its end, 77 frames, 68 byte-identical to tree3's (63 the veil, 64-65 the snake loaded and its first frame, 75-76 the 2x display), 66-74 the snake's own pictures four animation steps ahead (the session's clock, not a client's: the same in two runs); the own window through the same prefix 77/77
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Effect.zig')
| -rw-r--r-- | core/Effect.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Effect.zig b/core/Effect.zig index cabfe8ea..9fb4d9fa 100644 --- a/core/Effect.zig +++ b/core/Effect.zig @@ -251,9 +251,10 @@ fn performInner(p: *Pardes, e: Effect) void { .dump_themes => |d| _ = p.tape.host(p, .dump_themes, .{d.pane}), .detach => |d| p.tape.host(p, .detach, .{}) orelse p.reportError(d.pane, "detach", error.NotAttached), // dlopen is the same on every host, so none has a method of its - // own; a replica's core holds no library (what it brought comes in - // the event this taped). - .addon => |a| if (!p.tape.replaying()) @import("Addon.zig").perform(p, a.op, a.pane.index(), a.arg.slice()), + // own; a replica's core holds no library: what it brought is the + // event inside this call, recorded there and applied by a replay + // (its code a client's own, Addon.plainOps); a speculation waits. + .addon => |a| if (!p.tape.authorityOnly("an addon's load")) p.tape.value(.landing, @import("Addon.zig").perform, .{ p, a.op, a.pane.index(), a.arg.slice() }), .job => |j| p.tape.host(p, .job, .{ j.pane, j.serial, j.token }) orelse if (!p.tape.replaying()) host_io.KindJob.runHere(p, j.pane.index(), j.serial, j.token), // the loop's own condition; a host tears down after its own loop .quit => p.endSession(), |
