TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hello World Programs in 300 Programming Languages

35 pointsby pawannitjabout 12 years ago

11 comments

dewittabout 12 years ago
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."<p>For example: <a href="http://rosettacode.org/wiki/Hello_World" rel="nofollow">http://rosettacode.org/wiki/Hello_World</a><p>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."
评论 #5433476 未加载
msoadabout 12 years ago
Brainfuck was missing. Here is Hello World in brainfuck<p><pre><code> &#62;+++++++++[&#60;++++++++&#62;-]&#60;.&#62;+++++++[&#60;++++&#62;-]&#60;+.+++++++..+++.&#62;&#62;&#62;++++++++[&#60;++++&#62;-] &#60;.&#62;&#62;&#62;++++++++++[&#60;+++++++++&#62;-]&#60;---.&#60;&#60;&#60;&#60;.+++.------.--------.&#62;&#62;+.</code></pre>
sharkweekabout 12 years ago
And it's all copyrighted by Oracle -- <a href="http://docs.oracle.com/javase/tutorial/getStarted/application/examples/HelloWorldApp.java" rel="nofollow">http://docs.oracle.com/javase/tutorial/getStarted/applicatio...</a>
评论 #5433698 未加载
steschabout 12 years ago
The intention behind "Hello, world!" was to show the steps you need to run your code. In C's case: compiling it.<p>These examples just show some silly code, without any further information.<p>It would be really interesting to see how some languages deploy.
评论 #5432538 未加载
postfuturistabout 12 years ago
Rosetta Code has Hello World in only 245 programming languages (but a huge corpus of other examples in various languages). <a href="http://rosettacode.org/wiki/Hello_world" rel="nofollow">http://rosettacode.org/wiki/Hello_world</a>
smsm42about 12 years ago
PHP ones are wrong. Hello world in PHP is this:<p>Hello world!
评论 #5433492 未加载
pschastainabout 12 years ago
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?<p>Otherwise, a fun read-through.
podpersonabout 12 years ago
AS3 example creates class with a method but doesn't call the method. Also it subclasses a sprite but then uses trace (console log). Fractally bad.
pudabout 12 years ago
JavaScript example is wrong:<p><pre><code> &#60;a href="#" onclick="helloWorld(); return false;"&#62;Hello World Example&#60;/a&#62;</code></pre>
评论 #5433007 未加载
nigglerabout 12 years ago
Sad to see brainfuck missing :/
评论 #5432351 未加载
评论 #5432775 未加载
geldedusabout 12 years ago
actually the code for ruby is even simpler:<p>"Hello world"