Posts

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.

Nothing read yet. A post gets its tick when you reach the end.
New here? Five posts from transistor to this website
  1. 1How a Computer Works: From Sand to SoftwareL1 · 6 min
  2. 2How a CPU Actually Runs Your CodeL1 · 5 min
  3. 3How Linux Boots: From Power Button to LoginL2 · 6 min
  4. 4How the Internet Delivers a PacketL3 · 6 min
  5. 5Five Ways to Deploy the Same AppL6 · 8 min
L1

Hardware

0/4 read

Transistors, the loop a CPU runs, memory, and the disks underneath.

L2

Operating systems

0/3 read

How Linux boots, how work gets scheduled, and a server made from an old laptop.

L3

Networks

0/7 read

From 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.

6 min

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.

6 min

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.

6 min

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.

new10 min

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.

9 min

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.

5 min

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.

6 min
L4

Security

0/2 read

The attacks you'll actually meet, and the smart devices that invite them.

L5

Languages

0/6 read

C++ 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.

11 min

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.

10 min

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++.

8 min

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.

8 min

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.

6 min

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.

6 min
L6

Engineering

0/5 read

Naming, architecture and deployment: building software with other people.

L7

Math, AI & vision

0/4 read

Linear algebra, neural networks and computer vision.