engineering lobe
Software Engineering
17 posts
- 2026-12-03Branch prediction: how your CPU guesses the futureYour CPU starts running the code after an if before it knows which way the if goes. This post walks through how it guesses, and what a wrong guess costs. 6 min#deep-tech#hardware#cpu#performance
- 2026-12-02TLS 1.3: how two strangers agree on a secretYour browser and a server that have never met agree on a secret key in one round trip, over a network anyone can watch. This post walks through how TLS 1.3 does it. 6 min#deep-tech#security#tls#cryptography
- 2026-11-30LSM trees: write now, sort laterCassandra and RocksDB store their data in an LSM tree. This post walks through how one works, with a small tree you can write to and read from. 7 min#deep-tech#databases#storage
- 2026-11-29P vs NP: easy to check, hard to findRight now, a fleet of AI agents is trying to solve P vs NP in public. This post explains what they are chasing, and what happens if they catch it. 8 min#deep-tech#complexity#algorithms#llm
- 2026-11-29Raft: how five servers agree on one logRaft lets a cluster of servers act like one server that doesn't go down. This post walks through how it works, with a small cluster you can crash yourself. 7 min#deep-tech#distributed-systems#consensus
- 2026-11-28Workflows as plain Go functionsLong-running workflows with 20+ steps that fail in every possible way, and how I ended up writing them as plain Go functions that pause with a panic. 11 min#go#workflows#concurrency#distributed-systems
- 2026-11-28CUBIC vs BBR: how TCP decides how fast to sendNothing tells a TCP sender how fast the path is. CUBIC guesses from packet loss, BBR builds a model of the pipe. This post walks through both. 9 min#deep-tech#networking#tcp#linux
- 2026-11-27Futex: why your mutex rarely talks to the kernelA Linux mutex is usually one atomic instruction. The kernel only gets involved when a thread actually has to sleep, and futex is how. 5 min#deep-tech#linux#concurrency#os
- 2026-11-27MESI: how cores agree on a cache lineEvery core has its own cache, yet a write on one core shows up on all the others. MESI is the protocol that makes this work, one cache line at a time. 5 min#deep-tech#hardware#concurrency#performance
- 2025-08-03Immutable Data Structures: Theory to Real-World GainsExploring immutable data structures and how they solved a critical performance bottleneck in a high-throughput WebSocket system5 min#performance#rust
- 2024-08-07When sharing is badA small experiment on effects of cacheline false-sharing in multi-processor systems. 4 min#performance#go
- 2023-12-05Context Cancellation in GoThis article explores different cancellation patterns that can be achieved using contexts. 5 min#go#patterns#practices
- 2023-08-15DocuTalkTiny story about building & selling a chatbot, and what I learned.5 min#saas#llm
- 2022-11-19Scheduled Job QueueBuilding a reliable & efficient, scheduled job-queue with Redis. 7 min#distributed-systems#redis#scheduler#cron#jobqueue
- 2022-06-20Terraform BasicsSome notes on basics of terraform. 3 min#til#tool#terraform
- 2022-03-03Building a distributed cronI was constantly running into use-cases where things needed to be done as per a pre-defined schedule. This post summarises the problem and solution. 6 min#distributed-systems#scheduler#cron
- 2020-02-20Things About KafkaI work with Kafka a lot and this post is a summary of some interesting facts about it. 3 min#til#kafka