Blog
Posts, notes, and articles.

Designing A Continuous Integration Pipeline With Distributed Build Agents And Caching
2026-01-20A comprehensive technical exploration of designing a continuous integration pipeline with distributed build agents and caching, covering key concepts, practical implementations, and real-world applications.

P2P Networks: BitTorrent's Incentives, IPFS's Merkle DAGs, and the Decentralized Web Vision
2026-01-18From tit-for-tat choking algorithms to content-addressed Merkle DAGs — how BitTorrent and IPFS engineered the two most successful decentralized protocols in internet history.

The Practical Guide To Implementing A Consensus Algorithm For Byzantine Faults: Pbft
2026-01-15A comprehensive technical exploration of the practical guide to implementing a consensus algorithm for byzantine faults: pbft, covering key concepts, practical implementations, and real-world applications.

Implementing A Simple Neural Network Accelerator In Fpga: Matrix Multiply Unit And Activation
2026-01-09A comprehensive technical exploration of implementing a simple neural network accelerator in fpga: matrix multiply unit and activation, covering key concepts, practical implementations, and real-world applications.

Building A Custom Profiling Tool With Linux Perf Events And Ebpf
2026-01-05A comprehensive technical exploration of building a custom profiling tool with linux perf events and ebpf, covering key concepts, practical implementations, and real-world applications.

The Mathematics Of The Fast Fourier Transform: Cooley–tukey Implementation With Twiddle Factors
2025-12-29A comprehensive technical exploration of the mathematics of the fast fourier transform: cooley–tukey implementation with twiddle factors, covering key concepts, practical implementations, and real-world applications.

Designing A Probabilistic Data Structure For Cardinality Estimation: Hyperloglog With Bias Correction
2025-12-26A comprehensive technical exploration of designing a probabilistic data structure for cardinality estimation: hyperloglog with bias correction, covering key concepts, practical implementations, and real-world applications.

Database Internals: Storage Engines, Transactions, and Recovery
2025-12-21A deep technical walkthrough of how databases store data, ensure correctness, and recover from crashes — covering B-trees, LSM-trees, write-ahead logging, MVCC, isolation levels, and replication.

Implementing The A* Pathfinding Algorithm With Heuristics: Octile Distance And Hierarchical Annotated Maps
2025-12-14A comprehensive technical exploration of implementing the a* pathfinding algorithm with heuristics: octile distance and hierarchical annotated maps, covering key concepts, practical implementations, and real-world applications.

Building A Distributed Transaction Log With Multi Version Concurrency Control (mvcc)
2025-12-13A comprehensive technical exploration of building a distributed transaction log with multi version concurrency control (mvcc), covering key concepts, practical implementations, and real-world applications.

A Deep Dive Into The Burrows Wheeler Transform: Compression, Indexing, And Fm Index
2025-12-12A comprehensive technical exploration of a deep dive into the burrows wheeler transform: compression, indexing, and fm index, covering key concepts, practical implementations, and real-world applications.

Designing A Protocol For Reliable Multicast: Scalable Reliable Multicast (srm) Implementation
2025-12-09A comprehensive technical exploration of designing a protocol for reliable multicast: scalable reliable multicast (srm) implementation, covering key concepts, practical implementations, and real-world applications.

Implementing A Custom Unikernel: Boot, Network Driver, And A Minimal Http Server
2025-12-09A comprehensive technical exploration of implementing a custom unikernel: boot, network driver, and a minimal http server, covering key concepts, practical implementations, and real-world applications.

Distributed Hash Tables: Chord, Pastry, Kademlia, and the Structured Overlay Revolution
2025-12-08How consistent hashing, finger tables, prefix-based routing, and the XOR metric turned P2P networks from unscalable floods into efficient, provably correct structured overlays.

Epidemic Protocols: Gossip, HyParView, Plumtree, and the Mathematics of Infection-Style Dissemination
2025-12-08How push, push-pull, and pull gossip propagate information with tunable reliability guarantees — plus HyParView for membership and Plumtree for efficient broadcast in large-scale dynamic networks.

Writing A Simple Multiprocessor Scheduler: Lottery Scheduling And Stride Scheduling
2025-12-07A comprehensive technical exploration of writing a simple multiprocessor scheduler: lottery scheduling and stride scheduling, covering key concepts, practical implementations, and real-world applications.

CPU Microarchitecture: Pipelines, Out-of-Order Execution, and Modern Performance
2025-12-04An in-depth exploration of CPU microarchitecture: instruction pipelines, hazards, branch prediction, out-of-order execution, register renaming, superscalar and SIMD units, and how software maps to hardware for performance.

The Internals Of A High Frequency Trading System: Order Book With Fast Matching Engine
2025-12-01A comprehensive technical exploration of the internals of a high frequency trading system: order book with fast matching engine, covering key concepts, practical implementations, and real-world applications.

Implementing The Rsa Cryptosystem: Key Generation, Encryption, And Signature With Chinese Remainder Theorem
2025-11-30A comprehensive technical exploration of implementing the rsa cryptosystem: key generation, encryption, and signature with chinese remainder theorem, covering key concepts, practical implementations, and real-world applications.

Building A Simple Virtual Machine: Bytecode Compilation And Execution (like A Minimal Jvm)
2025-11-22A comprehensive technical exploration of building a simple virtual machine: bytecode compilation and execution (like a minimal jvm), covering key concepts, practical implementations, and real-world applications.

Designing A Distributed Counter With Strong Consistency Using Paxos (single Slot)
2025-11-18A comprehensive technical exploration of designing a distributed counter with strong consistency using paxos (single slot), covering key concepts, practical implementations, and real-world applications.

TLS, PKI, and Secure Protocols: How Encrypted Web Traffic Works
2025-11-18A deep technical guide to TLS, certificate validation, key exchange, record protection, modern cipher suites, TLS 1.3, QUIC, and practical deployment best practices for secure networked applications.

The Theory And Implementation Of An X.509 Certificate Authority: Asn.1, Signatures, And Ocsp
2025-11-17A comprehensive technical exploration of the theory and implementation of an x.509 certificate authority: asn.1, signatures, and ocsp, covering key concepts, practical implementations, and real-world applications.

Implementing A Parallel Sort: Bitonic Sort On Gpu With Cuda
2025-11-14A comprehensive technical exploration of implementing a parallel sort: bitonic sort on gpu with cuda, covering key concepts, practical implementations, and real-world applications.