Why Database Indexes Are Fast Until They Aren'tMay 25, 2026You add an index and the query becomes instant. A week later, writes are slower, disk usage is up, and the planner ignores it anyway.Deep dive
How Does WhatsApp Encryption Work?Apr 19, 2026Paint mixing, rotating keys, prekeys, and the places encryption stops protecting you.Deep dive
GPU Encoding Is Not What You Think It IsApr 8, 2026NVENC, x264, H.265, and why your GPU has a secret chip that encodes video without touching a single CUDA core.Deep dive
How HLS Video Streaming WorksApr 8, 2026Segments, playlists, and adaptive bitrate. How one video becomes hundreds of files before you press play.Deep dive
How to Store Big Files in the BrowserApr 7, 2026Learn how the Origin Private File System stores large browser files, supports random access, and enables SQLite and worker-based storage.Deep dive
How UPI Actually Moves Your MoneyApr 6, 2026You tap a button and money teleports. Here's what actually happens in those 3 seconds.Deep dive
Minimal DockerApr 6, 2026A tiny container runtime built in Go to understand namespaces, chroot, proc mounts, and basic cgroup v2 limits.Build noteGoLinux
Autocomplete Is Just a Tree (Until It Isn't)Apr 5, 2026You type a few letters, suggestions appear. Behind that is a trie, then ranking, then a mess of heuristics.Deep dive
Why 'Undo' Is One of the Hardest Features in SoftwareApr 4, 2026Why reliable undo and redo require command inversion, grouping, state dependencies, branching history, and special handling for collaboration.Deep dive
Myers Gives You a Shortest Path, Not the Best OneApr 3, 2026There are many valid diffs for the same change. Myers just picks the first one it finds.Deep dive
How Google Docs Syncs Multiple People Editing The Same Document?Apr 2, 2026Real-time collaborative editing looks impossible until you stop syncing state and start syncing intent.Deep dive
Building Diff Is Way Harder Than It LooksMar 31, 2026I thought diff was a simple loop. It's actually a shortest-path problem.Deep dive
How Image Compression Actually WorksMar 30, 2026Learn how JPEG and PNG compression turn raw pixels into smaller files using transforms, prediction, LZ77, and Huffman coding.Deep dive
Hello WorldMar 29, 2026Why I built this personal software blog and what I plan to write about: engineering, products, experiments, tools, and practical lessons.Deep dive
Simple React QueryMay 1, 2025A minimal implementation of React Query from scratch. Caching, tag-based invalidation, and automatic revalidation in ~200 lines.Build noteTypeScriptReact
Minimal React RouterApr 1, 2025A zero-dependency client-side router built with React Context and the History API. ~100 lines of code.Build noteTypeScriptReact
A Minimal Implementation of Global Store in ReactMar 1, 2025A minimal global state management library inspired by Zustand, built to understand how state management works under the hood.Build noteTypeScriptReact
Minimal Virtual DOMFeb 1, 2025A ~100 line virtual DOM implementation. Virtual nodes, rendering, and diffing from scratch in plain JavaScript.Build noteJavaScript
LLM Token VisualizerJan 1, 2025An interactive tool for understanding how language models break text into tokens. Visualize tokenization, inspect token metadata, and learn why it matters.Build noteTypeScriptNext.jsReact