Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Quine (computing)
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Multiquines== David Madore, creator of [[Unlambda]], describes multiquines as follows:<ref>{{cite web |url = http://www.madore.org/~david/computers/quine.html |title = Quines (self-replicating programs) |author = David Madore }}</ref> <blockquote> "A multiquine is a set of r different programs (in r different languages β without this condition we could take them all equal to a single quine), each of which is able to print any of the r programs (including itself) according to the command line argument it is passed. (Cheating is not allowed: the command line arguments must not be too long β passing the full text of a program is considered cheating)." </blockquote> A multiquine consisting of 2 languages (or biquine) would be a program which: * When run, is a quine in language X. * When supplied with a user-defined command line argument, would print a second program in language Y. * Given the second program in language Y, when run normally, would also be a quine in language Y. * Given the second program in language Y, and supplied with a user-defined command line argument, would produce the original program in language X. A biquine could then be seen as a set of two programs, both of which are able to print either of the two, depending on the command line argument supplied. Theoretically, there is no limit on the number of languages in a multiquine. A 5-part multiquine (or pentaquine) has been produced with [[Python (programming language)|Python]], [[Perl]], [[C (programming language)|C]], [[NewLISP]], and [[F Sharp (programming language)|F#]]<ref>{{cite web |url = https://github.com/rvantonder/pentaquine |title = Pentaquine - 5 part multiquine |author = Rijnard van Tonder |website = [[GitHub]] |date = 14 January 2020 }}</ref> and there is also a 25-language multiquine.<ref>{{cite web |url = https://github.com/coolwanglu/quine-chameleon#variants |title = Quine Chameleon#Variants |author = Lu Wang |website = [[GitHub]] |date = 21 May 2021 }}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Quine (computing)
(section)
Add topic