Hello world in every programming language
My favorite so far is Malbolge[0]: https://github.com/leachim6/hello-world/blob/master/m/malbol...
"Malbolge was specifically designed to be almost impossible to use, via a counter-intuitive 'crazy operation', base-three arithmetic and self-altering code.[1] It builds on the difficulty of earlier, challenging esolangs (such as Brainfuck and Befunge), but takes this aspect to the extreme, playing on the entangled histories of computer science and encryption. Weaknesses in the design have been found that make it possible (though still very difficult) to write useful Malbolge programs."
Related, but broader: https://www.rosettacode.org
Their Hello World implementations: https://www.rosettacode.org/wiki/Hello_world/Text#BML
This one certainly lives up to its name: https://github.com/leachim6/hello-world/blob/master/v/verbos...
I always have fun when I read LOLCODE [1]
There's even a whole web server written in LOLCODE [2]
1 : https://github.com/leachim6/hello-world/blob/master/l/lolcod... 2 : https://github.com/justinmeza/httpd.lol
Top 10 Hello World programs in number of lines.326 ./p/pit.pit 194 ./a/assembler_atari2600.asm 125 ./d/DNA-Sharp.dna 124 ./d/DNA#.dna 94 ./b/brainf*ck-2d 89 ./s/shakespeare.spl 89 ./b/beatnik.beatnik 81 ./b/BIT.bit 68 ./t/Tao-Presentations.ddd 65 ./c/chef.ch<groan> Hello World tells you nearly nothing about a programming language.
(Unless, of course, it's written in Java, in which case it's a painstaking tour of the entire programming language, requiring you to learn the concepts behind "class", "public", "static", "void", "main", and arrays, despite never actually using any of those things.)
I love this kind of stuff. The similarities and differences of programming languages is something of an obsession of mine.
In my free time over the last several years I've been working on a chrestomathy that collections solutions to Project Euler problems in various different languages [0]. I'm currently up to 39. It's certainly far from "every" language and in most languages I've only written solutions to the first handful of problems. I've learned it's hard to not learn a lot about a language if you do the first 7 or so problems in it.
Clearly the winner is Shakespeare (https://github.com/leachim6/hello-world/blob/master/s/shakes...):
"The Infamous Hello World Program.
Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S."
Angular.js is not a language. https://github.com/leachim6/hello-world/blob/master/a/angula...
I'we been a big fan of http://www.99-bottles-of-beer.net/
There are thousands of programming languages, so it should be "many" rather than "every". Some important ones are missing, e.g. SNOBOL4, SASL, IPL, POP-11, SISAL, LabVIEW, Prograph.
In Full Metal Jacket (not released yet), "Hello computer" is shown at http://web.onetel.com/~hibou/fmj/tutorials/FirstSteps.html
In Prograph, it's similar. In LabVIEW, it's also similar, except that data flows from left to right.
Now, for each language, we need a Docker image built to compile and run the program.
Discussion of repository four years ago: https://news.ycombinator.com/item?id=3905398
I think the C-Version should be "int main(void)" and use puts instead of printf or printf with %s.
You can also remove the return 0 in modern C but I don't mind the explicitness.
Edit: Link to C11, draft only as the released version costs money: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
Edit2: No ARM assembler or is it not under A (either for assembler or ARM)?
Following this comment.https://news.ycombinator.com/item?id=11720057 Does contain hello world in the macro evaluation system of xkas
Amazing how many programming languages have been developed over the years. Looks like some non-english based ones have been added[1], quite a few more that could be added as well[2].
[1] https://github.com/leachim6/hello-world/blob/master/a/aheui....
[2] https://en.wikipedia.org/wiki/Non-English-based_programming_...
I see the value of this as a resource to compare different languages. But for me "Hello world" is about all of the admin/setup work that has be done in order to get the most basic program to run. It's more like install python, deal with dependencies and conflicts, make sure my PATH is set and the right port is open on the server. Etc and so forth.
And all of that is why "Hello" and "world" are two of my favorite words. It can take so much effort just to see them.
Beautiful.,{,{89+(59+~1&(7~+1&2&2&((3~+1&(4~(32_((6~+((8+(38_(},}https://github.com/leachim6/hello-world/blob/master/e/EOOOL....
The TrumpScript is awesome :)
Lots of us are pointing out what's missing, but I think there is at least two that doesn't necessarily belong in a category of programming language- plain text and json. The latter one just says {"hello":"world"} if you are curious.
There may be more but I haven't looked through all of them.
This would be awesome for undercover operations: https://github.com/leachim6/hello-world/blob/master/b/beatni...
I'm a bit sad that there's no version written in BS [0]
[0] https://skillsmatter.com/skillscasts/6088-the-worst-programm...
Needs a ><> https://esolangs.org/wiki/Fish
I love 2d languages.!v"hello, world"r! >l?!;oWould it be possible to make something better than Hello World that would showcase even more of the universal standard features of programming languages?
Any ideas?
Maybe calculate the first 10 primes and output the result? Something like that...
Somebody should add Taxi, https://bigzaphod.github.io/Taxi/
So, the high level programming language will produce less lines than low level programming language (Assembly takes 35% portions of the repository).
What I want is a transpiler from every language to every other language. It doesn't need to result in performant code, just working code.
I kinda wish Hello World was unit tested by default
They could probably employ that executable tracing program to indeed make any compiler produce "hello world" eventually.
See also: http://rosetta.alhur.es/
Is PLM missing? I used to program in PLM before C became popular for firmware coding.
The ZX Spectrum ASM is ubereasy if you know a very little of Z80 ASM :)
I do not see an entry for sed. Is it an editor or a language?
What's Novice? It's extremely difficult to google.
Lacks Inform: https://en.wikipedia.org/wiki/Inform
[ Main; print "Hello World^"; ];Hmmm... there is react.js, but there is no Spring.
Wow, it actually had MUMPS. I'm impressed.
It's lacking Elm.
undefined
"Every" is a big claim.
No Pick/Basic[1] for a start, or Sculptor[2], as just two of the languages I've used in the past that haven't made it onto the list.
[1] https://en.wikipedia.org/wiki/Pick_operating_system [2] http://www.sculptor.co.uk/