Keeping Time: Pacing Output and Following Clocks with a Phase-Locked Loop (PLL)
Which clock a program should keep time by, how to pace output on your own clock exactly, how to follow someone else's, and how to show that every implementation agrees.
Tag
Writing tagged “Series”.
Which clock a program should keep time by, how to pace output on your own clock exactly, how to follow someone else's, and how to show that every implementation agrees.
What fair means when several queues share one consumer, how to write that down precisely, and how to show that every implementation agrees.
A code review of dwrr, following its documented promises through test assertions to the state, arithmetic, and storage rules that make them hold.
How pll's Go pacer calculates exact schedules cheaply enough for applications sending at Gbps rates.
Why taking turns isn't enough to share a consumer fairly, how deficit round robin measures turns in work, and how a deliberately simple reference shows that an implementation follows the rules.
Why pll was built for an MPEG transport-stream demuxer and muxer, how its Pacer and Follower work, and where else they are useful.
From OpenBSD to agentic coding: eliminate what's not needed, trust less, and limit the blast radius.
How agentic coding adds a boundary between the engineer and the program, and why working code must be simplified, described, and constrained.
Human limits, OpenBSD audits, privilege separation, and the operating-system boundaries that contain unseen defects.
Writing less code can make that code more secure.
The negative space of security: unintended behavior, explicit permissions, and what testing can—and cannot—establish.