quineprogrammas
Quineprogrammas, or quines, are computer programs that print their own source code when executed, without reading external input. They demonstrate self-reference in a concrete, executable form and are studied in programming language theory and puzzle culture.
The term quine was popularized by Douglas Hofstadter in Gödel, Escher, Bach and named in honor of
Most direct quines exploit a two-part structure: a fragment that outputs a textual representation of another
Quines can be direct, requiring no input and printing exactly their source, or indirect, consisting of two
The construction of quines is related to Kleene’s recursion theorem, which guarantees the existence of fixed
A widespread use is educational or recreational: programmers study quines to learn about language features, parsing,