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!
55
votes
Rube Goldberg Hello World
Foo → gs2 → M → Jelly → Retina → Aeolbonn → Par → Actually → Sprects → sed → Universal Lambda → Lines → /// → m4: 19/13 ≈ 1.4615 points
"“GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
...
54
votes
Generate ;# code
;#+, 61 bytes
Outgolfed by Conor O'Brien
;;;;;;;(~;;;;;~-;-)~>:~;;;;(~;;;;;;~-;-)~>~-*((;~<#~):<#-:-*)
Try it online!
Note that the input has a ...
52
votes
Accepted
36
votes
Generate ;# code
;#+, 40 bytes
;;;;;~+++++++>~;~++++:>*(-(;~<#~):<#-*:)
Try it online! Input is terminated with a null byte.
Explanation
The code is split into two ...
33
votes
32
votes
Rube Goldberg Hello World
Jolf -> Actually -> Jelly -> Pyth -> Retina -> /// -> Golfscript: 15 / 6 = 2.5 points
5.4 points thanks to Martin Ender.
0.1 points thanks to Cᴏɴᴏʀ O'Bʀɪᴇɴ.
Note: both Actually and Jelly have their ...
31
votes
Script that outputs a script that prints a given input
pl, 0 bytes
Code:
Try it online!
Explanation:
An empty program in pl is simply a cat program, outputting the exact same as the input.
In pl, all ASCII characters ...
29
votes
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
...
26
votes
Rube Goldberg Hello World
Python -> Batch -> Javascript -> Java -> PHP -> C++ -> Foo -> Brainfuck 31.(142857) points
Python
...
24
votes
Generate 100 Java Tuple classes
vim 56 54 keystrokes
iclass Tuple1 {public Object _0;}<esc>qyYp<C-a>$y2bPr,<C-a>q98@y
Since V is backwards compatible, you can Try it online!
...
21
votes
Rube Goldberg Hello World
JS -> Cobol -> Python -> IBM 360 BAL
261 bytes/4 languages = 65.25 Points
Was aiming to use difficult languages, with more obfuscation. Javascript converts the string from base64 into Cobol, which ...
21
votes
Cheating Cyclic Quine
Snails, 0 bytes
The second program is
1
The first program counts the number of matches of the empty pattern on the empty input (which really has area 0, but the pattern is always run at least once as ...
21
votes
Generate TeX to typeset Sierpinski Triangle Fractal
Python 2, 32 bytes
exec"print'x'"+".join('{^_}')"*5
Try it online!
19
votes
Accepted
18
votes
17
votes
Rube Goldberg Hello World
MATL -> CJam -> 05AB1E -> Golfscript 21/2 18/2 22/3
Thanks for Martin for 3 chars off!
'"''Rube Goldberg''"`'
executed in MATL gives
...
17
votes
Script that outputs a script that prints a given input
brainfuck, 56 55 33 bytes
1 byte saved thanks to Gravitron, and 22 bytes saved thanks to Jo King!
--[>+<++++++],[[->.<]>+++.--.-<,]
Try it ...
17
votes
Accepted
Make a polyglot generator
Backhand, Turtlèd, Gol><>, ><>, Pushy, Wumpus, Fission, Beeswax, Emoji, Emotinomicon, AsciiDots, Cardinal, Befunge-93, Functoid, Alice, Befunge-98, Klein, PingPong, Whispers v1 and ...
17
votes
Make a polyglot generator
Python 3, 167 bytes, produces Python 3.0, 3.1, ..., 3.9, 3.10, \${167 \over 11^2}\approx1.38\$
thanks to SuperStormer for refreshing my memory, allowing to add 3.10.
...
16
votes
Three polyglots, two period-two quines, and one code-golf challenge
JavaScript (ES6) / Python 3, 264 + 258 = 522 bytes
Program A:
...
16
votes
Output a program that outputs a program ... that outputs PPCG
12 languages, 64 bytes
Charcoal -> tinylisp -> Python 3 -> /// -> Python 2 -> Perl -> QBasic -> Pip -> V -> Retina -> Pyth -> GolfScript
Charcoal
...
16
votes
16
votes
16
votes
Generate Brainfuck for the numbers 1–255
Brainfuck, 77 75 73 + 32894 = 32967 32969 32971 bytes
...
16
votes
15
votes
Generate TeX to typeset Sierpinski Triangle Fractal
plain TeX, 29 bytes
\def~#1x{{#1x_#1x^#1x}}~~~~~x
That outputs what others have output. But if we need the code to be compilable it would be 6 bytes more
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
code-generation × 93code-golf × 55
code-challenge × 27
quine × 23
brainfuck × 11
kolmogorov-complexity × 7
metagolf × 6
string × 4
number × 4
restricted-source × 4
cops-and-robbers × 4
polyglot × 4
compression × 4
sequence × 3
arithmetic × 3
popularity-contest × 3
parsing × 3
hello-world × 3
compiler × 3
math × 2
source-layout × 2
regular-expression × 2
c × 2
stack × 2
generation × 2