This matches the learning process that I describe in rigged_regex. Step by
step, recording everything multiple times and in multiple ways, so that all the
learning that I care about is preserved. There's XCB in here, and some C++
(mostly around `unique_ptr`).