132
votes
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!
88
votes
82
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!
...
73
votes
66
votes
A "cheating" quine
Zsh, 4 bytes
<$0
The Z shell has feline functionalities built in. The fourth character is a linefeed.
Try it online!
The code does not depend in any way on ...
54
votes
Golf you a quine for great good!
Javascript ES6 - 21 bytes
$=_=>`$=${$};$()`;$()
I call this quine "The Bling Quine."
Sometimes, you gotta golf in style.
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 ...
51
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 ...
49
votes
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.
...
47
votes
Stack Exchange Vote Counter
jQuery + JavaScript, 85 bytes
$.get("//api.stackexchange.com/posts/82610?site=codegolf",d=>alert(d.items[0].score))
...
45
votes
Golf you a quine for great good!
Cubix, 20 bytes
3434Qu$v@!<"OOw\o;/"
Almost got the \o/...
Net:
...
43
votes
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 ...
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
...
38
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 ...
38
votes
A "cheating" quine
UNIX executable loader, 10 bytes
#!/bin/cat
If you don't care about spam on standard error, you can make it one byte shorter:
...
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)
...
37
votes
Radiation softened quine
Lenguage, 4.54×10761 bytes
It has this number of null characters:
...
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 ...
36
votes
32
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 ...
32
votes
Take a stand against long quine lines
Lenguage, line length 0, ≈ 1.01 × 10805 bytes
The source code consists of
...
31
votes
31
votes
Accepted
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,...
30
votes
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
quine × 266code-golf × 202
code-challenge × 42
source-layout × 27
code-generation × 23
restricted-source × 18
polyglot × 17
string × 14
popularity-contest × 13
permutations × 9
ascii-art × 7
radiation-hardening × 7
fibonacci × 5
internet × 5
sequence × 4
decision-problem × 4
cops-and-robbers × 4
palindrome × 4
hello-world × 4
answer-chaining × 4
code-bowling × 4
math × 3
random × 3
busy-beaver × 3
rosetta-stone × 3