Archives
All the articles I've archived.
Designing AI Agents That Survive Production
A detailed architecture guide for production AI agents with typed tools, bounded autonomy, state machines, approvals, security, observability, and evaluation.
How Databases Actually Store Data: Pages, Indexes, and WAL
A detailed systems-level tour of database pages, row layouts, B-trees, buffer pools, MVCC, write-ahead logging, recovery, and performance tradeoffs.
Gemini: How Google Built a Multimodal AI Model
How Gemini-style multimodal models are trained and served: text, image, audio, video, long context, tool use, MoE ideas, and how open models like Kimi are designed.
Vector Search and RAG from First Principles
A detailed guide to embeddings, vector indexes, chunking, hybrid retrieval, reranking, citations, evaluation, and secure production RAG systems.
AI Model on Every Digital Thing — How We Got Here
There's already an AI model in every digital thing. If you don't believe me, check Hugging Face. Here's how we got here and what it means.
Memory Management Deep Dive — Stack, Heap, Virtual Memory & Cache
Everything you need to know about how memory actually works — from stack vs heap to virtual memory, paging, cache hierarchy, and why understanding this makes you a better engineer.
Building an Ultra-Low Latency Order Book — Low-Level Design for High-Frequency Trading
A deep dive into building a realistic high-frequency trading system — from order book data structures to lock-free algorithms, kernel bypass networking, and a backtesting engine.
Building Reliable Real-Time Apps with WebRTC
A practical, production-focused guide to building WebRTC applications with signaling, ICE, media adaptation, data channels, recovery, security, and observability.
Web Dev Today Is Like LEGO — And AI Is Good at It
Modern web development is assembling pre-built blocks. AI is great at connecting them. Here's why that matters.
YouTube into Infinite Cloud Storage — Using C++ and Math
What if you could turn YouTube into unlimited cloud storage? I built a system that hides files inside video frames using C++ and clever math.
Network Engineering Deep Dive — From Cables to Cloud
A practical deep dive into how data actually travels across the internet — from physical cables to cloud infrastructure, routing, firewalls, and VPNs.
The Complete Guide to Networking & Communication Protocols
Everything you need to know about how devices actually talk to each other — from TCP handshakes to HTTP/3, WebSocket, DNS, and load balancers.
Ray Tracing — How I Built a Real-Time Raytracing Engine in C++
Building a real-time raytracing engine from scratch — reflections, shading, and light transport computed live on the GPU.