rescue##/ 1 1"[13,213].max_by{|s|s.size}#"##").gsub(/\d/){["=\47eval$q=%q(#$q)#\47##\47 ",:eval,:instance_,"||=9"][eval$&]} exit)#'##' instance_eval='eval$q=%q(puts %q(10210/#{1 1 if 1==21}}/.i rescue##/ 1 1"[13,213].max_by{|s|s.size}#"##").gsub(/\d/){["=\47eval$q=%q(#$q)#\47##\47 ",:eval,:instance_,"||=9"][eval$&]} exit)#'##' /#{eval eval if eval==instance_eval}}/.i rescue##/ eval eval"[eval||=9,instance_eval||=9].max_by{|s|s.size}#"##" See also Diagonal lemma Droste effect Fixed point combinator Self-modifying code Self-interpreter Self-replicating machine Self-replication Self-relocation TiddlyWiki Tupper's self-referential formula Programming languages Quine's paradox Polyglot (computing) Notes References Further reading Douglas Hofstadter: Gödel, Escher, Bach: An Eternal Golden Braid Ken Thompson: "Reflections on Trusting Trust" (Communications of the ACM, 27(8):761-3) External links TiddlyWiki, a quine manifested as a wiki The Quine Page (by Gary P. Thompson) A Brief Guide to Self-Referential Programs QuineProgram at the Portland Pattern Repository Wiki David Madore's Discussion of Quines Zip File Quine Zip Files All The Way Down An Introduction to Quines — in particular, quines using more than one language Quine Web Page: A standards-conforming HTML+JavaScript web page that shows its own source code HTML Quine: An HTML page that only uses HTML and CSS to show its own source code Quine Challenge for Tom's JavaScript Machine, with a series of interactive hints A Java Quine built straight from Kleene's fixed point theorem, composition and s-n-m A QR code quine Source code Articles with example C code Willard Van Orman Quine Test items in computer languages Computer programming folklore Self-replication