Bounded Concurrency in Go: Admission Control, Cancellation, and Shutdown
A small admission gate makes overload and shutdown explicit. Follow the lifecycle from acquiring a slot to proving that every worker has finished.
Engineering notes
Akiwayne / Engineering notes
Go · Python · LLMGo backends. Python engineering. The mechanics of model inference.
A personal notebook about how things work—and what happens when they don’t.

A small admission gate makes overload and shutdown explicit. Follow the lifecycle from acquiring a slot to proving that every worker has finished.
Bound the queue and the number of tasks, preserve result identity, and make failures cancel the work they own. A standard-library asyncio lab.
Implement causal attention on CPU, trace every tensor dimension, and test outputs and gradients against PyTorch before reasoning about performance.
Agent engineering
Exploring the internals of a terminal coding agent through a Go rewrite: tools, sessions, and explicit failure handling.
Executable explanations
Six small experiments connecting backend reliability, Python concurrency, and the mechanics of model inference.
A small admission gate makes overload and shutdown explicit. Follow the lifecycle from acquiring a slot to proving that every worker has finished.
An agent is a state machine around unreliable boundaries. Build a deterministic loop that makes tool identity, errors, cancellation, and termination inspectable.
Bound the queue and the number of tasks, preserve result identity, and make failures cancel the work they own. A standard-library asyncio lab.
Separate first-event latency, inter-event gaps, completion time, and failures. Build a small measurement tool whose arithmetic can be checked against known timelines.
Working on backend reliability or model-serving infrastructure?