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

Comments on "Hello, World!"

Parent

"Hello, World!"

+24
−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 attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?
+8
−0

Shakespeare Programming Langua …

4y ago

+8
−0

Vyxal, 2 bytes KH Th …

4y ago

+6
−0

PHP, 13 bytes Hello, Wo …

4y ago

+5
−0

HQ9+, 1 byte H Oblig …

4y ago

+5
−0

[Common Lisp], 26 22 bytes …

4y ago

+4
−0

QBASIC, 17, 16 bytes ?" …

4y ago

+4
−0

C# 9, 38 bytes System.C …

4y ago

+10
−2

Javascript V8, 888 bytes ```j …

4y ago

+4
−0

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

3y ago

+4
−0

[Python 2], 20 bytes …

4y ago

+3
−0

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

3y ago

+3
−0

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

4y ago

+3
−0

LOLCODE, 37 bytes HAI 1 …

4y ago

+3
−0

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

4y ago

+3
−0

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

4y ago

+3
−0

[Bash], 18 bytes ec …

4y ago

+3
−0

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

4y ago

+2
−0

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

3y ago

+2
−0

[PowerShell], 15 bytes …

3y ago

+2
−0

[RoadLang], 59 bytes …

4y ago

+2
−0

AppleScript, 15 bytes " …

4y ago

+2
−0

[JavaScript (V8)], 28 bytes …

4y ago

+2
−0

[ARBLE], 15 bytes " …

4y ago

+2
−0

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

4y ago

+4
−1

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

4y ago

+1
−0

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

3y ago

+1
−0

[dc], 16 bytes [Hello, …

3y ago

+1
−0

[Seriously], 1 byte H …

3y ago

+1
−0

[Unlambda], 40 bytes `` …

3y ago

+1
−0

[Haskell], 25 bytes …

3y ago

+1
−0

Turing Machine.io, 202 bytes …

3y ago

+1
−0

Scala, 42 bytes object&gt;e …

3y ago

+1
−0

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

3y ago

+1
−0

Rockstar, 19 bytes say …

3y ago

+1
−0

PureScript, 25 bytes ``` m …

3y ago

+1
−0

Swift, 23 bytes ```swift p …

3y ago

+1
−0

Kotlin, 34 bytes ```kotlin …

3y ago

+1
−0

[Forth (gforth)], 16 bytes …

3y ago

+1
−0

HTML, 26 13 bytes ``` Hell …

3y ago

+0
−0

[C (gcc)], 30 bytes …

6mo ago

+0
−0

[K (oK)], 15 bytes "Hel …

6mo ago

+0
−0

[AWK], 2 bytes $0 Tr …

6mo ago

+0
−0

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

2y ago

+0
−0

Z80 Assembler, 50 bytes ``` …

2y ago

+0
−0

JavaScript V8, 26 bytes ``` …

2y ago

+0
−0

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

2y ago

+0
−0

[shortC], 16 bytes AJ"H …

3y ago

+0
−0

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

3y ago

+0
−0

[SQLite], 21 bytes sele …

3y ago

+0
−0

[Emoji], 24 bytes 💬Hell …

3y ago

+0
−0

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

3y ago

+0
−0

[Java (JDK)], 80 bytes …

3y ago

+0
−0

[Chef], 558 485 bytes H …

3y ago

+0
−0

[Forget], 319 bytes pus …

3y ago

+0
−0

Lean, 64 bytes ```lean def …

3y ago

+0
−0

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

3y ago

+0
−0

[Pyth], 14 bytes "Hello …

3y ago

+0
−0

Bash, 21 Bytes ```bash pri …

3y ago

+0
−0

[Charcoal], 13 bytes He …

3y ago

+0
−0

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

3y ago

+0
−0

[Lua], 20 bytes pri …

3y ago

1 comment thread

General comments (6 comments)
Post
+10
−2

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 ...

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

General comments (3 comments)
General comments
DonielF‭ wrote about 4 years ago

"undefined:3: ReferenceError: alert is not defined alert('\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64') ^ ReferenceError: alert is not defined at eval (eval at (.code.tio:11:31), :3:1) at .code.tio:24:38"

ZippyMagician‭ wrote about 4 years ago

Read past the link ;)

Jo King‭ wrote almost 4 years ago

You can golf this pretty easily by removing all the whitespace. I'm not sure what restricted character set you've decided to program this under, since it has quotes and an x in it, both of which could surely be used elsewhere to make it shorter.