Wheat Wizard
Moderator
  • Member for 5 years, 6 months
  • Last seen this week
  • Hamburg, Germany
I double the source, you double the output!
169 votes

Python 2, 33 bytes print len(open(__file__).read())# Try it online! Try it doubled Python 3, 28 bytes print(len(*open(__file__)))# Try it online! Try it doubled Explanation This opens up the ...

View answer
Golf you a quine for great good!
76 votes

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! (())(()()())(())(())(()()())(())(())(()()())(())(...

View answer
N(e(s(t))) a string
69 votes

Python, 41 39 34 bytes lambda e:"(".join(e)+")"*~-len(e) Ideone it Pretty self explanatory. It puts a parenthesis between every other character then adds one less than the length ...

View answer
Three-Three-Three!
60 votes

Brain-Flak, Flakcats, Brain-Flueue, Brain-Flak Classic, Miniflak, and Fλak 18 bytes Proven optimal! ((([()][()][()]))) Try it online! Explanation Brain-Flak, Brain-Flueue, Miniflak, and Fλak (...

View answer
Reciprocal of a number (1/x)
58 votes

Brain-Flak, 772 536 530 482 480 + 1 = 481 bytes Since Brain-Flak does not support floating point numbers I had to use the -c flag in order input and output with strings, hence the +1. (({})[((((()()(...

View answer
Shortest Code to Legitimately Slack Off
57 votes

TikZ (pdfTeX 3.14159265-2.6-1.40.17), 85 79 74 24 22 21 bytes A bunch of bytes saved thanks to wchargin One byte saved thanks to Chris H \input tikz \tikz\pic I actually encountered this one by ...

View answer
When was this language released?
46 votes

10 years, 12 languages, 2430 bytes This answer is a collaboration between myself and user 1000000000. A brief language list: Brainfuck 1993 Befunge 1993 Piet 2001 Whitespace 2003 ...

View answer
Attack, Decay, Sustain, Release
44 votes

TikZ, 195 193 181 177 172 167 163 160 159 bytes Thanks to David Carlisle for his helpful answer here \documentclass[tikz]{standalone}\begin{document}\tikz\def~#1{\typein[#1];}~\a~\s~\d~\r\def\u{)--(\...

View answer
"Hello, World!" in zero lines of code
43 votes

Haskell, 36 35 bytes {-{--}--}main=putStr"Hello, world!" Try it online! Test sloc Since sloc is regex based it is a very good guess to think it cannot identify nested comments. And if we ...

View answer
Draw the ☣ (Biohazard Symbol)
34 votes

Tex + Tikz, 232 bytes 43 bytes saved by switching to tex. Thanks to Phelype Oleinik Some bytes saved thanks to Skillmon \input tikz \tikz[x=1,y=1,white]{\def\f{\foreach\1in{90:,210:,330:}}\def\u{\...

View answer
How high can you count?
33 votes

Python 2, 15 Here's a start, looking for more Thanks to leo whose tip helped me to get to 15 [[[]]>[]][[]>[]]>>[[]>[]][[]>[]] 2 import math print'%i'%math.pi ((()<())<())&...

View answer
Given a table, place in the chairs
33 votes

Python 2, 1033 1007 924 879 829 787 713 699 692 691 688 687 672 670 664 659 654 648 643 642 630 625 623 620 570 560 554 545 518 514 513 510 505 492 476 454 451 443 bytes 6 bytes saved thanks to Riley ...

View answer
Anaglot Polygrams
31 votes

34 Languages, 19 bytes, Score: 38,832,018,459,912,437,760,000 Here is a quick answer I threw together to show that it is possible to get an answer scoring better than 1. 12233echo*+--@#..; 1. NTFJ ...

View answer
I shift the source code, you shift the input!
27 votes

Haskell, 51 bytes midm(a:b)=b++[a] i=(:).last<*>init main=interact id Try it online! Explanation Our main function is just interact of a another function. By default it is id which just ...

View answer
Paint Starry Night, objectively, in 1kB of code
27 votes

Starry, 11428.1894502 10904.3079277 10874.1307958 Starry might not be the best language to do this however it is certainly the most fitting. You can Try It online however it seems that the output is ...

View answer
Add a language to a polyglot
25 votes

100. brainbool, 2953 bytes #16 "?63(o?23!*# #@"/*\DZZCv;'[af2.q]PkPPX)\('#CO"14"; */ #/*0|7//```"` [>.>.])[-'][(>77*;,68*,@,1',;# l1011)(22)S\4n;iiipsddpsdoh coding:utf8ââââ(1P''53'S^'????!...

View answer
Tips for Golfing in Brain-Flak
25 votes

Use the Third Stack If you have read the title you might be a bit confused. Surely there are only two stacks in Brain-Flak? However I assure you that it exists and it is one of the most powerful if ...

View answer
Tips for restricted source in Python
24 votes

Avoid Numbers with Booleans When performing arithmetic operations on Booleans, Python treats them as if they are the numbers 1 and 0. So for example >>> True+False 1 You can make all ...

View answer
Trick or Treat polyglot
23 votes

/Brainf..k/, 143 + 3 = 146 bytes This answer requires the -A flag to output in ASCII for Brain-Flak and luckily Brainfuck doesn't care about that flag so it doesn't affect the output in Brainfuck. ((((...

View answer
Surprise Party for Brain-Flak
22 votes

Python 2, 39 37 36 34 bytes -1 thanks to dzaima -2 thanks to Erik the Outgolfer exec("".join([chr(len(x))for(x)in'()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()...

View answer
Shifting-Oriented Programming
21 votes

lHaskell, Score 255 (27,026 bytes) The program works but putting it in my clipboard seems to destroy it so here is code that outputs my program. Verification So if copying things to a clipboard ...

View answer
Golf you a quine for great good!
21 votes

Lost, 293 262 249 bytes >:2+52*:6*:(84*+75*):>:::::[[[[[[[:[(52*)>::::[[[[[[:[84*+@>%?!<((((((((((([[[[[[[[[[[[[[ " \#<<<<<<<<<<<<<<<<&...

View answer
"Hello, World!"
20 votes

Lost, 57 54 45 43 38 37 36 bytes It's been a long journey here, but we've reached 36 bytes. A 35 seems unlikely. roW"\\ dl <@+1(\ lo, /"Hel %<<<\?<<< Try it online! ...

View answer
Tips for restricted source in Python
20 votes

Avoid Parens with List indexing Parentheses are super useful for creating the correct operator precedence so it is a bummer when they are banned. However if [] are still available we can use them ...

View answer
I double the source, you double the output!
20 votes

Brain-Flak, 6 bytes ({}()) Try it online! Explanation What this does should be pretty clear. {} grabs a value from the stack, which implicitly zero to begin with, () adds one to it and (...) ...

View answer
Tips for restricted source in Python
19 votes

Function calls without parentheses We can avoid using parentheses for operator precedence using list indexing, but parentheses are still very useful for calling functions. List indexing can be used ...

View answer
A Programming Puzzle of Mode Golf
19 votes

Brain-Flak, 384 * 106 366 * 100 = 36,600 (((((((()()()))))))(()({}{}{}(([(({}{})){}()]((((({}())){})){}{}()(({})<([{}](((({}()())))([{}]([{}]()((()()())(()()({}()([(({})){}()](((((({}))))({}({}{}{}...

View answer
Happy Birthday V!
19 votes

Brain-Flak, 486 + 1 = 489 bytes Happy Birthday V from Brain-Flak! Also a Thank you to 0 ' ...

View answer
I double the source, you double the output!
18 votes

Python REPL, 2 bytes Also works in Pip, Dyalog APL, JavaScript REPL, J, and R +1 I'm making a TIO right now I couldn't get python repl to work on TIO

View answer
Make your language *mostly* unusable! (Cops' thread)
18 votes

Python 2, Cracked Implements addition as a named function import sys c="".join(open(__file__).read().split('\n')[4:]) if set(c)-set(' &)(,.:[]a`cdfijmonrt~')or"import"in c:sys.setrecursionlimit(...

View answer
1
2 3 4 5
20