From the metal up
31 notes on how computers actually work, arranged as a stack. Start at the bottom with the hardware, or jump to the layer you're curious about.
Hardware
0/4 readTransistors, the loop a CPU runs, memory, and the disks underneath.
How a Computer Works: From Sand to Software
Transistor, gate, adder, clock, memory, program: the six layers between electricity and the software you run.
How a CPU Actually Runs Your Code
Your C or Go program is just numbers in memory, and the CPU reads them one instruction at a time. Here's the loop that does it.
Memory: The Stack, the Heap, and Pointers
Where your variables actually live, why the heap costs more than the stack, and what a pointer really is.
USB Sticks, Disks, and the Mysterious 4GB Wall
Why a 64GB USB stick refuses a 5GB file, what a file system actually is, and how FAT32, exFAT and NTFS really differ inside.
Operating systems
0/3 readHow Linux boots, how work gets scheduled, and a server made from an old laptop.
How Linux Boots: From Power Button to Login
Firmware, bootloader, kernel, initramfs, PID 1: the chain of programs that runs between pressing the power button and seeing a login screen.
How an Operating System Schedules Work
You have more programs than CPU cores, yet everything seems to run at once. Here's how the scheduler does it.
Building a Home Server From an Old Laptop
Turning a spare laptop into a Debian home server: choosing the operating system, setting it up remotely without locking yourself out, publishing services through a Cloudflare Tunnel, and fixing an AdGuard Home container that ran but couldn't be reached.
Networks
0/7 readFrom your home router to TCP, TLS and VPNs: how a packet gets anywhere.
How Your Home Network Actually Works
DHCP, ARP, NAT, and the four devices inside your "router": the local half of networking, which happens before a packet ever reaches the internet.
How the Internet Delivers a Packet
You type a web address and a page appears. Here's the full chain of DNS, TCP, TLS and HTTP that makes it happen.
TCP vs UDP, and Why It Matters
One protocol makes sure every byte arrives, the other gets data there fast, and choosing between them affects everything from games to QUIC.
HTTP/2 and HTTP/3: Same Requests, Different Wire
A GET request still means the same thing. What changed twice is how it travels: HTTP/2 put every request on one TCP connection, and HTTP/3 moved everything onto QUIC to fix the one problem HTTP/2 couldn't.
The OSI Model: Seven Layers, and Why We Only Use Four
The OSI model is networking's best known diagram. Its protocols were never widely used, but its layer names are used everywhere. All seven layers, what actually runs at each one, and how to use them to find problems.
How a VPN Actually Works
A VPN puts each of your packets inside an encrypted envelope and gives it a new return address. Here's the tunnel, the encryption, and what a VPN does and doesn't protect.
Eduroam on Linux: Why One Wi-Fi Network Is So Hard to Join
Eduroam isn't a Wi-Fi password, it's a personal login that works across thousands of universities. Here's how it works, why Linux has trouble with it, and the settings that work.
Security
0/2 readThe attacks you'll actually meet, and the smart devices that invite them.
The Cyberattacks You'll Actually Meet in Your Lifetime
The attacks that will actually reach you aren't the ones in films. They are phishing, reused passwords, infostealers, phone scams and SIM swaps. Here's how each one works, how to spot it while it's happening, and the short list of habits that stops nearly all of them.
Smart Homes Are a Security Nightmare (If You're Not Careful)
Every smart bulb is a small computer on your network. Here's how these devices get taken over, and the checklist that keeps them contained.
Languages
0/6 readC++ and Go, and the pointers that trip people up in both.
C++ 101: The Language That Trusts You Completely
C++ gives you control over every byte of memory, and its modern features do most of the cleanup for you. Values, references, RAII, classes, templates and the standard library, with the reason behind each one.
Go 101: A Small Language for Big Systems
Go has very few features, and that's on purpose. Types, slices, interfaces, errors and goroutines: the core of the language in one post, with the reason behind each design choice.
The Two Jobs of the Asterisk: Pointers in Go and C++
Pointers are often confusing, and much of the reason is one detail: the asterisk means two different things depending on where it is. Here's how to read it, in Go and in C++.
List* l or List *l? The Oldest Style War in Programming
Three spellings that mean the same thing to the compiler. People have argued about where the asterisk goes since the 1970s, because the question is really about what a declaration is. Here's the whole debate, and how Go avoided it.
From C++ to Go: Demystifying Pointers, Slices, and Errors
Go code looks like C++, but the ideas behind it are different. Three things I had to learn again while building a todo app in Go: errors are values, a slice is a small header that points at the data, and the asterisk does two jobs.
Why Go Rewrites 0644 as 0o644 (and Why chmod Won't Take 'rwx')
I typed 0644, saved, and my editor changed it to 0o644. That lowercase o fixes a kind of bug that is fifty years old, and it also explains why file permissions are numbers and not letters.
Engineering
0/5 readNaming, architecture and deployment: building software with other people.
Software Jargon, Decoded: Every Term Developers Throw Around
Idempotent, race condition, tech debt, LGTM, yak shaving: the everyday words of software teams in one place, with what each one actually means and why it exists.
Delta, Foo, and i: The Tiny Names Hiding Inside Your Code
delta, epsilon, i and j, tmp, buf, ctx, foo and bar, nil, 0xDEADBEEF: the short words that appear in variable names rather than in meetings, and what each one actually stands for.
Project Zero: How Real Teams Start Codebases
What happens before the first line of code, after `mkdir` and `main.go`. How a team sets up, plans and tracks a new application.
Model-View-Update: The Loop That Makes Rust TUIs Sane
Every UI I wrote badly had the same problem: one part of the screen changing another part's data. MVU prevents that with one rule, and in Rust that rule is exactly what the borrow checker already asks for.
Five Ways to Deploy the Same App
Static host, PaaS, VPS, single binary, Kubernetes: the same React and Go app can be put online in five different ways. A tour of the options, using this website as the example.
Math, AI & vision
0/4 readLinear algebra, neural networks and computer vision.
Linear Algebra 101: Vectors, Matrices, and Why Programmers Should Care
A vector is an arrow, a matrix moves arrows, and multiplying matrices means moving arrows one step after another. This is the picture that textbooks often leave out.
AI 101: It's All Just Curve Fitting
Modern AI is one idea done at a huge scale: guess a function, measure how wrong it is, adjust it to be less wrong, and repeat. Neural networks, gradient descent, embeddings and transformers: the main ideas in one post.
OpenCV 101: Every Image Is a Grid of Numbers
A photo is a rectangle of numbers, and everything OpenCV does is arithmetic on that rectangle. Mat, BGR, convolution, thresholds, contours and perspective warps: the ideas that make the library's 2,500 functions easier to find your way around.
OpenCV 5: What Actually Changed Under the Hood
The first major version since 2018 is about foundations, not new features: a rebuilt engine that runs over 80% of ONNX instead of 22%, real n-dimensional arrays, fast code from four chip makers, and a list of removals long enough to break your build.