Quines

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))))

This entry was posted on Tuesday, July 21st, 2009 at 10:00 pm and is filed under computer science, language, math, old dead white guys. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply