Skip to main content
Share Your Experience: Take the 2024 Developer Survey
107 votes
Accepted

Program that creates larger versions of itself (quine-variant)

GS2 (8636bd8e), 0 bytes This prints a single newline, which prints two newlines, which prints three newlines, et cetera. Try it online!
Dennis's user avatar
  • 210k
92 votes

Golf you a quine for great good!

Hexagony, side length 11, 314 bytes ...
DELETE_ME's user avatar
  • 17.3k
84 votes

Golf you a quine for great good!

Brain-Flak, 9.8e580 1.3e562 9.3e516 12818 11024 4452 4332 4240 4200 4180 3852 3656 3616 3540 2485 + 3 = 2488 bytes Now fits in the observable universe! ...
Wheat Wizard's user avatar
  • 98.8k
73 votes

Make an error quine!

Windows .EXE, 248 bytes ...
MD XF's user avatar
  • 13.9k
54 votes

Write a program that sees the New Year in itself

awk, 4 bytes The structure of an awk program is pattern { action }. If pattern evaluates to true, { action } is performed. If { action } is omitted, the default is ...
James Brown's user avatar
52 votes

Golf you a quine for great good!

Vim, 11 bytes q"iq"qP<Esc>hqP iq"qP<Esc>: Manually insert a duplicate of the text that has to be outside the ...
udioica's user avatar
  • 2,701
48 votes

Golf you a quine for great good!

Hexagony, side length 15 14 13 12, 616 533 456 383 bytes After several days of careful golfing, rearranging loops and starting over, I've finally managed to get it down to a side 12 hexagon. ...
Jo King's user avatar
  • 47.2k
47 votes

Stack Exchange Vote Counter

jQuery + JavaScript, 85 bytes $.get("//api.stackexchange.com/posts/82610?site=codegolf",d=>alert(d.items[0].score)) ...
NoOneIsHere's user avatar
  • 2,201
46 votes

Golf you a quine for great good!

Cubix, 20 bytes 3434Qu$v@!<"OOw\o;/" Almost got the \o/... Net: ...
Luke's user avatar
  • 4,823
43 votes

Radiation Hardened Quine

Befunge-98, 884, n = 14, score ≈ 2.636 ...
Martin Ender's user avatar
43 votes

Fastest Mini-Flak Quine

Mini-Flak, 6851113 cycles The program (literally) I know most people aren't likely expecting a Mini-Flak quine to be using unprintable characters and even multi-byte characters (making the encoding ...
ais523 - high effort answers's user avatar
40 votes
Accepted

Mutually Exclusive Quines

><>, Score: 41+41 = 82 Edit: both contained a 3. Fixed 'd3*}>a!o-!<<8:5@lI55>@z:5ll55>>q:>|q::|, and ...
Jo King's user avatar
  • 47.2k
39 votes

Golf you a quine for great good!

Vim, 17, 14 keystrokes Someone randomly upvoted this, so I remembered that it exists. When I re-read it, I thought "Hey, I can do better than that!", so I golfed two bytes off. It's still ...
DJMcMayhem's user avatar
  • 59.2k
38 votes

2016 Time Capsule String: How Versatile Is Your Language?

Glypho, 74 + (74 - 36) = 112 1. Run (74 bytes) !!#%QTQT@=A@$!!$)()*!&))+...1449:@HILOQZ\\^`````````eefmpx|||{~~~~~~y~|~ ~ 2. IO (36 bytes) ...
Martin Ender's user avatar
37 votes

2 Cats in a Quine

V, 2 + 2 == 4 bytes 2i2i Try the quine! Try the cat! A is 2i B is also 2i How does it ...
DJMcMayhem's user avatar
  • 59.2k
36 votes

Cyclic Levenquine

Gol><>, 252 167 bytes ...
Jo King's user avatar
  • 47.2k
34 votes

Confound my attempts to solve the halting problem

brainfuck, 6013 4877 4376 bytes Edit: -1136 bytes. Switched to a better way of generating the data for the quine Edit2: -501 bytes. Revisited my self-interpreter and cut it down a couple of hundred ...
Jo King's user avatar
  • 47.2k
32 votes

Take a stand against long quine lines

Lenguage, line length 0, ≈ 1.01 × 10805 bytes The source code consists of ...
Dennis's user avatar
  • 210k
31 votes

Golf you a quine for great good!

Hexagony, 261 bytes, side length 10 ...
Jo King's user avatar
  • 47.2k
31 votes

Golf an Anagram Quine

Pyth, 2 bytes )( Outputs () Try it online! ...
Rod's user avatar
  • 18.4k
31 votes
Accepted

A quantum quine

Backhand, Score 0, 137 bytes ...
Jo King's user avatar
  • 47.2k
30 votes

Golf you a quine for great good!

C, 64 60 bytes main(s){printf(s="main(s){printf(s=%c%s%1$c,34,s);}",34,s);} This may segfault on 64-bit systems with some compilers, such as newest Clang,...
MD XF's user avatar
  • 13.9k
30 votes

Self-growing code codee codeee codeeee

JavaScript (ES6), 14 12 bytes -2 bytes thanks to @Shaggy f=_=>"f=_"+f Testing snippet ...
Endenite's user avatar
  • 4,061
29 votes

Golf you a quine for great good!

Lost, 120 116 98 96 76 70 66 bytes Edit: yay, under 100 Edit: Saved a bunch o' bytes by switching to all /s on the bottom line ...
Jo King's user avatar
  • 47.2k
29 votes

Take a stand against long quine lines

JavaScript, line length 1, 960 956 928 bytes ...
ETHproductions's user avatar
29 votes

Case invert your quine

><>, score 479 - 479 = 0 ...
SE - stop firing the good guys's user avatar
28 votes

Cheating Cyclic Quine

Bash + coreutils, 11 bytes tr xy yx<$0 This prints tr yx xy<$0 Try it online! In turn, that prints ...
Dennis's user avatar
  • 210k
28 votes

Inverse-quotes-quine

Python 2, 20 bytes print";print'print'" -7 bytes thanks to tsh Try it online! Old answer: Python 2, 27 bytes ...
negative seven's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible