# Golf you a quine for great good!

Using your language of choice, golf a quine.

A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output.

No cheating -- that means that you can't just read the source file and print it. Also, in many languages, an empty file is also a quine: that isn't considered a legit quine either.

No error quines -- there is already a separate challenge for error quines.

Points for:

• Smallest code (in bytes)
• Most obfuscated/obscure solution
• Using esoteric/obscure languages
• Successfully using languages that are difficult to golf in

The following Stack Snippet can be used to get a quick view of the current score in each language, and thus to know which languages have existing answers and what sort of target you have to beat:

var QUESTION_ID=69;
var OVERRIDE_USER=98;

getAnswers();var SCORE_REG=(function(){var headerTag=String.raw h\d
var score=String.raw \-?\d+\.?\d*
var normalText=String.raw [^\n<>]*
var strikethrough=String.raw <s>${normalText}</s>|<strike>${normalText}</strike>|<del>${normalText}</del> var noDigitText=String.raw [^\n\d<>]* var htmlTag=String.raw <[^\n<>]+> return new RegExp(String.raw <${headerTag}>+String.raw \s*([^\n,]*[^\s,]),.*?+String.raw (${score})+String.raw (?=+String.raw ${noDigitText}+String.raw (?:(?:${strikethrough}|${htmlTag})${noDigitText})*+String.raw </${headerTag}>+String.raw ))})();var OVERRIDE_REG=/^Override\s*header:\s*/i;function getAuthorName(a){return a.owner.display_name}
body='<h1>'+c.body.replace(OVERRIDE_REG,'')+'</h1>'});var match=body.match(SCORE_REG);if(match)
if(languages.hasOwnProperty(lang))
langs.push(languages[lang]);langs.sort(function(a,b){if(a.uniq>b.uniq)return 1;if(a.uniq<b.uniq)return-1;return 0});for(var i=0;i<langs.length;++i)
{var language=jQuery("#language-template").html();var lang=langs[i];language=language.replace("{{LANGUAGE}}",lang.lang).replace("{{NAME}}",lang.user).replace("{{SIZE}}",lang.size).replace("{{LINK}}",lang.link);language=jQuery(language);jQuery("#languages").append(language)}}
body{text-align:left!important}#answer-list{padding:10px;float:left}#language-list{padding:10px;float:left}table thead{font-weight:700}table td{padding:5px}
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn.sstatic.net/Sites/codegolf/primary.css?v=f52df912b654"> <div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td><a href="{{LINK}}">{{SIZE}}</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td><a href="{{LINK}}">{{SIZE}}</a></td></tr></tbody> </table> 

• Do you not mean, "Golf you a quine for greater good!"? – Mateen Ulhaq May 3 '11 at 2:49
• @muntoo it's a play on "Learn you a Haskell for Great Good". – Rafe Kettler May 3 '11 at 2:52

# Ruby, 26 bytes

eval s="$><<'eval s=';p s"  Try it online! $><<'...' is equivalent to print'...' (outputs the string without a newline).

• Welcome to the site! Nice first answer :) – DJMcMayhem Jun 12 '17 at 17:07

# Malbolge, 59851 Bytes, Non-competing.

I take no credit for this quine, all credit goes to this person

Newlines are significant, Compressed into a code snippet because otherwise this wouldn't fit.

