Meaning & use
quine
Last updated
Meaning
nouncountablecomputing
A program that, when run, prints out an exact copy of its own source code without reading any file.
Grammar: Counts like any noun: a quine, two quines.
Patterns
- write a quine
- a quine in Python
Writing a quine in Python is a favorite puzzle for beginners.
The professor challenged the class to build the shortest possible quine.
This quine prints itself in just a few lines.
Word forms
| plural | quines |
|---|
Common combinations
- write a quine
- I tried to write a quine during the weekend.
- a quine in C
- He posted a quine in C on the forum.
- the shortest quine
- They compared the shortest quine in each language.
- run a quine
- When you run a quine, it prints its own code.
Synonyms and how they differ
- self-replicating program
- A self-replicating program copies itself elsewhere, while a quine only outputs its own text.
- self-reproducing program
- Self-reproducing program is the older descriptive phrase for the same idea, without the nickname.
Word family
Commonly confused: quine or queen? quine or virus?
quine vs queen
Queen sounds nothing like quine in careful speech; the quine rhymes with fine.
quine vs virus
A virus spreads into other systems without permission, but a quine simply prints its own text.
Practice
What does a quine do when it is run?
Choose one answer.
A quine's defining trick is printing its own source code. Deleting, spreading and reading input are other behaviors entirely.
Make it your own
Write a sentence using “quine”, then check it and compare it with the examples above.