ls lib/

lib

Articles on how languages, libraries and systems work inside, each checked against the source at a stated version and kept up to date.

Posts are dated notes about something I found. These are references: each says which versions it was checked against, and gets updated when those change.

courses

PostgreSQL for the people who write the queries 4/34 lessons

PostgreSQL from the query side: SELECT and joins through window functions, JSONB, transactions, indexes, EXPLAIN, partitioning and row-level security. Small datasets, step-through figures and SQL you can edit and run in the page.

PostgreSQL internals, by building tinypg 4/30 lessons

How PostgreSQL 19.0 stores, logs, versions, indexes, plans and runs your data, read from its source, while a tiny Postgres in Python grows one piece per lesson.

Building a Python in C 4/33 lessons

We write minipy, an interpreter for a subset of Python, in C: from an empty file to a bytecode VM with reference counting and a cycle collector, each piece set beside the way CPython 3.15 does it.

Number theory for competitive programming 4/27 lessons

The number theory that LeetCode, HackerRank and Codeforces problems keep asking for: gcd, primes and sieves, modular arithmetic, counting mod p, and fast factoring, with proofs short enough to remember and tested Python you can paste.

topics

APL 2

BQN 2

C 2

C++ 2

Clojure 2

DuckDB 2

Elixir 1

Erlang and the BEAM 3

Go 2

Haskell 2

Java 2

JavaScript 2

K 2

OCaml 2

Prolog 2

Python 4

Ruby 2

Rust 2

SQL and SQLite 2

Swift 2

Uiua 2

Unix tools 2

Zig 2