"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.
Shakespeare Programming Langua …
3y ago
Vyxal, 2 bytes KH Th …
3y ago
PHP, 13 bytes Hello, Wo …
3y ago
HQ9+, 1 byte H Oblig …
3y ago
[Common Lisp], 26 22 bytes …
3y ago
QBASIC, 17, 16 bytes ?" …
3y ago
C# 9, 38 bytes System.C …
3y ago
Perl 5 `-E`, 18 bytes ``` …
3y ago
[Python 2], 20 bytes …
3y ago
Javascript V8, 888 bytes ```j …
3y ago
[C# (.NET Core)], 60 bytes …
2y ago
05AB1E, 7 bytes ”Ÿ™,‚ï! …
3y ago
LOLCODE, 37 bytes HAI 1 …
3y ago
[C++ (gcc)], 43 bytes …
3y ago
R, 20 bytes ``` cat("Hello …
3y ago
[Bash], 18 bytes ec …
3y ago
SOGL, 10 bytes ╥‰⅜,(ε ‘ū …
3y ago
///, 13 bytes ``` Hello, W …
3y ago
[PowerShell], 15 bytes …
3y ago
[RoadLang], 59 bytes …
3y ago
AppleScript, 15 bytes " …
3y ago
[JavaScript (V8)], 28 bytes …
3y ago
[ARBLE], 15 bytes " …
3y ago
Japt, 11 bytes `HÁM, W …
3y ago
Raku, 19 bytes ``` "Hello, W …
3y ago
[dc], 16 bytes [Hello, …
2y ago
[Seriously], 1 byte H …
2y ago
[Unlambda], 40 bytes `` …
2y ago
[Haskell], 25 bytes …
2y ago
Turing Machine.io, 202 bytes …
2y ago
Scala, 42 bytes object>e …
3y ago
[C# (.NET Core)], 67 bytes …
2y ago
Rockstar, 19 bytes say …
3y ago
PureScript, 25 bytes ``` m …
3y ago
Swift, 23 bytes ```swift p …
3y ago
Kotlin, 34 bytes ```kotlin …
3y ago
[Forth (gforth)], 16 bytes …
3y ago
HTML, 26 13 bytes ``` Hell …
2y ago
C (gcc), 46 bytes ```cpp pri …
1y ago
Z80 Assembler, 50 bytes ``` …
1y ago
JavaScript V8, 26 bytes ``` …
2y ago
SOS, 155 Bytes !+!-!!+! …
2y ago
J, 15 bytes ``` 'Hello, Wo …
2y ago
[shortC], 16 bytes AJ"H …
2y ago
[jq] `--null-input` `--raw-out …
2y ago
[SQLite], 21 bytes sele …
2y ago
[Emoji], 24 bytes 💬Hell …
2y ago
[Sclipting], (UTF-16) 18 bytes …
2y ago
[Java (JDK)], 80 bytes …
3y ago
[Chef], 558 485 bytes H …
2y ago
[Forget], 319 bytes pus …
3y ago
Lean, 64 bytes ```lean def …
3y ago
[!@#$%^&()+], 17 bytes …
3y ago
[Pyth], 14 bytes "Hello …
3y ago
Bash, 21 Bytes ```bash pri …
3y ago
[Charcoal], 13 bytes He …
3y ago
Java, 37 Bytes ```java v-> …
3y ago
[Lua], 20 bytes pri …
3y ago
58 answers
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.
0 comment threads
AppleScript, 15 bytes
"Hello, World!"
No, I'm not joking. This ridiculous language for a code golf actually beats some of the more normal languages.
0 comment threads
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
.
ARBLE, 15 bytes
"Hello, World!"
Simple use of Implicit IO. Polyglot with half a dozen golf langauges.
0 comment threads
Raku, 19 bytes
"Hello, World!".say
Explanation
First second answer of the.. entire site, actually. Nothing special. I don't think this can go shorter, but this is Raku, who actually knows. I made this post to (possibly) try and set a precedent for what a answer should look like. Obv you don't have to explain it, but it's nice.
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
General Sebast1an | (no comment) | Oct 5, 2021 at 07:56 |
- ← Previous
- 1
- 2
- 3
- Next →
1 comment thread