Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

"Hello, World!"

+23
−0

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?
+8
−0

Shakespeare Programming Langua …

3y ago

+8
−0

Vyxal, 2 bytes KH Th …

3y ago

+6
−0

PHP, 13 bytes Hello, Wo …

3y ago

+5
−0

HQ9+, 1 byte H Oblig …

3y ago

+5
−0

[Common Lisp], 26 22 bytes …

3y ago

+4
−0

QBASIC, 17, 16 bytes ?" …

3y ago

+4
−0

C# 9, 38 bytes System.C …

3y ago

+4
−0

Perl 5 `-E`, 18 bytes ``` …

2y ago

+4
−0

[Python 2], 20 bytes …

3y ago

+9
−2

Javascript V8, 888 bytes ```j …

3y ago

+3
−0

[C# (.NET Core)], 60 bytes …

2y ago

+3
−0

05AB1E, 7 bytes ”Ÿ™,‚ï! …

3y ago

+3
−0

LOLCODE, 37 bytes HAI 1 …

3y ago

+3
−0

[C++ (gcc)], 43 bytes …

3y ago

+3
−0

R, 20 bytes ``` cat("Hello …

3y ago

+3
−0

[Bash], 18 bytes ec …

3y ago

+3
−0

SOGL, 10 bytes ╥‰⅜,(ε ‘ū …

3y ago

+2
−0

///, 13 bytes ``` Hello, W …

3y ago

+2
−0

[PowerShell], 15 bytes …

3y ago

+2
−0

[RoadLang], 59 bytes …

3y ago

+2
−0

AppleScript, 15 bytes " …

3y ago

+2
−0

[JavaScript (V8)], 28 bytes …

3y ago

+2
−0

[ARBLE], 15 bytes " …

3y ago

+2
−0

Japt, 11 bytes `HÁM, WŽ …

3y ago

+4
−1

Raku, 19 bytes ``` "Hello, W …

3y ago

+1
−0

[dc], 16 bytes [Hello, …

2y ago

+1
−0

[Seriously], 1 byte H …

2y ago

+1
−0

[Unlambda], 40 bytes `` …

2y ago

+1
−0

[Haskell], 25 bytes …

2y ago

+1
−0

Turing Machine.io, 202 bytes …

2y ago

+1
−0

Scala, 42 bytes object&gt;e …

2y ago

+1
−0

[C# (.NET Core)], 67 bytes …

2y ago

+1
−0

Rockstar, 19 bytes say …

2y ago

+1
−0

PureScript, 25 bytes ``` m …

2y ago

+1
−0

Swift, 23 bytes ```swift p …

2y ago

+1
−0

Kotlin, 34 bytes ```kotlin …

2y ago

+1
−0

[Forth (gforth)], 16 bytes …

3y ago

+1
−0

HTML, 26 13 bytes ``` Hell …

2y ago

+0
−0

C (gcc), 46 bytes ```cpp pri …

1y ago

+0
−0

Z80 Assembler, 50 bytes ``` …

1y ago

+0
−0

JavaScript V8, 26 bytes ``` …

2y ago

+0
−0

SOS, 155 Bytes !+!-!!+! …

2y ago

+0
−0

J, 15 bytes ``` 'Hello, Wo …

2y ago

+0
−0

[shortC], 16 bytes AJ"H …

2y ago

+0
−0

[jq] `--null-input` `--raw-out …

2y ago

+0
−0

[SQLite], 21 bytes sele …

2y ago

+0
−0

[Emoji], 24 bytes 💬Hell …

2y ago

+0
−0

[Sclipting], (UTF-16) 18 bytes …

2y ago

+0
−0

[Java (JDK)], 80 bytes …

2y ago

+0
−0

[Chef], 558 485 bytes H …

2y ago

+0
−0

[Forget], 319 bytes pus …

2y ago

+0
−0

Lean, 64 bytes ```lean def …

2y ago

+0
−0

[!@#$%^&()+], 17 bytes …

2y ago

+0
−0

[Pyth], 14 bytes "Hello …

2y ago

+0
−0

Bash, 21 Bytes ```bash pri …

2y ago

+0
−0

[Charcoal], 13 bytes He …

2y ago

+0
−0

Java, 37 Bytes ```java v-> …

2y ago

+0
−0

[Lua], 20 bytes pri …

3y ago

1 comment thread

General comments (6 comments)

58 answers

+2
−0

Japt, 11 bytes

`HÁM, WŽld!

Just using Japt's builtin compression.

Test it

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+2
−0

ARBLE, 15 bytes

"Hello, World!"

Simple use of Implicit IO. Polyglot with half a dozen golf langauges.

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+4
−1

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.

Try it Online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

General comments (1 comment)
+2
−0

PowerShell, 15 bytes

"Hello, World!"

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+2
−0

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

dc, 16 bytes

[Hello, World!]p

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

C# (.NET Core), 67 bytes

class a{static void Main(){System.Console.Write("Hello, World!");}}

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Scala, 42 bytes

object>extends App{print("Hello, World!")}

Attempt This Online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Haskell, 25 bytes

main=print"Hello, World!"

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Seriously, 1 byte

H

Try it online!

Similar to HQ9+.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Unlambda, 40 bytes

`````````````.H.e.l.l.o.,. .W.o.r.l.d.!i

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Rockstar, 19 bytes

say "Hello, World!"

Try it here (Code will need to be pasted in)

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Kotlin, 34 bytes

fun main(){print("Hello, World!")}

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

PureScript, 25 bytes

main=log("Hello, World!")

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Swift, 23 bytes

print("Hello, World!")

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Turing Machine.io, 202 bytes

0 1 101 3 1 2 0
0 2 108 3 1 3 0
0 3 108 3 1 4 0
0 4 111 3 1 5 0
0 5 44 3 1 6 0
0 6 32 3 1 7 0
0 7 87 3 1 8 0
0 8 111 3 1 9 0
0 9 114 3 1 a 0
0 a 108 3 1 b 0
0 b 100 3 1 c 0
0 c 33 3 1 0 1

Basically just keeps replacing the current cell value with the ASCII value of whatever character in "Hello, World!" its printing and moving on. I might add a more detailed explanation later (or maybe someone else can, if they feel like it).

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

Forth (gforth), 16 bytes

." Hello, World!

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+1
−0

HTML, 26 13 bytes

Hello, World!

Golfed 13 bytes thanks to @Razetime's advice.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

general (1 comment)
+0
−0

shortC, 16 bytes

AJ"Hello, World!

Try it online!

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

+0
−0

C (gcc), 46 bytes

printf(char*);main(){printf("Hello, World!");}

printf(char*);(14 bytes) is better than #include <stdio.h>\n(19 bytes)

History
Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment thread

why not use `puts`? (1 comment)

Sign up to answer this question »