From quines to "gaugines"
A “quine” is a deterministic program that prints itself. In this essay, I will show you a “gauguine”: a probabilistic program that infers itself. A gauguine is repeatedly asked to guess its own source code. Initially, its chances of guessing correctly are of course minuscule. But as the gauguine observes more and more of its own previous guesses, it detects patterns of behavior and gains information about its inner workings. This information allows it to bootstrap self-knowledge, and ultimately discover its own source code. We will discuss how—and why—we might write a gauguine, and what we stand to learn by constructing one.
- Chandra et al in "Gauguin, Descartes, Bayes: A Diurnal Golem’s Brain"
Contains a lovely quote I'd not read before from George Pugh:
If the human brain were so simple that we could understand it, then we would be so simple that we couldn’t
The racket source code for his (for surely Chandra is the author of this article?) "gaugine" is here in racket, only 122 lines
via bsky