Quote:
|
Originally Posted by ikthius
ok,
I was shown this today and asked to try it out by a friend, so far what I can come up with might fail, I will get it eventually
but, I was going to see how many people would like to try it.
http://www.nyx.net/~gthompso/quine.htm
http://en.wikipedia.org/wiki/Quine
it can be done in most programming languages.
try to do it without cheating.
ik
p.s. I searched the forum for this, and it only came up with a quiz, so nothing else has been posted, i think
|
Great to see someone bring this up! (I hosted that quiz btw). They're mind boggling, those quines...
I use LISP on an almost daily basis, but I really cannot get myself to understand this (allegedly) classic quine:
((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))
I'm not sure it counts though, as (in CLISP) some quotes become 's as below
[11]> ((lambda (x)
(list x (list (quote quote) x)))
(quote
(lambda (x)
(list x (list (quote quote) x)))))
((LAMBDA (X) (LIST X (LIST 'QUOTE X))) '(LAMBDA (X) (LIST X (LIST 'QUOTE X))))
[12]>