479
Stuck, 0 bytes
Well, can't get shorter than that...
An empty program will output Hello, World! in Stuck.
275
PHP, 13 bytes
Hello, World!
Yes. It works.
Try it online!
260
Brainfuck, 78 bytes
Open-ended bounty: If anyone can improve this score, I will pass the bounty (+500) on to them.
@KSab has found a 76 72 byte solution!
--<-<<+[+[<+>--->->->-<<<]>]<<--.<++++++.<<-..<<.<+.>>.>>.<<<.+++.>>.>>-.<<<+.
Try it online!
The ...
260
Python 3, 190 172 171 169 167 160 159 147 143 bytes
Using PIL version 1.1.7 which has a deprecated but not removed offset method.
from PIL.ImageDraw import*
i=Image.new('RGB',(25,18),'#d72828')
Draw(i).rectangle((1,1,23,16),'#0048e0',~0)
i.offset(9).resize((100,72)).show()
Creates a 25*18 pixel image filled with red then draws a 23*16 pixel rectangle ...
238
ArnoldC, 71 69 bytes
IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED
Just for lols...
Try it online!
224
Seed, 6016 4234 4203 bytes
20 ...
192
Trumpscript, 303 285 244 231 226 bytes
make i 1000005-1000000
as long as,i;:
make i,i - fact;
say "_|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|"
say "___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|___|__"!
America is great
I would like to say this is one of the most verbose languages where almost everything fails ...
168
Mornington Crescent, 3614 3568 bytes
Thanks to NieDzejkob for saving 46 bytes by using shorter line names.
Take Northern Line to Hendon Central
Take Northern Line to Bank
Take Circle Line to Bank
Take District Line to Gunnersbury
Take District Line to Victoria
Take Victoria Line to Seven Sisters
Take Victoria Line to Victoria
Take Circle Line to Victoria
...
answered Sep 4 '15 at 18:02
Martin Ender
188k6262 gold badges416416 silver badges923923 bronze badges
157
Wordfuck, 5761 2686 bytes
I guess using his name as a source code gets Adam West some honor.
adam west adam west adam_wes t_a dam_we st_a dam_ west adam west adam west adam west_ad am_west_a dam_we st ad am we st ad am we st ad am west_a dam_we st_a dam_ west_ada m_w est ada m_w est ada m_west_ adam west_a dam_west_ adam_we st_ ad am_west ad am we st ad am ...
133
Python 2, 64
print' ottffssennwhoiieiieoruvxvgn ere ehe e nt'[input()::9]
This is what the string looks like with some extra whitespace (try reading vertically):
o t t f f s s e n
n w h o i i e i i
e o r u v x v g n
e r e e h e
e n t
As explained in the comments below, [input()::9] starts at the given index and selects every ninth ...
130
evil, 70 bytes
aeeeaeeewueuueweeueeuewwaaaweaaewaeaawueweeeaeeewaaawueeueweeaweeeueuw
Try it online!
It uses the following four commands:
a - increment the register
u - decrement the register
e - interweave the register's bits (01234567 -> 20416375)
w - write the value of the register as an ASCII character
130
brainfuck, 72 bytes
+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+.
Try it online!
And the original non-wrapping 76 byte solution:
+[+[<<<+>>>>]+<-<-<<<+<++]<<.<++.<++..+++.<<++.<---.>>.>....
122
LOLCODE: 109 (105 with "correct" spelling)
LOLCODE is not a great language for golfing, especially since you lose all the beauty and expressiveness when shortening the code.
HAI
H R "HAPPY BIRTHDAY "
T R SMOOSH H "TO YOU"
VISIBLE T
VISIBLE T
VISIBLE SMOOSH H "DEAR LOLCODE"
VISIBLE T
Test it using loljs
This is my preferred rendition, weighing in at 187 ...
120
V, 189, 179, 175, 164, 161, 157, 155, 149, 145, 141, 135 bytes
¬19É`A0-=BS´
TAB³ qwertyuiop[]\
CAPS³ asdfghjkl;'ENTER
SHIFT´ ÄJizxcvbnm,./ÍA-Z ]/Õ&
ÍÓ«ü$/|||&
òÙÓ|]/_
ÙÓ׫/Ü|¯
kkPÓ/_ _
kòÎx$x
Try it online!
This answer is now tweetable!
Watch it run! This is a slightly modified version that updates as it runs ...
117
x86 real-mode machine code for DOS COM, 69 65 63 62 bytes
The code is meant to be executed as a DOS COM executable.
Special thanks
meden, saved four bytes.
meden, saved two bytes and removed the flickering.
Machine code (in hex bytes)
68 00 A0 07 B8 13 00 CD 10 BE 23 01 AD 91 AD 91
AC E3 FE 60 30 ED F3 AA 61 81 C7 40 01 FE CD 75
F2 EB E9 ...
104
T-SQL, 442 441 426 355 349 344 bytes
DECLARE @ VARCHAR(MAX)=REPLACE(REPLACE(REPLACE('DECLARE @a5MULTIPOINT((0 31),(19 -2),(-19 -2))'',@b5MULTIPOINT((0 39),(26 -6),(-26 -6))'',@5POINT(0 9)'',@d5LINESTRING(0 9,0 99,90 -43,0 9,-90 -43)''SELECT @a830%b821)%86)%d81)%d84%819))).STUnion(@827%820)).STIntersection(@b819)))'
,8,'.STBuffer('),5,' GEOMETRY='''),'%',')....
103
Vim, 25 23 bytes
:h<_↵jjYZZP25@='Ypx$p'↵
Where ↵ is the Return key.
:h<_↵ Open the help section v_b_<_example.
jjY Copy the "abcdefghijklmnopqrstuvwxyz" line.
ZZP Close this buffer and paste in ours.
25@=' '↵ Run these commands 25 times:
Yp ...
92
Mathematica- barcode birthday wishes--way too many bytes
This prints the verses and reads them aloud.
Happy Birthday to You
Happy Birthday to You
Happy Birthday Dear Mathematica
Happy Birthday to You
StringReplace replaces each comma with a NewLine. Barcodes cannot contain control characters.
92
Hexagony, 91 bytes
Thanks for the bounty :)
Wow, I would never have imagined I could beat Martin’s Hexagony solution.
But—who would have thunk it—I got it done. After several days of failure because I neither had the Hexagony colorer nor the EsotericIDE to check my solution. I got several aspects of the specification wrong, so I produced a few wrong “...
91
Hexagony, 271 bytes
I present to you, the first 3% of a Hexagony self-interpreter...
|./...\..._..>}{<$}=<;>'<..../;<_'\{*46\..8._~;/;{{;<..|M..'{.>{{=.<.).|.."~....._.>(=</.\=\'$/}{<}.\../>../..._>../_....@/{$|....>...</..~\.>,<$/'";{}({/>-'(<\=&\><${~-"~<$)<....'.>=&'*){=&...
answered Dec 17 '15 at 22:45
Martin Ender
188k6262 gold badges416416 silver badges923923 bronze badges
91
MATL, 70 68 67 bytes
'()'12:)l10:&<toYP43Y$51hb(!10Xy'\::\'FFhZ++'|'3$Yc'||\'3:(95'Zd'o(
Try it online!
Explanation
What a mess. But hey, there's a convolution!
The explanation will be clearer if you can inspect the stack contents after a given statement. To do it, just insert X#0$% at that point. (This means: X# show stack contents, 0$ don't ...
87
Piet, 90 codels
This is a 30 by 3 image. Alternatively, at codel size 10:
The uses a 3-high layout so that I only need to pointer once. If this is still golfable I could probably shave at most another column, since there's a push-pop no-op in there.
Edit: @primo's 84 codel solution.
87
Charcoal, 2 bytes
↘β
Try it online!
How?
β - the lowercase alphabet
↘ - direction
Exactly the kind of challenge for which Charcoal was originally designed.
86
Python 2, 38 30 28 bytes
lambda S:`6793**164`[len(S)]
Try it online!
Unfortunately still one byte longer than the best Python 2 answer thus far; though not using the enklact-approach.
Now one byte shorter than i cri everytim's answer!
How does it work?
After a lot of brute force, I found an expression that results in a number which has just the right ...
85
Haystack, 17 Bytes
Haystack is a 2D programming language that executes until it finds the needle in the haystack |, all while performing stack-based operations. All programs start from the top left corner, and can use the directional characters ><^v to move around the program. Direction is inherited, so you do not need to keep using > to go right, ...
82
Python 2, 56 bytes
i=0;exec"print i%3/2*'Fizz'+i%5/4*'Buzz'or-~i;i+=1;"*100
Try it online!
81
Brainfuck, 47 bytes
++++++++++[->++++>+>+<<<]>++>[-<..........>>.<]
Try it online!
++++++++++[->++++>+>+<<<] set the tape to 40 10 10
>++> set the tape to 42 10 10
[-<..........>>.<] come on
81
Emojicode, 292 bytes (140 characters)
🏁🍇🔤Baby🔤➡️b🔤Daddy🔤➡️y🔤Mommy🔤➡️o🔤Grandpa🔤➡️g🔤Grandma🔤➡️a🔤 Shark🔤➡️s🔤 doo🔤➡️d🍨b y o g a🍆➡️f🔂m f🍇🔂i🆕⏩⏩0 3❗️🍇😀🍪m s d d d d d d🍪️❗️🍉😀🍪m s🔤!🔤🍪❗️🍉🍉
Run it
Expanded out:
🏁🍇
🔤Baby🔤 ➡️ b
🔤Daddy🔤 ➡️ y
🔤Mommy🔤 ➡️ o
🔤Grandpa🔤 ➡️ g
🔤Grandma🔤 ➡️ a
🔤 Shark🔤 ➡️ s
🔤 doo🔤 ➡...
79
Outputs to STDERR
Outputting to STDERR is now at +33/-21 as an allowed default, which is positive but contested. This is a CW answer to collect answers that just invoke an error in a language where error messages includes the language name.
Haskell, 1 byte
1
Error:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
Lua, ...
76
Perl 69 bytes
s;.;y/XVI60-9/CLXVIX/dfor$a[$_].="32e$&"%72726;gefor 1..100;print"@a"
Works by way of magic formula. The expression "32e$&"%72726 transforms each digit in the following manner:
0⇒32, 1⇒320, 2⇒3200, 3⇒32000, 4⇒29096, 5⇒56, 6⇒560, 7⇒5600, 8⇒56000, 9⇒50918
After applying the translation ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
kolmogorov-complexity × 607code-golf × 562
ascii-art × 160
string × 119
graphical-output × 36
restricted-source × 33
code-challenge × 30
number × 26
alphabet × 25
sequence × 19
math × 18
date × 18
geometry × 14
animation × 13
natural-language × 10
compression × 10
arithmetic × 9
integer × 8
unicode × 8
chemistry × 8
primes × 7
random × 7
cops-and-robbers × 7
code-generation × 7
metagolf × 7