Blog

Thoughts on software engineering, distributed systems, and artificial intelligence.

Latest · Distributed systems

I Couldn't Overwhelm My Chess Server. I Could Only Overwhelm My Load Tester.

A case study in taking a toy chess engine from a single in-memory process to a sharded, fault-tolerant, distributed system in Rust - and load-testing it until the only thing left standing was the load generator.

Performance

The log factor isn't free: a Dijkstra rabbit hole

I went in trying to shave the log n off Dijkstra. I came out with a priority queue that's asymptotically worse and runs more than twice as fast — and a much healthier respect for the gap between big-O and a cache line.

AI agents

The Mathematical Backbone of AI Agents: Finite Markov Decision Processes

The mathematics behind how AI agents decide and learn.

Aritro Roy and Kiran Ghumare