Hacker Tutorials

Hacker Tutorials

5 min read Original article ↗

Course catalog

Courses built from Hacker News posts.

Build a database, a compiler, a GPT and more, from scratch. Each course strings together the tutorials HN kept upvoting, in learning order, with every score and every criticism left in.

Start with Build a database

The courses

Suggested order. Each course is a path through sources, not a single post; the bars show how its HN score is distributed across the steps.

01coursestart here

Build a database

A durable key-value store you wrote, with a B+tree, crash recovery and transactions, a small SQL layer on top, and enough knowledge of PostgreSQL's internals to read its source.

22 sources·130 HN submissions·2010–2026

02course

Build an interpreter and a compiler

Two interpreters for one language (a tree-walker, then a bytecode VM with a garbage collector), a compiler that turns a real language into assembly you can run, and enough LLVM to know what you'd use in production.

28 sources·345 HN submissions·2007–2026

03course

Build a neural network, then a GPT

An autograd engine you wrote, a GPT you trained from scratch with a tokenizer you wrote, and a from-scratch inference loop for a modern open-weights architecture. Enough to read a model's source and know what every line does.

30 sources·290 HN submissions·2013–2026

04course

Build an operating system

A Unix shell you wrote; a small RISC-V operating system with processes, paging, user mode, system calls and a file system; an x86-64 kernel in Rust with interrupts, paging and a heap allocator; xv6 extended through MIT's nine labs; and Linux kernel modules you built and loaded, with enough Linux internals to read the kernel's source.

24 sources·397 HN submissions·2008–2026

05course

Build a network stack, then the protocols on top

An HTTP server on raw sockets, a DNS resolver that walks from the root servers, a userspace TCP/IP stack (Ethernet, ARP, IPv4, ICMP, TCP) that answers ping and carries TCP connections, a toy TLS 1.3 client that talks to a real server, and a BitTorrent client that downloads a real file from real peers.

23 sources·254 HN submissions·2008–2026

06course

Build your own developer tools

A terminal text editor in about 1,000 lines of C, with search and syntax highlighting; a Git in about 1,000 lines of Python that can init, add, commit, log, checkout and tag, compatible with real Git repositories; a Redis-like server in C with an event loop, hashtables, sorted sets and key expiry; a container runtime in C that isolates a process with namespaces, capabilities, seccomp and cgroups; and a Linux debugger in C++ with breakpoints, single-stepping, source lines and backtraces read from DWARF.

17 sources·125 HN submissions·2011–2026

07course

Build a renderer, then program the GPU

A ray tracer and a rasterizer written from first principles, with no graphics library; a path tracer with diffuse, metal and glass materials; a software renderer that loads a 3D model and draws it with a z-buffer, textures and shading the way OpenGL does; and your first OpenGL programs and fragment shaders running on the GPU; the standard real-time effects (deferred shading, bloom, SSAO, screen-space reflections) and a WebGPU renderer with compute shaders; and a physically based path tracer with microfacet materials, light sampling and a BVH.

16 sources·227 HN submissions·2011–2026

08course

Build a web browser, then a UI framework

A web browser in a couple of thousand lines of Python that downloads pages over HTTP, parses HTML and CSS, lays out and draws text, follows links, submits forms and runs JavaScript; and a React-like UI library with function components, a fiber-based reconciler and hooks, set against a reactive alternative built on JavaScript proxies; the same browser extended with compositing, a threaded rendering pipeline, GPU animation, accessibility, iframes and invalidation; and a web server and small framework in standard-library Python, with threads, middleware and routing.

13 sources·96 HN submissions·2011–2026

09course

Build cryptography, then break it

An authenticator-app code generator (HOTP and TOTP) that matches real sites; AES in C, with the key schedule and two modes of operation; textbook RSA and elliptic-curve key exchange and signatures you wrote and understand the weaknesses of; and working attacks from the Cryptopals challenges on real-world constructions, from repeating-key XOR to padding oracles; a real Bitcoin testnet transaction signed with your own SHA-256 and secp256k1 code; zero-knowledge circuits up to a group signature; ML-KEM-768 implemented from FIPS 203; and the hardest Cryptopals sets, on hash collisions, invalid-curve attacks and nonce reuse.

18 sources·161 HN submissions·2009–2026

10course

Build distributed systems, then prove them

Nodes you wrote that pass Jepsen's Maelstrom tests for broadcast, a grow-only counter, a Kafka-style replicated log and a transactional key-value store under injected network failures; a Raft implementation with leader election and log replication under a key-value store; a TLA+ specification that finds a design bug before any code does; a replicated log with on-disk segments and a high watermark; last-write-wins CRDTs behind a collaborative editor; and single-decree Paxos, implemented and model-checked.

21 sources·248 HN submissions·2013–2026

11course

Break software to understand it

The OverTheWire Bandit levels from a bare shell; a reading knowledge of x86-64 and ARM assembly good enough to reverse-engineer small binaries in a disassembler; stack overflows, format-string bugs and ROP chains you exploited yourself on 32- and 64-bit Linux, mitigations included; pwn.college's belts in program, system and software exploitation; the common web vulnerabilities found and exploited in PortSwigger's labs or a deliberately broken shop; and a fuzzer you built that finds crashes for you.

17 sources·163 HN submissions·2008–2026

Points are summed across every HN submission of the same source. Steps are ordered for learning, not by points. How we count.