var byteArray = pako.inflate(atob('H4sIAN89UFkCA5Rb+zty79P9/f4vSJRDKJFzFEJyCKXoQHKqRIoif/u7Zu7D3ru25/N9f3yuyzPXfc2eWbPWmun2Y3wrurmxvra6sBxZWgwvhILzc7OBmempSb9vYtw75hkd+e3/rPW6X5+d9ke9djG3/X1ao3/4JryF5mu+Xty++b4Q3a9Op31x/t5svtbrtf7Pt/wfE15v4QZ/VHv57vKfnLbm8CfO8J1274bDt95fRDPdwF8/Pz0+VO8TN7flXDGbuczn0tnMyvJ5+uz04Dh1lNw5iCX2dnfiE/z6pbX+N8J/frbbrdbb2yte8PIiniZ+HxC/+1vWj/loXb40X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E7520JBOeWHBQXllPECFJTTgTTreymn/G2hoJwySYSCcvosGrr3pZxOWZoloJxyeSgopyYaVFBOeWpCQTm1bpaCcsoLHQrKKTcHCsopHTagoJyyUwkF5ZSvDhSUU5/NElBO24bu3005pfoFCsppxc3qQznl5kBBOeXyUFBO2amEgnJKyCkUlFPDEysop/wPoaCc8t9BQTlNcCkFxxMKymkbmdqLVAkNDtByEQ3HEwrKaUamCjieUFBOQ6dGw/GEgnJq35qCcvp/PLECT7xPymkHnvj7KKf7xhPvRTnljQgF5fR/Ek/8dBT4L9wxn4vN6QAA'));
var byteString = "";
for (var i = 0; i < byteArray.length; i++) byteString += String.fromCharCode(byteArray[i]);
document.querySelector("code").textContent = decodeURIComponent(escape(byteString));
<script src="https://cdn.rawgit.com/nodeca/pako/master/dist/pako.min.js"></script>
<pre><code></code></pre>

• Please note that Community Wiki is not a rep waiver so there is no real need for you to have marked it as such. – MD XF Jun 14 '17 at 2:54
• Unless my clipboard is playing tricks on me, your snippet shows only 46485 characters. – Dennis Jun 25 '17 at 22:29
• @Dennis Snippet is compressed – ATaco Jun 25 '17 at 22:30
• Yes. I copied the output of the Stack Snippet. Copy-pasting from the original website works fine btw. – Dennis Jun 25 '17 at 22:32
• The problem is most likely because of whitespace and/or HTML escapes. .html won't work properly for a div. – Dennis Jun 25 '17 at 22:37

## Zsh, 17 bytes

sed p<<a
sed p<<a


# Klein, 11 + 6 = 17 bytes

Martin Ender has made another Quine here

+6 from the 000 topology and the -A flag, (also works in the 001 topology)

<3+@+3<"



Try it online!

# Explanation

Like described in my earlier not so Quine the " character cannot be made with a string literal so we need to make it by doing math on a similar character, in this case the unit separator character for reasons described later. The difference between this Quine and earlier attempts is that this we can get around the restriction of having to read the string forwards by making the string itself a palindrome. This way reading backwards is the same as reading it forwards.

So when the program starts it passes through a unit separator, then hits < which turns it around, it goes through the " and pushes the entire line. :3+ turns makes a " out of the final unit separator and @ terminates the program causing it to print.

# Octave, 28 bytes

Note: This doesn't work on TIO. I guess it's because TIO doesn't store the command history. It works on the desktop version. I tried it in Octave 4.2.1.

printf('%s',[history(1){:}])


So, what's going on here?

history is a function that can be used to read and manipulate the command history.

history(n) shows the n most recent commands you have typed, numbered:

>> x = 1 + 2;
>> y = x * 3;
>> history(3)
7 x = 1 + 2;
8 y = x * 3;
9 history(3)


As you can see, x = 1 + 2 was the seventh command that was typed after the history was cleared the last time. The command history(3) is included in this list.

Now, history(1) is not a quine, since it gives:

>> history(1)
10 history(1)


However, if you assign the output from history(1) to an output, you'll get:

>> x = history(1)
x =
{
[1,1] = x = history(1)
}


It's still not a quine, but it's something we can work with.

Unwrapping this, and we're a bit closer:

>> [history(1){:}]
ans = [history(1){:}]


Notice that the entire command, including brackets are outputted.

Finally, if we print this as a string, using printf, we get:

>> printf('%s',[history(1){:}])
printf('%s',[history(1){:}])


Note: disp([history(1){:}]) almost works, but it appends a trailing newline.

• Wouldn't disp([history(1){:}])\n work for 27 bytes? – caird coinheringaahing Aug 29 '17 at 14:47

# Awk, 64 bytes

