Challenge: Write a true quine

By a true quine I mean a real true quine. Maybe the wikipedia article of quine will help:

Quine (computing)

A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standa…


This content originally appeared on DEV Community and was authored by Siddharth

By a true quine I mean a real true quine. Maybe the wikipedia article of quine will help:

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 no evals or reading the source like this:

function quine() { console.log(quine.toString()+" quine();") } quine();

Can you do it?

If you need a hint

The wikipedia article contains a Java Quine


This content originally appeared on DEV Community and was authored by Siddharth


Print Share Comment Cite Upload Translate Updates
APA

Siddharth | Sciencx (2021-05-08T10:16:12+00:00) Challenge: Write a true quine. Retrieved from https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/

MLA
" » Challenge: Write a true quine." Siddharth | Sciencx - Saturday May 8, 2021, https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/
HARVARD
Siddharth | Sciencx Saturday May 8, 2021 » Challenge: Write a true quine., viewed ,<https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/>
VANCOUVER
Siddharth | Sciencx - » Challenge: Write a true quine. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/
CHICAGO
" » Challenge: Write a true quine." Siddharth | Sciencx - Accessed . https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/
IEEE
" » Challenge: Write a true quine." Siddharth | Sciencx [Online]. Available: https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/. [Accessed: ]
rf:citation
» Challenge: Write a true quine | Siddharth | Sciencx | https://www.scien.cx/2021/05/08/challenge-write-a-true-quine/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.