Shortest programs to print "Hello, World!".
All files:
- print exactly "Hello, World!" with optional leading or trailing whitespace
- are full programs.
- print to STDOUT or the closest alternative
- do not error
- ArnoldC, 71 bytes
- AsciiDots, 19 bytes
- Assembly, 122 bytes
- Bash, 18 bytes
- brain[fudge], 78 bytes
- C, 30 bytes
- C#, 67 bytes
- C++, 47 bytes
- Clojure, 22 bytes
- Elixir, 22 bytes
- ><>, 23 bytes
- Go, 61 bytes
- Groovy, 20 bytes
- Haskell, 26 bytes
- Java, 79 bytes
- Rename file to H.java to run.
- JavaScript, 28 bytes
- Kotlin, 48 bytes
- Lisp, 22 bytes
- LOLCODE, 22 bytes
- Lua, 20 bytes
- Perl, 20 bytes
- Pikalang, 524 bytes
- Python2, 20 bytes
- Python3, 22 bytes
- Rockstar, 14 bytes
- Ruby, 22 bytes
- Rust, 37 bytes
- Scala, 22 bytes
- Swift, 22 bytes
To add another language, you must:
- follow the criteria above
- create the file with the name
<language-name>.<file-extension>
- add an entry in README.md like so:
[<language name>](<file-name>), <byte-count> bytes
(notice the list is alphabetical)