BEGIN{c="BEGIN{c=%c%s%c;printf c,34,c,34}";printf c,34,c,34}


# ><>, 8 bytes

#o<}-1:"


Try It Online

Copied the trick of copying and decrementing the # to get " from the other ><> answer, but uses both sides of the # to avoid needing to reverse the stack.

Edit: A much cleaner solution of the same length:

'rd3*>o<


Try it online!

Everyone forgets that a ' acts exactly the same as a ", but has usable divisors. Another 8 byte solution, but considered cheaty by some, 'r00g>o<

• This is the same approach I used in the comments of the Original ><> answer: Funnily enough my comment and your post were 1 day off being exactly a year apart. – Teal pelican Jan 9 '18 at 16:11
• @Tealpelican. Wait, why didn’t we just use a single quote? – Jo King Jan 19 '18 at 4:40
• I always forget ><> can use ' or " but ' is so much more useful with having some usable divisors. – Teal pelican Jan 19 '18 at 9:39

# Operation Flashpoint scripting language,  22  15 bytes

q={"q={"+q+"}"}


Call with:

hint call q


Output:

Old version (22 bytes):

q={format["q={%1}",q]}


# DipDup, 6 bytes

[_:]_:


Try it online!

### Explanation

[_:]        push this list
_       duplicate
:      cons


# Reflections, 9228 bytes

As the program has 8620 lines, I won't put it here completely.

First line:

\


Then, for each character in the last part (below), there are n newlines for ASCII character n, followed by:

+
#


