summaryrefslogtreecommitdiff
path: root/anim/src/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-11 23:46:02 -0300
committerGabriel Schneider <[email protected]>2026-11-12 01:40:04 -0300
commit60e07feef401d9044db3a1c925cb9d1f6d20dac9 (patch)
tree98957ba8425193f686c8e8692cd10a10f27dbf4b /anim/src/root.zig
parent9c0696447dbc5cf37e56aee562c7ebba4f4d4e6b (diff)
downloadcomputeranim-60e07feef401d9044db3a1c925cb9d1f6d20dac9.tar.gz
computeranim-60e07feef401d9044db3a1c925cb9d1f6d20dac9.zip
canim: relations as one data-oriented subsystem; aim; the ASan pair; the introduction's chapters
From the user. Relations between panes are one subsystem: per-frame tables of places and values in struct-of-arrays, owned by the frame; the kinds one table of data; a resolver of pure passes (join, filter, priority, cut) unit-tested on hand-written tables. Ported kinds draw byte-identical frames; a synthetic map of 4000 places and 6000 values resolves in 0.56 ms against the old table's 5.7. aim, a word holding a code address tied to its row, is the first new kind, off unless a scene turns it on. The ASan pair: one overflow built plain and with ASan, recorded by instruction; the frame as bytes eight a row; the plain run goes on alone in the column, its return address aimed at main's row until the letters reach it; the fault at ret. The introduction's three chapters are built and tested, not yet exported. Annotations, rows and scrolls that changed in one frame now fade; captions stand twelve seconds at most. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
Diffstat (limited to 'anim/src/root.zig')
-rw-r--r--anim/src/root.zig24
1 files changed, 24 insertions, 0 deletions
diff --git a/anim/src/root.zig b/anim/src/root.zig
index fcdb572..596ac57 100644
--- a/anim/src/root.zig
+++ b/anim/src/root.zig
@@ -48,6 +48,8 @@ pub const CallTree = calls.Tree;
pub const Nodes = @import("nodes.zig").Nodes;
pub const hexdump = @import("hexdump.zig");
const tying = @import("ties.zig");
+/// The relations' tables and the resolver's pure passes (design/README.md, "4. Ties").
+pub const relations = @import("relations.zig");
pub const Ties = tying.Ties;
pub const Place = tying.Place;
pub const Array = @import("array.zig").Array;
@@ -71,6 +73,22 @@ pub const Column = columns.Column;
pub const column = columns.column;
/// A column pane's rows: what the column has left.
pub const column_rest = columns.rest;
+/// Two runs against each other (design/README.md, `pair`): each side's
+/// stage (`pair.split`), the frame as bytes (`pair.Frame`), a stopped
+/// run's output (`pair.Report`), the marks across the seam, the clock.
+pub const pair = @import("pair.zig");
+/// The introduction's blocks (design/motion.md, "A scene: the
+/// introduction"): the address space to scale (`segments`), the bytes at
+/// the stack's top made words (`regroup`), a text beside its part (`Aside`).
+pub const segments = @import("segments.zig");
+pub const Segments = segments.Segments;
+pub const regroup = @import("regroup.zig");
+pub const Words = regroup.Words;
+pub const Aside = @import("aside.zig").Aside;
+pub const Asides = @import("aside.zig").Asides;
+/// The source with its instructions, one panel, each line level with its code (`aligned`).
+pub const aligned = @import("aligned.zig");
+pub const Aligned = aligned.Aligned;
/// The page behind every scene: `pub const background = canim.background;`.
pub const background: u32 = theme.color.page;
@@ -406,6 +424,7 @@ test {
_ = @import("descent.zig");
_ = graph;
_ = tying;
+ _ = relations;
_ = @import("hexdump.zig");
_ = calls;
_ = @import("nodes.zig");
@@ -416,4 +435,9 @@ test {
_ = objects;
_ = words;
_ = columns;
+ _ = pair;
+ _ = segments;
+ _ = regroup;
+ _ = @import("aside.zig");
+ _ = aligned;
}