Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 884075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:41:53+00:00 2026-05-15T12:41:53+00:00

OK, for those who have never encountered the term, a quine is a self-replicating

  • 0

OK, for those who have never encountered the term, a quine is a “self-replicating” computer program. To be more specific, one which – upon execution – produces a copy of its own source code as its only output.

The quines can, of course, be developed in many programming languages (but not all); but some languages are obviously more suited to producing quines than others (to clearly understand the somewhat subjective-sounding “more suited”, look at a Haskell example vs. C example in the Wiki page – and I provide my more-objective definition below).

The question I have is, from programming language perspective, what language features (either theoretical design ones or syntax sugar) make the language more suitable/helpful for writing quines?

My definition of “more suitable” is “quines are easier to write” and “are shorter/more readable/less obfuscated”. But you’re welcome to add more criteria that are at least somewhat objective.

Please note that this question explicitly excludes degenerate cases, like a language which is designed to contain “print_a_quine” primitive.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:41:54+00:00Added an answer on May 15, 2026 at 12:41 pm

    I am not entirely sure, so correct me if anyone of you knows better.
    I agree with both other answers, going further by explaining, that a quine is this:

    Y g

    where Y is a Y fixed-point combinator (or any other fixed-point combinator), which means in lambda calculus:

    Y g = g(Y g)

    now, it is quite apparent, that we need the code to be data and g be a function which will print its arguments.

    So to summarize we need for constructing such a quines functions, printing function, fixed-point combinator and call-by-name evaluation strategy.

    The smallest language that satisfies this conditions is AFAIK Zot from the Iota and Jot family.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to have a navigation on which some links (those who are shorter
For those of you who have ever used Microsoft Excel in a manner that
I have those code snippet that checks the fans table and gets everyone who
I encountered an interesting thing today that I have never noticed before. It appears
For those who have seen my other questions: I am making progress but I
I have a question regarding C, would appreciate those who are willing to share
The title really says it all, a bit more info though for those who
For those who like a good WPF binding challenge: I have a nearly functional
Anyone who's tried to study mathematics using online resources will have come across these
Those who invented Android and Java didn't invented for themselves. Since I started developing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.