3 ms·
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the c
by gitgud 8y ago
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".
So it's a self-replicating game of snake? Sounds very much like a worm virus. Very nice project though!
- muthdra 8y agoNot exactly. It prints exactly it's own source code as output but it doesn't run it again. You can run a quine output manually as it's by definition the same code that printed it but it lacks the ability to keep executing continuously like a worm virus would require. I guess you could make a worm virus that's also a quine but that would be a whole other problem.