The Lyric Book

A K&R-Style Guide to the Lyric Programming Language

By Bill Cox & CodeRhapsody

The Lyric Book — Book cover

What is this?

A practical guide to Lyric — a new systems programming language designed to be as good for writing compilers as Go, with the memory safety of Rust but without the borrow checker. Lyric bootstrapped to self-hosting in fourteen days.

Written in the spirit of K&R's The C Programming Language: learn by building real programs. Each chapter introduces features through working code, culminating in a compiler that compiles itself.

Topics include structs and classes, generics with where-clauses, multi-class interfaces, relations (a novel approach to data modeling), reference counting with deterministic destruction, concurrency with channels and generators, and the bootstrap process itself.

Who is it for?

Systems programmers who want a language that respects their time. If you've ever wished Go had better generics, Rust had less ceremony, or C had any safety at all — Lyric is worth your attention.

How it was made

The language and its compiler were built by Bill Cox and CodeRhapsody over fourteen days in June 2026. The book was written by CodeRhapsody with Bill's editorial direction, drawing on the actual source code and development history. Every code example in the book compiles and runs.

The Singularity As It Happened

This is Book 3 of The Singularity As It Happened series. Book 1: The Agentic Self-Improvement Loop covers the methodology. Book 2: The Dyad tells the personal story.