diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-16 23:24:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 57e254470e11ab40b6bae31b2cbf62aebca27ce4 (patch) | |
| tree | c1ab036650033c896069fa35a3d6279fe004fb32 /build.zig.zon | |
| parent | 8ce27cfdbab6d576db36403afbcef9659cb6dbdc (diff) | |
| download | sketchbook-57e254470e11ab40b6bae31b2cbf62aebca27ce4.tar.gz sketchbook-57e254470e11ab40b6bae31b2cbf62aebca27ce4.zip | |
Record every run's frames to a sessions database in xitdb
Live play was recorded only after someone typed record N, into 16 fixed
slots. Now every run is a session in one xitdb database per sketch, beside
its state file (<name>.xitdb): an append-only log of the frames live
update was fed, one commit a second of session time, and keyframes of the
State at start, every minute, on jumps, before and after reloads and at
exit. A kill -9 loses at most the uncommitted second (test-kill).
Whether a build records travels in the sketch: App.Options.record, null
meaning Debug, reaching the host as Info.record. Scripted runs from fresh
state record in memory, exports not at all. Each stretch of a session
keeps its build, layout and Info.source: the repository revision (one jj
or git call per build, build_info), zig version, backend and mode.
Sessions.zig takes plain data (bytes, events, strings, a path, an Io), so
a second host can drive it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig.zon')
| -rw-r--r-- | build.zig.zon | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build.zig.zon b/build.zig.zon index f48b70a..828a17e 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -11,6 +11,13 @@ .url = "git+https://codeberg.org/ziglang/translate-c?ref=zig-0.17.x#cfac21f3199b2b02ce3fd7db652aa456421fe4ab", .hash = "translate_c-2.0.2-Q_BUWvBNBwDnyehSiuAJmdFcMYHYGA-Jc3KiYdrV2Dqx", }, + // Sessions (src/host/Sessions.zig). Lazy: a `gpu-only` embedder + // builds no host and fetches none of it. + .xitdb = .{ + .url = "https://github.com/xit-vcs/xitdb/archive/6b93af1af3a260399fa0a0b1b268ded2cbf5eec5.tar.gz", + .hash = "xitdb-0.0.0-EEFkxhwmBwDz1N8H9oHhVhd1Al5YZp8iDhaMLm2_79pS", + .lazy = true, + }, }, .minimum_zig_version = "0.17.0", .paths = .{ "build.zig", "build.zig.zon", "src", "tools", "vendor", "web" }, |
