Kartikay Dubey

I build systems and terminal tools, and write about making them fast.

Selected Systems

All projects
SystemStackDetailsLinks
sembed-engine 16.5× query speedupC++17A Vamana-style approximate-nearest-neighbor engine for dense vector embeddings. Flat layouts, SIMD-friendly distance loops, and cached scores cut w2v p50 query latency from 25.15 ms to 1.524 ms at 1.0 recall.
lazyspotify 450+ ★ · Brew / AURGoA terminal Spotify client backed by a patched librespot daemon. 450+ GitHub stars; packaged on Homebrew, the AUR, and Nixpkgs.
peacock 12× (651 l/s)GoA tail replacement that colorizes and filters JSON logs in the terminal. Profiled with pprof from 52 to 651 lines/sec on a 70×240 TTY.
SafeC LLVM compilerC++ / LLVMAn experimental safe dialect of C built on LLVM, adding compile-time and runtime null-dereference checks, a conservative garbage collector, and spatial and type safety.

Curated

TitleRead
Making a Log Viewer 12× Faster: A Go Optimization Guide A hands-on Go pprof tutorial: every command, every output, and every line of annotated source code from optimizing a real terminal log viewer.19 min
How I Made My Vector Search Engine 16× Faster Without Changing the Algorithm A performance story from sembed-engine: the search visited the same number of nodes and returned the same answers, but became much faster by changing what the CPU had to do for every distance calculation.11 min
The Shape of Duplicate Detection Duplicate detection looks like a solved problem: use a hash set. A benchmark suite of 4,050 measurements across finite batches and streaming workloads shows the fastest strategy can be 148× faster than a hash set, or 90,000× slower, depending on what you are deduplicating and what guarantees you need.16 min
DateTitleRead
DeepSeek 1017 Re-architected My App in 60 Hours I gave DeepSeek 1017 a real Electron app and 60 hours of active agent time. It produced 306 commits and months of estimated engineering work on a $10 subscription, and exposed four failure modes in how we supervise autonomous agents.6 min
Why You Should Never Use a set std::unordered_set looks like O(1), but in hot C++ loops the memory access pattern can dominate. Here is a duplicate-filtering benchmark with dense ids, sparse ids, Boost dynamic_bitset, sort+unique, and the case where unordered_set wins.5 min
What I Got Wrong Implementing Graph-Based Vector Search A dev log about implementing a Vamana-style ANN index from the DiskANN paper, why my first version was slower than brute force, and what it taught me about reading algorithms with implementation in mind.9 min
Optimizing My Hugo Blog: Journey to Zero JS I recently looked into my blog’s performance and was surprised to find my pages were downloading over 3.6 MB of JavaScript and render-blocking CSS on every load. Here is the step-by-step breakdown of how I reduced my payload and removed JavaScript.3 min
How a Minor Release Caused a 10× Throughput Drop in Kafka Diagnose a Kafka throughput drop after v3.9.0. Learn why min.insync.replicas slows consumers and how to fix performance safely.4 min
Vector Databases and Semantic Search Learn what vector databases are, how semantic search works, and why ANN, DiskANN, and Vamana matter for modern retrieval systems.6 min

Reading Paths

TopicPostsFocus
Vector Search & Semantic Retrieval4 postsA guided reading path through vector search and semantic retrieval: what vector databases are, how ANN search works, and how to build and optimize a Vamana index in C++.
Performance5 postsBenchmark-backed performance engineering across Go and C++: profiling with pprof, cache-friendly data layout, duplicate detection, Kafka throughput, and zero-JS web speed.