<feed xmlns='http://www.w3.org/2005/Atom'>
<title>computeranim.git/src/trace/Ring.zig, branch main</title>
<subtitle>Tracing debugger and animations of running programs (ztrace, canim)</subtitle>
<id>https://git.0x4200.cafe/computeranim.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/computeranim.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/'/>
<updated>2026-11-10T16:03:12Z</updated>
<entry>
<title>ring: a stale head is not a full ring</title>
<updated>2026-11-10T16:03:12Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T16:00:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=950d4c0373d19d905eb89a521ff3d4c1e9910dea'/>
<id>urn:sha1:950d4c0373d19d905eb89a521ff3d4c1e9910dea</id>
<content type='text'>
emit compared a head loaded earlier with a tail read later: when other
producers reserved and the consumer consumed in between, the tail was
past it and the subtraction underflowed. A panic in safe builds (the
ring's own thread test aborted twice in 200 runs; a debug agent in a
threaded target would die the same way), a spurious wait otherwise.
Saturating: not full, and the exchange that follows fails and reloads.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>ring: a producer waiting for room is woken at half empty, not at every record</title>
<updated>2026-11-10T15:09:34Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T15:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=08d36ff6295a5f04e503ffe0aaa8a4e712af865f'/>
<id>urn:sha1:08d36ff6295a5f04e503ffe0aaa8a4e712af865f</id>
<content type='text'>
A full ring made consumer and producer trade a futex wake for every
record: 2.8 M events/s through ztrace run where the recorder alone does
12 M. One comparison in advance.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>ring: each side reads the other's counter only when its own view is used up</title>
<updated>2026-11-10T15:09:27Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T15:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=9342e5439f49ae6b5afda02e8c4f12b9691f6612'/>
<id>urn:sha1:9342e5439f49ae6b5afda02e8c4f12b9691f6612</id>
<content type='text'>
The consumer cached nothing and re-read head for every record, the
producers tail: the two cache lines bounced on each event. From the LLVM
runtime's profile: an event through the ring 65 ns to 29 ns.
</content>
</entry>
<entry>
<title>ring: a record larger than the ring is dropped and counted, not asserted on</title>
<updated>2026-11-10T14:21:44Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T14:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=233d9cf30b178501e3194297434791b6de35eff2'/>
<id>urn:sha1:233d9cf30b178501e3194297434791b6de35eff2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ztrace: the event, the ring, the recording, a ptrace loop</title>
<updated>2026-11-10T14:08:49Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T14:08:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=0b29354e1ddf6cf75ac4c426a00dd3435ace5069'/>
<id>urn:sha1:0b29354e1ddf6cf75ac4c426a00dd3435ace5069</id>
<content type='text'>
One 64-byte Event for every backend; a shared-memory ring from target to
tracer with stop/resume; a Recorder that folds events into xitdb moments
(registers, memory in 64-byte chunks with known-byte masks, strings) and a
Trace that reads any moment back; a minimal ptrace Process; ztrace record,
run and dump. Per-area build files so the areas grow apart.
</content>
</entry>
</feed>
