Meaning & use

quine

noun·Advancedcomputingtechnical

Last updated

UK/kwaɪn/
US/kwaɪn/

Meaning

  1. 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

pluralquines

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

quining noun
the act of writing quines, or of quoting a phrase inside itself
quine verb
jargon for producing such a self-printing program
Quine proper noun
the logician Willard Van Orman Quine, who inspired the name

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?

Make it your own

Write a sentence using “quine”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words