Hello world in every programming language
github.com
github.com
"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."
chicken chicken chicken chicken chicken chicken
chicken
https://github.com/leachim6/hello-world/blob/master/m/Mmmm()...
Their Hello World implementations: https://www.rosettacode.org/wiki/Hello_world/Text#BML
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
I like the 'O RLY?' to start an if/else
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
Top 10 Hello World programs in number of lines.(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.)
When you pick up a dictionary, do you groan about it teaching you nearly nothing about human languages?
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.
"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."
"This prints hello world, while being tastier than Hello World Souffle."
Some of these are so nonsensical, it's fantastic
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED
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.
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)?
[1] https://github.com/leachim6/hello-world/blob/master/a/aheui....
[2] https://en.wikipedia.org/wiki/Non-English-based_programming_...
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.
,{,{89+(59+~1&(7~+1&2&2&((3~+1&(4~(32_((6~+((8+(38_(},}
Beautiful.https://github.com/leachim6/hello-world/blob/master/e/EOOOL....
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.
[0] https://skillsmatter.com/skillscasts/6088-the-worst-programm...
!v"hello, world"r!
>l?!;o
I love 2d languages.Any ideas?
Maybe calculate the first 10 primes and output the result? Something like that...
Iterating over infinite lists (generators, lazy seq, whatever), polymorphism (if applicable), pattern matching (if applicable), how one would pass functions around, how one would manipulate a date, how one would read and write to a file, how one would make an http request (with some error handling!), traits/mixins (or similar, if applicable) concurrency, parallelism, and use of built in List, Map data structures. While not exhaustive, to me those feel like common building blocks to my day that would showcase how easy it is to do things in a language.
[ Main;
print "Hello World^";
];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/