Devesh Shetty
Occasional thoughts on building things.
Posts
RSS- Commerce Doesn't Have a Protocol (Yet): Inside UCP A first-principles look at the Universal Commerce Protocol, the attempt to give AI agents a standard way to buy things
- Building HNSW From First Principles I built a vector search index from scratch to understand why each piece exists, then tested when the hierarchy actually helps.
- Building a Database on S3 in 2026: Revisiting a 2008 Paper I rebuilt a 2008 S3 database paper with modern S3 primitives and about 1,800 lines of Go.
- Object Storage as a Queue: When the Wrong Tool Is Right How S3's consistency and conditional write primitives turn object storage into a surprisingly viable queue, and why companies like turbopuffer and WarpStream are betting on it
- Building a Storage Engine: WAL, LSM Trees, and SSTables from Scratch A hands-on guide to building a crash-safe key-value storage engine in Go, covering write-ahead logs, memtables, SSTables, bloom filters, and compaction
- JA4 in the Wild: Signal, Drift, and Evasion A defender- and privacy-focused guide to what JA4 is, how it is built, where it fails, and how to use it responsibly
- Designing Throttles: Rate Limiting in Practice A practical guide to designing throttles and rate limiters: goals, algorithms, architectures, and trade-offs
- From 15 Seconds to 3: A Deep Dive into TensorRT Inference Optimization How we achieved 5x speedup in AI image generation using TensorRT, with advanced LoRA refitting and dual-engine pipeline architecture
- Optimizing PyTorch Inference Without Sacrificing Determinism A practical guide to achieving 1.5-2x speedup on PyTorch pipelines while preserving run-to-run reproducibility