One of the more popular sites of this nature is rosettacode.org, which in their own words, "is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another."
Plus, I enjoyed learning the word "chrestomathy", which "from the Greek words khrestos, useful, and mathein, to know, is a collection of choice literary passages, used especially as an aid in learning a subject."
Interestingly enough, I think this is the first time I see this word used in English, though in Russian it is pretty common (unsurprisingly, used in the same context). In fact, Google has 10 times more results for Russian one than for the English one.
A bit off-topic, but the site locks up Chrome on Snow Leopard and causes one my cores to peak, and I'm forced to eventually kill the tab. Firefox has no problems. Any ideas why that might be?
Yup, people often miss that PHP is modal and that the default mode is simply to output. So if you put Hello World in a file it actually compiles to these opcodes:
ECHO 'Hello+World%0A'
RETURN 1
Which is identical to the opcodes produced by putting <?php
echo "Hello World"; ?> into a file.
Rosetta Code has Hello World in only 245 programming languages (but a huge corpus of other examples in various languages).
http://rosettacode.org/wiki/Hello_world
24 comments
[ 1.1 ms ] story [ 51.5 ms ] threadhttp://www.99-bottles-of-beer.net/
Here's Wikipedia's example 'Hello, World!' program: http://en.wikipedia.org/wiki/Brainfuck#Hello_World.21
For example: http://rosettacode.org/wiki/Hello_World
Plus, I enjoyed learning the word "chrestomathy", which "from the Greek words khrestos, useful, and mathein, to know, is a collection of choice literary passages, used especially as an aid in learning a subject."
These examples just show some silly code, without any further information.
It would be really interesting to see how some languages deploy.
Otherwise, a fun read-through.
Something like this would be more universal:
http://progopedia.com/implementation/rhino/Hello world!
"Hello world"