33
votes
29
votes
21
votes
20
votes
99 ways to say "I love you"
JavaScript (JavaScript shell), 65 bytes
total: (64 + 3366 = 3450) bytes
for(i=99;i++<198;)print(`\\u0${i}="I love you";print(\\u{${i}})`)
...
19
votes
Accepted
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.
...
17
votes
Print 4 billion if statements
Python 3, 70 bytes
print("def f(n):f",*range(2**33),sep="==n==print('eovdedn'[n&1::2]);")
Try it online (with ...
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
Write the longest period iterating quine bounded by 500 bytes
Perl 6, \$126^{398} \approx 8.86 \times 10^{835}\$ iterations
...
13
votes
Output a program that outputs a program ... that outputs PPCG
14 16 17 18 Languages: Fueue > 05AB1E > APL (dzaima/APL) > Charcoal > Javascript (Node.js) > Go > C# > Emojicode > Java > C++ > LOLCODE > brainfuck > ruby > C &...
13
votes
Code-generator with unique characters
Java 8, chain of 2 functions, 90+10 37+4 28+4 = 32 bytes
o\u002D\u003E"\44\55\76"+2/2
Which is equivalent to:
...
13
votes
13
votes
Print 4 billion if statements
Bash, 59 (Theoretical)
3 bytes saved thanks to @NahuelFouilleul
printf "${f=((\$1-%d))||echo} even
$f odd
" {0..4294967295}
If bash could do the brace ...
12
votes
12
votes
Restricted Meta-Cat
Python, 121 90 bytes / score 3
lambda s:f"print({'+'.join('chr('+'+True'*ord(c)+')'for c in s)})"
Attempt This Online!
-31 thanks to l4m2
NFKC ...
11
votes
10
votes
Accepted
Three polyglots, two period-two quines, and one code-golf challenge
Befunge-98 (PyFunge)/><>, 123 + 123 = 266 250 246 bytes
Program A:
...
10
votes
10
votes
10
votes
Accepted
10
votes
9
votes
Program that creates larger versions of itself (quine-variant)
Evoloop, 9×9 rectangle (81 cells)
The Evoloop cellular automaton included with Golly supports patterns which replicate themselves in a "quine-like" way. Specifically, these patterns each contain a "...
9
votes
Code-generator with unique characters
Octave, 3 programs, Length 42 bytes
char("``;8%79b/7%,,b"-5)
Outputs: [[63 24]*2 ''].
Try it online!
...
9
votes
Generate Brainfuck for the numbers 1–255
Charcoal, 707 698 410 + 3627 = 4334 4325 4037 bytes
...
9
votes
Help Stack Exchange transpose tables
K (ngn/k), 84 73 67 59 bytes
-6 bytes from @rak1507's trim implementation (2(|(&\^:)_)/)
-19 bytes from golfing
...
9
votes
Shrinking Triangles
JavaScript (ES6), Score 10 9
Below is an example starting point with 15 lines. Bigger triangles are obtained by padding the end with 0's while preserving the final ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
code-generation × 98code-golf × 57
code-challenge × 29
quine × 23
brainfuck × 11
metagolf × 9
kolmogorov-complexity × 7
number × 6
string × 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
integer × 2
source-layout × 2
optimization × 2
regular-expression × 2
c × 2