Anonymous user
Talk:Quine: Difference between revisions
m
→origins of the word quine: changed wording.
(→REXX Quine: added some comments. -- ~~~~) |
m (→origins of the word quine: changed wording.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 65:
:This is the same problem as "if you allow programs which print their source, won't 10 LIST be a quine in classic BASIC?". Or, isn't 42 a Lisp quine? Typing 42 into the REPL produces 42! The answer is that a quine must not depend on some trivial self-evaluating properties built into an object, or built in self-reference which pulls out the source code. A quine must be some kind of '''computation''' which produces its own image. Self-evaluating objects do not compute anything: they appeal to the axiom of self-evaluation which is built into the language. Self-regurgitating programs likewise do not compute anything, they appeal to built-in access to the program source. (Many of the programs put up here so far fail these criteria.) [[Special:Contributions/24.85.131.247|24.85.131.247]] 05:59, 2 October 2011 (UTC)
:I just added an example for a compilable Haskell Quine. --[[User:Jgriebler|JMG]] ([[User talk:Jgriebler|talk]]) 22:14, 13 May 2015 (UTC)
== C quine ==
Line 126 ⟶ 128:
: I suspect that using <tt>sourceline()</tt> falls squarely into the category of "opening the source file of the program and similar mechanisms" which disqualifies it as a Quine. --[[User:Alansam|Alansam]] 06:05, 28 June 2012 (UTC)
:: I have a slightly different definition of squarely. The REXX program doesn't open the source file of the program. It doesn't read (or take) the source file through any other mechanism. Reading a copy of the file that is on (or in) a virtual device might be considered taking (reading?) a copy of the source. Putting a number of lines in a stack and then "reading" (or pulling) is "taking" some input could qualify as a method disallowed in the Wiki definition of a quine. I hesitate to call a stack (internal or external queue) a device,
== origins of the word ''quine'' ==
I first came across these thingys (quines) in 1967 or so ─── they weren't known as '''quines''' when I first encountered them, they were known simply as "reproduce (type/print) the (a) computer program language source to the console (terminal) or printer ─── or somesuch phraseology. I had never heard of a ''quine'' before I saw it mentioned here on Rosetta Code when this task was created. By the way, the word '''quine''' was introduced in 1979. Nor have I ever heard of another name for it: ''Computer Recreations: Self-Reproducing Automata'' (1972). Now that is a four-bit phrase. Other terms are ''self-replicating programs'', ''self-reproducing programs'', and ''self-copying programs''. I have added these terms and others to the '''quine''' Rosetta Code task so as to make this task easier to find in case one doesn't know of the '''quine''' word or what it means. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:27, 8 June 2020 (UTC)
|