From b54c6776953d3243ab5b8e676e747713827ab320 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 11 Nov 2026 17:42:07 -0300 Subject: canim: the disassembly under the source everywhere; rings From the user. In every split the disassembly stays under the source; registers a scene never changes fold three to a row, and the stack takes the room: nine to twenty slots where it had six. The graph's first form is rings: a loop a ring its blocks sit on, an inner loop a smaller ring touching its parent, a way out leaving along the tangent; layers stay for functions without loops. Its layout comes from the code alone and it shows nothing from after the moment: a block not reached yet is quiet and is reached, a fold of what is not reached yet opens when the run arrives. A pane unrolls from its strip into its whole column and rolls back. The sqlite scene's strips move before their panes. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa --- anim/src/cursor.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'anim/src/cursor.zig') diff --git a/anim/src/cursor.zig b/anim/src/cursor.zig index 9de02c1..16ccd77 100644 --- a/anim/src/cursor.zig +++ b/anim/src/cursor.zig @@ -142,6 +142,8 @@ pub const Cursor = struct { first: u64, last: u64, of: u32 = 0, + /// The stops the clock counts its way in (`journey`). + by: Recording.Stop = .moment, /// A cursor at rest at moment `start`. pub fn init(s: *anim.Frame, rec: *Recording, start: u64) Cursor { @@ -238,6 +240,7 @@ pub const Cursor = struct { /// what the head's progress line and step counter are measured against. pub fn journey(c: *Cursor, by: Recording.Stop, until: u64) void { c.last = until; + c.by = by; c.of = c.steps(by, c.first, until); } @@ -403,6 +406,8 @@ pub const Cursor = struct { // (the window gliding there, 24 f), then the pane fades through. const fit = c.levels.source_rows; const windows = [2]u32{ rec.shownFirst(fit, a), rec.shownFirst(fit, b) }; + // In the column the map has of the file: `unroll`, the window's travel, `roll` (96 f). + if (@import("source.zig").inColumn(rec, a.src, windows, fit)) return time.unroll.grow + time.unroll.travel + time.unroll.roll; if (@max(windows[0], windows[1]) - @min(windows[0], windows[1]) > fit) return 2 * time.move; if (windows[0] != windows[1]) return time.move; if (wave or jumps(rec, from, to)) return 2 * time.current_jump; -- cgit v1.3