SWsatish wagholeinsatishwaghole.in·2d ago · 4 min readUnderstanding Virtual Functions in C++ One of the most powerful features of Object-Oriented Programming (OOP) in C++ is runtime polymorphism, and virtual functions are the key mechanism that enables it. In this article, we'll explore what 10
OGOnkesh Guptainonkeshgupta.hashnode.dev·3d ago · 8 min readDesign Patterns Simplified #3: Abstract Factory You're building the backend for a furniture store's website. Customers can order two things right now, a Chair and a Sofa. Both come in two styles: Modern and Victorian. You start simple. A ChairFacto00
HGHarrison Guoinharrisonsec.hashnode.dev·4d ago · 6 min readCache Miss, TLB Miss, False Sharing — Three Killers Your Profiler Won't Nametop says both threads are at 100% CPU. Your profiler says the hot function is a simple counter increment. Everything looks busy and nothing looks wrong — and the program is still half as fast as it sh00
AAArish Ahmadinblog.arishahmad.in·Sep 13 · 4 min readHead First Design Patterns: The Book That Makes Design Patterns Actually ClickIf you've ever opened a design patterns book expecting dry UML diagrams and monotone prose, Head First Design Patterns will catch you off guard in the best way. This is a book that treats "learning" a21I
ZNZenub Naqviinzenubnaqvi.hashnode.dev·Sep 13 · 7 min readThe Line of Code That Broke Java's Standard Library for Nine YearsHere's a question first: if I gave you a sorted list of 8 billion numbers—roughly the population of Earth—and asked you to find one specific number, how many comparisons would you need in the worst ca00
HGHarrison Guoinharrisonsec.hashnode.dev·Sep 12 · 9 min readStore→Load Reordering: x86 vs ARM64, and the Bug Intel Was HidingHere is a bug report that keeps recurring, in different words, every time a team moves to ARM: "the same code works on our Intel CI and on the developers' older MacBooks, but it corrupts data / deadlo00
OGOnkesh Guptainonkeshgupta.hashnode.dev·Sep 8 · 9 min readDesign Patterns Simplified #2: Factory MethodThe Problem You are building the payment flow for an app. First requirement: support Stripe. Simple. Somewhere in your checkout code, you write: StripeGateway* gateway = new StripeGateway(); gateway->00
AKAman Karkiinamankarki.hashnode.dev·Sep 5 · 5 min readTwo From-Scratch Systems, and the Day They TalkedI've spent the last stretch building two things, each one deliberately without leaning on someone else's runtime to do the actual work: Lattice — a vector database, HNSW index and all, built from the00
AKAman Karkiinamankarki.hashnode.dev·Sep 3 · 10 min readWhat I Learned Building a Storage Engine From Scratch (and What I'd Change)Lattice has been public for a couple of weeks now — a vector database written from scratch in C++, benchmarked against Qdrant and Chroma, with a local-first document assistant on top. Most of the atte00
AKAman Karkiinamankarki.hashnode.dev·Sep 3 · 6 min readINT8 Quantization the Second Time AroundI did per-row scalar quantization once already, on Lattice — my vector database — compressing stored vectors down to int8 so the index takes a quarter of the memory. This time it's the same technique,00