After it, the last part is (the # is actually already covered by the previous section):

#  /  \          /+\  /#_=0v\
>~ <       /(1:1)#@/       ~
\(0/      2)     \3)(2:2)(3^ 0#+#@
\:(24):(4#_#_#_  /
+               \*             (4\
\*(1(2                          +/


Test it!

Working on explanation.

I had to fix a bug in the interpreter for this one. Does that count as adding a feature just for a challenge?

• :| the URL encoding format is terrible – ASCII-only May 22 '18 at 0:57

# MATL, 12 bytes

'&DtU'
&DtU



(the code has a trailing newline).

Try it online!

### Explanation

'&DtU'    % Push this string
&D        % String representation (adds quote marks)
t         % Duplicate
U         % Evaluate (removes quote marks)
% Implicitly display each string followed by a newline

• I take it that it would not be shorter to do &D after t, avoiding U? – ETHproductions Oct 23 '16 at 2:56
• @ETHproductions Not sure if I understand your suggestion correctly. I think &D needs to be after t because the second part of the displayed output needs to be without quotes – Luis Mendo Oct 23 '16 at 3:00
• I mean that unevaling the string &D and then re-evaling U seems a little redundant. It's probably not shorter any other way, though, as you would likely need to use stack manipulation. – ETHproductions Oct 23 '16 at 3:03
• @ETHproductions Oh, now I see what you mean: this, right? (w is swap). As you say, it's not shorter unfortunately – Luis Mendo Oct 23 '16 at 3:08
• Yeah, that's what I meant, and that's what I figured – ETHproductions Oct 23 '16 at 3:09

# 2DFuck, 1352 1289 bytes

!xv>>>>x>x>>>>>>x>x>x>x>>x>x>x>>x>x>>x>x>x>x>x>>x>x>>x>x>>x>x>x>x>x>>x>x>x>x>x>>x>x>x>x>>x>x>>x>x>x>>x>x>>x>>>x>>>>>>x>>>>>x>>x>>>x>x>>x>>>x>>>>>>x>x>x>>>>>x>>>x>>>x>x>>x>x>x>x>x>>x>x>x>x>>>x>x>x>x>>x>x>x>x>x>x>>x>x>>>>>>>>>>x>x>>>>>x>>x>>>x>x>>x>>>x>>>>>>x>>>>>x>>x>>>x>x>>x>>>x>>>>>>x>x>x>>>>>x>>>x>>>x>x>x>>x>x>>x>x>>x>x>x>x>>x>x>>>x>x>>>>x>>x>>>x>>>>>>>>>>x>>>x>>>x>x>x>>x>x>>x>x>x>x>x>>x>x>>x>>>x>x>>>>x>>x>>>x>>>>>>>>>>x>>>x>>>>>>>>>>x>>>x>>>x>x>>x>x>>x>x>>x>x>x>x>>x>x>>x>x>>x>>>x>x>>>>x>>x>>>x>>>x>x>>x>x>>x>x>>x>x>x>>x>x>>x>x>x>>x>>>x>x>>>>>x>>>>x>x>>>>x>>x>>>x>>>>>>>>>>x>>>x>>>x>x>>x>x>x>x>>x>x>x>>x>x>>x>x>>>x>x>>>>x>>x>>>x>>>>>>>>>>x>>x>>>x>>>x>x>x>>x>x>x>x>x>x>>x>x>>>x>x>>>>x>>>x>>>>>>>>>>x>>x>>>x>>>x>x>x>>x>x>x>x>x>>x>x>x>>>x>x>>>>x>>>x>>>>>>>>>>x>>x>>>x>>>x>x>>x>x>>x>x>>x>x>x>x>x>>x>x>>>x>x>>>>x>>>x>>>>>>>>>>x>>>x>>>x>x>>x>x>x>x>x>>x>x>x>x>>>x>x>>>>x>>x>>>x>>>x>x>>x>x>x>x>>x>x>>x>x>x>>x>x>>>x>x>>>x>x>>>x>x>>>x>x>>>x>x>>>>>x>>>>x>x>>>>>>>>x>x>>>x>x>>>>>>>>>>x>x>>>>>x>>x>>>x>x>^x!..!.!....!.!.!....!....!...!.!..!.![<r!]![vr[!.!....!...]..!.....!.>^r!]![<r!]![vr[!..!.!.!...!.]r![>r[!..!.!....!.!]r![>r[>r[!.!.!.!...!.!.!]r![!.!.!.!..!.!..!]<]r![>r[!.!...!..!.!.]r![>r![!..!.....!.]r[>r![!..!....!..]r[>r![!.!.!.!....!.]r[>r[!.!....!...]r![!.!...!.!..!.]]]]]<]>]]>^r!]


Try it online!

Shaved off 63 bytes with Huffman coding! New explanation in progress.

# Noether, 30 bytes

"~a34BPaP34BPaP"~a34BPaP34BPaP


Try it online!

Basically, this works by pushing the string and storing it in the variable a, printing quotation marks (34B where B pushes the character with ASCII code 34) then printing a twice.

• @OMᗺ That's only the Python/tio.run interpreter (which has a few bugs) . On the JS interpreter, there is no newline. – Beta Decay Aug 11 '18 at 13:59
• Alright, that's the one on TIO so I tried with that sorry! Nvm, in that case. – ბიმო Aug 11 '18 at 14:01

# Runic Enchantments, 7 6 bytes

"'<~@>


Try it online!

Huh, a multiple pointer quine actually works pretty well.

## Explanation:

"'<~@>
<  >   Start pointers going left and right
"'<      Left pointer pushes " to their stack
@    And terminate the IP, printing the stack (")
>   Right pointer wraps around
"        Start string literal
'<~@>   Push as string
"        End string literal
'<~     Push the < character, but pop it
@    Terminate the IP, printing the stack ('<~@>)
End the program as there are no IPs left


Edit: I realised you can replicate this with only one pointer

'<~@|"


Try it online!

• Ha, didn't even see prior to posting this and you already beat me. Very clever use of the multiple IP feature. – Draco18s Oct 1 '18 at 18:22

# Symbolic Python, 30 bytes

_="_='_='+_+';__(_)'";__(_)



Try it online!

Yet another eval quine. The lack of being able to do %r in Symbolic Python is made up for Python 2's backticks, which are an alias for the repr function.

### Explanation:

_="                   ";       # Assign the string to the _ variable
__(_)  # Eval the string
_=                          # Assign to the _ variable
'_='                      # The initial _=
+_                  # The Python representation of the string
+';__(_)'         # And the final evaling part
# Implicitly output the contents of _


An alternative that doesn't use the rather long eval function comes to 31 bytes, but I actually like it more.

_=';_="_="+_+_';_="_="+_+_



Try it online!

# Julia 1.0, 32 bytes

".|>[show,print]".|>[show,print]


Try it online!

And here is a 35 byte quine that works in version 0.4 (And beats the previous answer):

x = "print(@show x)"
print(@show x)


Try it online!

• That, sir, is amazing! – primo Jan 6 at 15:52

# Gol><>, 87 6 bytes

"r2ssH


Hopefully this is not a previously used quine, I was messing around for another challenge having to do with quines, and I ended up creating this!

2nd program (the most recent), 7 bytes

":P}rH!


Courtesy of JoKing, who knocked an entire byte off the original!

1st program (the original), 8 bytes

":P&r&H!


I know this isn't the smallest, but it is my first quine in Gol><> (I did it entirely on my own!). Link to the interpreter in the title!

Try it online!

Code Breakdown

":P&r&H!


First, the " command collects all of the chars and rewraps around the program

Then the : command doubles the last symbol in the program, the !

Then this is incremented, and saved by the register

The stack is then reversed and the value is put back

Then the entire stack is outputted as characters and then the program halts

• you can use } to rotate the stack instead of &, Try it online! – Jo King Feb 5 at 23:41
• @JoKing wow, that cuts one byte off, thanks, is it okay if I put that as the answer (with credit to you of course) – KrystosTheOverlord Feb 5 at 23:53
• of course you can. PPCG is a lot about cooperative answers rather than competition and it's nice to help new users figure out shortcuts in their chosen language(s) – Jo King Feb 5 at 23:58
• @JoKing Thanks, credits are also to you! Are you a Gol><> coder, if you have any experience, do you have tips, I really like it! – KrystosTheOverlord Feb 6 at 0:16
• there's not really much Gol><> specific advice, but I would recommend getting familiar with its parent language, ><>, first. – Jo King Feb 6 at 4:36

# Attache, 695753 41 bytes

Printf[s:="Printf[s:=%s,Repr@s]",Repr@s]



Try it online! Surprised I didn't think of this sooner.

Print!Format[x:="Print!Format[x:=%s,Repr!x]",Repr!x]



In the end, the standard quine framework was most efficient :( . The 57-byter below is significantly more interesting.

Try it online!

BUT I found a cooler one, also for 53 bytes!

Print!Join[q:=["Print!Join[q:=", ",Repr!q]"],Repr!q]



Try it online!

## 57 bytes

Print!Format<~_,Repr!_~>["Print!Format<~_,Repr!_~>[%s]"]



This uses sneaky curried functions with blanks. When a function is called using f<~...~> syntax, it denotes a curried function. _1 represents the first curried argument, _2 the second, etc. _ is an alias for _1, so this saves us some bytes without duplicating our string.

Try it online!

## 69 bytes

Save["Save[%c%s%c]Print[Format[_,34,_,34]]"]Print[Format[_,34,_,34]]



Try it online! The trailing newline is significant.

## Explanation

Save updates the abstract variable _ with the string

"Save[%c%s%c]Print[Format[_,34,_,34]]"


Then, this string is formatted with the arguments _, 34, _, and 34. This prints the string, the character 34 (a quote), and then those two again, which is the program.

# Java (229 Characters)

class Main{public static void main(String[]args){char q='"';String s="class Main{public static void main(String[]args){char q='%c';String s=%c%s%c;System.out.print(s.format(s,q,q,s,q));}}";System.out.print(s.format(s,q,q,s,q));}}

• You can shorten it by naming your class a one character name (such as q for quine). Also, there is no need for main(String[]args), just do something like main(String[]a) (total savings: 6 chars) – Justin Dec 11 '13 at 23:51
• @Justin Technically, 12 bytes saving. – driima Nov 1 '16 at 8:59

s="\nmain=putStrLn$\"s=\"++show s++s" main=putStrLn$"s="++show s++s


## Bash, 67/51 chars

f ()
{
printf "%s\n${!1}$1" "$(local -f${!1})"
}
f FUNCNAME


And 51 chars:

trap -- 'printf "%s\n:" "$(trap -p DEBUG)"' DEBUG :  # Zozotez Lisp: 73 ((\ (x) (c x (c (c (" ") (c x))))) (" (\ (x) (c x (c (c (" ") (c x)))))))  This requires one of the REPLs. For one bootstrap expression quine I need it to print: 81 ((\ (x) (p (c x (c (c (" ") (c x)))))) (" (\ (x) (p (c x (c (c (" ") (c x))))))))  # Extended BrainFuck: 68 This uses mostly Brainfuck code except for the store string procedure. >~"~!<<.[<]>.>+.-<[.>]<[<]>>+.->[.>]"<<.[<]>.>+.-<[.>]<[<]>>+.->[.>]  A 94 byte version that uses more EBF features: {c|"{q$q.$p(-)}:q:p$q 34+$p|'{c|'&q&c&q|'}'(-)&c"}{q$q.$p(-)}:q:p$q 34+$p|'{c|'&q&c&q|'}'(-)&c  # Node.js REPL (22) console.log(RegExp.$1)

• ...this abuses the fact that (I guess) the Node REPL internally executes a regex on the received line? I want to upvote because of the cleverness, but on the other hand I don't want to since it relies on extracting its own source code as a string... – FireFly Aug 22 '14 at 15:38
• You need to specify the Node version this works in, because running in 7.5.0, this prints a single newline. – Patrick Roberts Jul 16 '17 at 5:21

MATLAB, 95 characters

There might be shorter ones, but I'm happy that it works at all.

function d=g();d='gvodujpo!e>h)*<e>(<e>\e)2;29*.2-e-e)29;foe*.2^<';d=[d(1:18)-1,d,d(18:end)-1];


Cleaner approach, exact same length:

function d=g();d='function d=g();d=[d(1:17),39,d,39,d(15:end)];';d=[d(1:17),39,d,39,d(15:end)];


# Python 2, 31 bytes

s="print's=%r;exec s'%s";exec s


It's 2 bytes longer than the shortest Python quine on this question, but it's much more useful, since you don't need to write everything twice.

For example, to print a program's own source code in sorted order, we can just do:

s="print''.join(sorted('s=%r;exec s'%s))";exec s


Another example by @feersum can be found here.

## Notes

The reason the quine works is because of %r's behaviour. With normal strings, %r puts single quotes around the string, e.g.

>>> print "%r"%"abc"
'abc'


But if you have a single quotes inside the string, it uses double quotes instead:

>>> print "%r"%"'abc'"
"'abc'"


This does, however, mean that the quine has a bit of a problem if you want to use both types of quotes in the string.

## Burlesque - 1 byte

Technically, this is a quine:

1


Technically, this is also a quine:

{1 2 3}


Pretty much any literal is a quine.

This is also a quine which doesn't use a simple literal:

,#Q2 SH ~- ",#Q" \/ .+ sh


The comma is not necessary if you launch burlesque in no-stdin mode.

# AppleScript, 2 Bytes

1



It's a little cheaty, but it is following the restrictions of a quine. If we don't count the trailing newline, then this solution becomes 1 byte - 1.

Whenever AppleScript has a final executed line of code, it prints the result of the last operation (whatever it is) to the command line.

text



Any class name has the same effect.

# SWI-Prolog, 22 bytes

a :-
listing(a).



A surprisingly short and elegant solution.

The 8 spaces and the new line (the space in the last line is just to display the empty line, there is actually no space) are both required in SWI-Prolog because that is the formatting that listing displays in the interpreter.

# DUP, 51 bytes

0"0.[34,0[$;$][,1+]#]$!%%!"0.[34,0[$;$][,1+]#]$!%%!


Try it here.

Well, DUP quines are possible, just really, really, long. I'll have to golf some more.

# Python 2 and 3 - 32 bytes

s='s=%r;print(s%%s)';print(s%s)