Worth Reading #5: Logic and Self-Reference --- Hofstadter and Smullyan
509 words • 3 min read • Abstract

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
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
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
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.
Part 5 of the Worth Reading series. View all parts
Comments or questions? SW Lab Discord or YouTube @SoftwareWrighter.