An Escher-like maze of impossible staircases and arches, with birds, trees and small figures climbing through it

The prior post in this series was about components, coupling and code forensics. While I find most technical books to be informative, today’s post is about books that were entertaining and fun, too.

Book Author(s), year
Gödel, Escher, Bach Douglas Hofstadter, 1979
To Mock a Mockingbird Raymond Smullyan, 1985
The series Worth Reading: every post
Comments Discord

Gödel, Escher, Bach

The cover of Gödel, Escher, Bach: An Eternal Golden Braid by Douglas R. Hofstadter, cream title on navy over a lit cube whose shadows spell G, E and B

Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid (1979). Formal systems, recursion and self-reference, told through Gödel’s incompleteness theorem, Escher’s drawings and Bach’s canons, with dialogues between the chapters. Its “strange loops” are systems that refer to themselves, like a Forth that rebuilds itself. Recursion is one of its threads: Array Languages #1 writes one recursive function, factorial, six ways.

I grew up in a family that appreciated Bach and Escher (I had the Ascending and Descending poster in my dorm room). When I found this book, I started gaining an appreciation for Gödel. This book opened up possibilities and contributed to my ongoing curiosity about many subjects, including many areas of mathematics.

To Mock a Mockingbird

The cover of To Mock a Mockingbird and Other Logic Puzzles by Raymond Smullyan, a yellow bird among pine trees and speech bubbles of shapes and hearts, on graph paper

Raymond Smullyan (1985). Combinatory logic as puzzles about an enchanted forest of birds.

Mockingbird is a book I discovered in retirement. I’d been learning Haskell and Rust, and embracing functional programming. I was learning more about lambda calculus and trying to learn category theory. This introduction to combinators was very appealing, and it took me a while to see these concepts in action, in APL, Lisp and Forth. The book’s birds have flown through this blog: the Sage, the Phoenix, and the birds in APLSV.

I’ve since used combinator implementations to dogfood my programming languages. At least one combinator required me to add a language feature: the Sage bird requires X_eTaL to support lazy argument evaluation, so that recursion can end properly (see Array Languages #16, Laziness).

Closing

A painting of three teacups with faces playing chess on a tilted board, among melting pocket watches, floating keys and stars

I’d love to find more books like these. Future posts in this series will cover some other books that are also fun and entertaining.