"Hello, World!"
Introduction
The classic "Hello, World" challenge. What more can I say?
Rules
- Program takes no input.
- Program outputs
Hello, World!
with an optional trailing newline. No other output is accepted.
Shortest submission in bytes wins.
Vyxal, 2 bytes KH Th …
over 1 year ago
Shakespeare Programming Langua …
over 1 year ago
PHP, 13 bytes Hello, Wo …
over 1 year ago
HQ9+, 1 byte H Oblig …
over 1 year ago
[Common Lisp], 26 22 bytes …
over 1 year ago
QBASIC, 17, 16 bytes ?" …
1y ago
C# 9, 38 bytes System.C …
over 1 year ago
Perl 5 `-E`, 18 bytes ``` …
10mo ago
[Python 2], 20 bytes …
over 1 year ago
[C# (.NET Core)], 60 bytes …
8mo ago
05AB1E, 7 bytes ”Ÿ™,‚ï! …
over 1 year ago
LOLCODE, 37 bytes HAI 1 …
over 1 year ago
[C++ (gcc)], 43 bytes …
over 1 year ago
Javascript V8, 888 bytes ```j …
over 1 year ago
R, 20 bytes ``` cat("Hello …
over 1 year ago
[Bash], 18 bytes ec …
over 1 year ago
SOGL, 10 bytes ╥‰⅜,(ε ‘ū …
over 1 year ago
///, 13 bytes ``` Hello, W …
11mo ago
[PowerShell], 15 bytes …
1y ago
[RoadLang], 59 bytes …
over 1 year ago
AppleScript, 15 bytes " …
over 1 year ago
[JavaScript (V8)], 28 bytes …
over 1 year ago
[ARBLE], 15 bytes " …
over 1 year ago
Japt, 11 bytes `HÁM, W …
over 1 year ago
Raku, 19 bytes ``` "Hello, W …
over 1 year ago
[dc], 16 bytes [Hello, …
7mo ago
[Unlambda], 40 bytes `` …
8mo ago
[Haskell], 25 bytes …
8mo ago
Turing Machine.io, 202 bytes …
9mo ago
Scala, 42 bytes object>e …
9mo ago
[C# (.NET Core)], 67 bytes …
8mo ago
Rockstar, 19 bytes say …
10mo ago
PureScript, 25 bytes ``` m …
10mo ago
Swift, 23 bytes ```swift p …
10mo ago
Kotlin, 34 bytes ```kotlin …
10mo ago
[Forth (gforth)], 16 bytes …
10mo ago
HTML, 26 13 bytes ``` Hell …
8mo ago
SOS, 155 Bytes !+!-!!+! …
1mo ago
J, 15 bytes ``` 'Hello, Wo …
4mo ago
[Seriously], 1 byte H …
8mo ago
[shortC], 16 bytes AJ"H …
8mo ago
[jq] `--null-input` `--raw-out …
8mo ago
[SQLite], 21 bytes sele …
8mo ago
[Emoji], 24 bytes 💬Hell …
8mo ago
[Sclipting], (UTF-16) 18 bytes …
9mo ago
[Java (JDK)], 80 bytes …
9mo ago
[Chef], 558 485 bytes H …
9mo ago
[Forget], 319 bytes pus …
10mo ago
Lean, 64 bytes ```lean def …
10mo ago
[!@#$%^&()+], 17 bytes …
10mo ago
[Pyth], 14 bytes "Hello …
10mo ago
Bash, 21 Bytes ```bash pri …
10mo ago
[Charcoal], 13 bytes He …
10mo ago
Java, 37 Bytes ```java v-> …
9mo ago
[Lua], 20 bytes pri …
10mo ago
55 answers
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
IDoYTSoSubHaha | (no comment) | Oct 5, 2021 at 07:56 |
Shakespeare Programming Language, 974 bytes
Only 973 bytes away from winning.
a.Ajax,.Puck,.Act I:.Scene I:.[Enter Puck and Ajax]Puck:You is the cube ofa big big cat.Ajax:You is the sum ofI a big big big cat.Speak thy!You is the sum ofthe sum ofthe sum ofI a big big big big big cat a big big cat a cat.Speak thy!You is the sum ofthe sum ofyou a pig a big big big cat.Speak thy!Speak thy!You is the sum ofthe sum ofyou a big cat a cat.Speak thy!You is the sum ofthe sum ofthe sum ofyou a pig a big pig the cube ofa big big pig.Speak thy!You is a big big big big big cat.Speak thy!You is the sum ofthe sum ofthe sum oftwice I a big big big pig a big big big big big pig a pig.Speak thy!You is the sum ofthe sum ofthe sum ofyou a big big big cat a big big big big big cat a big big big big pig.Speak thy!You is the sum ofthe sum oftwice I a big big big big pig a big cat.Speak thy!You is the sum ofthe sum ofyou a big pig a big big pig.Speak thy!You is the sum ofyou a big big big pig.Speak thy!You is the sum ofa big big big big big cat a cat.Speak thy!
Spent a good amount of time golfing this. I'm sure there's a few optimizations I've missed, but I don't understand the word "big" anymore.
PHP, 13 bytes
Hello, World!
PHP by default prints all source to output until it encounters <?
or <?php
.
C# 9, 38 bytes
System.Console.Write("Hello, World!");
C# Version 9 introduced Top level statements.
0 comment threads
QBASIC, 17, 16 bytes
?"Hello, World!"
This should work on almost any BASIC interpreter.
Thanks to manassehkatz, for the space.
Javascript V8, 888 bytes
$=-~[]
*~-((~-~
[])** -~-
~[]); _$=$+ ~[];$$_=_$
+$;$$={ }+[];_$$ =![]+[];
$_=!![]+[ ];$=$$[$+_$ ]+$$[-~
[]]+(_$$[![ ]+[]]+[])[-~ []]+_$$[
_$-~[]]+$$[$+$]+$_[-~[]]+$_[_$]+$$[
$+$+~[]]+$$[$+_$-~[]]+$$[-~[]]+$_[-
~[]];$$='\\x';_=(_$**(_$+_$-~[]))+
_$**(_$-~[]);__=_+_/_$;$[$][$](_$$[-
~[]]+_$$[_$]+_$$[_$+_$]+$_[-~[]]+
$_[+[]]+"('"+$$+(_+_$**(_$-~[])
)+$$+(__+$$_)+$$+(__+[])[+[]]
+({ }+[ ])[ $$_
]+$$ +(__ +[]) [+[]
]+({ }+[] )[$$_ ]+$$
+(__ +[]) [+[]] +_$$
[+[] ]+$$ +_/_$ +$$+
(__- _$+~ [])+ $$+(
__+[ ])[+ []]+ _$$[
+[]] +$$+ (__+ __/$$_
)+$$ +(__ +[]) [+[]]+
({}+[]) [$$_]+$$+ (__+_$+ _$)+"')")()
Absolutely the shortest possible, no doubt about it. Try it online!. It won't work in the online one, copy it from there and paste it in the developer console if you are on chrome (as it uses the alert
function). Please excuse my absolutely awful ascii art.
I also now see that this output isn't accepted (needs the comma and exclamation mark)... lol now it's time to figure out how I did this months ago so I can fix it ...
C# (.NET Core), 60 bytes
class a{static void Main(){Console.Write("Hello, World!");}}
0 comment threads
RoadLang, 59 bytes
wagwan my slime
man say"Hello, World!"
chat wit u later fam
My first RoadLang answer! And probably the first one on this site!
Removing any of the words says "Aight the lad's lost the plot", so I think this is the most minimal answer I can get here.
Thanks to Quintec for patching string parsing so that this works.
1 comment thread