diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 10:46:54 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 12:41:12 -0300 |
| commit | c0b2e5d9194ce35b9fbb58d8d6e18de66cb209a8 (patch) | |
| tree | fa4656b6d5e4203b8c52516d6695b8c7677de41d /src/tape.zig | |
| parent | 60a891ce8127c87b55aed1ff71e435cb7fbd28fc (diff) | |
| download | pardes-c0b2e5d9194ce35b9fbb58d8d6e18de66cb209a8.tar.gz pardes-c0b2e5d9194ce35b9fbb58d8d6e18de66cb209a8.zip | |
store: Recent is a file of 200 lines under flock, written whole in place at the end of a step that changed it and read back under a session's own changes when another session wrote it since, and the panes a session closes are kept in its memory, the newest 64 within 64 MiB; the append-only CRC log with its resync and compaction, and the closed panes' self-describing dumps in it (only the session that closed one ever listed it), go; Options.store_path is recent_path ($XDG_STATE_HOME/pardes/recent), and the old store is read once while it is the newer of the two; tests: the store's four rewritten through the same windows (the 200 newest, a foreign file, a closed pane's way back from memory), the old store read once, 64 closed panes kept, recent.zig's merge; the process cases read Recent's file; docs/next-store.md is the decision
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/tape.zig')
| -rw-r--r-- | src/tape.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tape.zig b/src/tape.zig index ced8b9bf..0e8bbfe6 100644 --- a/src/tape.zig +++ b/src/tape.zig @@ -844,8 +844,8 @@ pub fn value(comptime s: Site, comptime f: anytype, args: anytype) @typeInfo(@Ty } /// A read of what the authority alone holds (`.authority` state a step -/// makes digested state from: the store's closed panes and Recent, which -/// every window of its user writes; the 9P server's readers and socket), +/// makes digested state from: the session's closed panes, and Recent, which +/// every session of its user writes; the 9P server's readers and socket), /// taped as `value` is; a speculation that reaches it waits for the /// authority's answer, as at a host call. A replica's own is never read. /// What it returns is the tape's arena's on a replay: `f` returns what |
