Harry R. Schwartz

Software engineer, nominal scientist, gentleman of the internet. Member, ←Hotline Webring→.

· 1B41 8F2C 23DE DD9C 807E A74F 841B 3DAE 25AE 721B


Published 21 Jul 2009. Tags: computer-science, language, math, old-dead-white-guys.

Named after the American philosopher and logician W.V.O. Quine, a quine is a program whose only output is its own code. Here’s a neat example in Lisp/Scheme, taken from the Wikipedia article:

((lambda (x) (list x (list 'quote x)))
'(lambda (x) (list x (list 'quote x))))