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 in every programming language

104 pointsby afshinmehalmost 9 years ago

39 comments

throwaway7767almost 9 years ago
My favorite so far is Malbolge[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;m&#x2F;malbolge.mbg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;m&#x2F;malbol...</a><p>&quot;Malbolge was specifically designed to be almost impossible to use, via a counter-intuitive &#x27;crazy operation&#x27;, 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.&quot;<p>[0]<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Malbolge" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Malbolge</a>
评论 #11739649 未加载
评论 #11738043 未加载
lomnakkusalmost 9 years ago
Related, but broader: <a href="https:&#x2F;&#x2F;www.rosettacode.org" rel="nofollow">https:&#x2F;&#x2F;www.rosettacode.org</a><p>Their Hello World implementations: <a href="https:&#x2F;&#x2F;www.rosettacode.org&#x2F;wiki&#x2F;Hello_world&#x2F;Text#BML" rel="nofollow">https:&#x2F;&#x2F;www.rosettacode.org&#x2F;wiki&#x2F;Hello_world&#x2F;Text#BML</a>
评论 #11737061 未加载
ShinyCyrilalmost 9 years ago
This one certainly lives up to its name: <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;v&#x2F;verbose.verbose" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;v&#x2F;verbos...</a>
评论 #11737340 未加载
评论 #11737184 未加载
评论 #11737253 未加载
drinchevalmost 9 years ago
I always have fun when I read LOLCODE [1]<p>There&#x27;s even a whole web server written in LOLCODE [2]<p>1 : <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;l&#x2F;lolcode.lol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;l&#x2F;lolcod...</a> 2 : <a href="https:&#x2F;&#x2F;github.com&#x2F;justinmeza&#x2F;httpd.lol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;justinmeza&#x2F;httpd.lol</a>
评论 #11741113 未加载
评论 #11739431 未加载
termosalmost 9 years ago
<p><pre><code> 326 .&#x2F;p&#x2F;pit.pit 194 .&#x2F;a&#x2F;assembler_atari2600.asm 125 .&#x2F;d&#x2F;DNA-Sharp.dna 124 .&#x2F;d&#x2F;DNA#.dna 94 .&#x2F;b&#x2F;brainf*ck-2d 89 .&#x2F;s&#x2F;shakespeare.spl 89 .&#x2F;b&#x2F;beatnik.beatnik 81 .&#x2F;b&#x2F;BIT.bit 68 .&#x2F;t&#x2F;Tao-Presentations.ddd 65 .&#x2F;c&#x2F;chef.ch </code></pre> Top 10 Hello World programs in number of lines.
评论 #11737880 未加载
评论 #11737512 未加载
PDoylealmost 9 years ago
&lt;groan&gt; Hello World tells you nearly nothing about a programming language.<p>(Unless, of course, it&#x27;s written in Java, in which case it&#x27;s a painstaking tour of the entire programming language, requiring you to learn the concepts behind &quot;class&quot;, &quot;public&quot;, &quot;static&quot;, &quot;void&quot;, &quot;main&quot;, and arrays, despite never actually using any of those things.)
评论 #11737218 未加载
评论 #11737234 未加载
评论 #11737250 未加载
评论 #11737398 未加载
careersuicidealmost 9 years ago
I love this kind of stuff. The similarities and differences of programming languages is something of an obsession of mine.<p>In my free time over the last several years I&#x27;ve been working on a chrestomathy that collections solutions to Project Euler problems in various different languages [0]. I&#x27;m currently up to 39. It&#x27;s certainly far from &quot;every&quot; language and in most languages I&#x27;ve only written solutions to the first handful of problems. I&#x27;ve learned it&#x27;s hard to not learn a lot about a language if you do the first 7 or so problems in it.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;seaneshbaugh&#x2F;rosetta-euler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;seaneshbaugh&#x2F;rosetta-euler</a>
jiiamalmost 9 years ago
Clearly the winner is Shakespeare (<a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;s&#x2F;shakespeare.spl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;s&#x2F;shakes...</a>):<p>&quot;The Infamous Hello World Program.<p>Romeo, a young man with a remarkable patience.<p>Juliet, a likewise young woman of remarkable grace.<p>Ophelia, a remarkable woman much in dispute with Hamlet.<p>Hamlet, the flatterer of Andersen Insulting A&#x2F;S.&quot;
评论 #11737053 未加载
评论 #11737206 未加载
sjclemmyalmost 9 years ago
Angular.js is not a language. <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;a&#x2F;angular.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;a&#x2F;angula...</a>
评论 #11739425 未加载
theknarfalmost 9 years ago
I&#x27;we been a big fan of <a href="http:&#x2F;&#x2F;www.99-bottles-of-beer.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.99-bottles-of-beer.net&#x2F;</a>
评论 #11737467 未加载
DonaldFiskalmost 9 years ago
There are thousands of programming languages, so it should be &quot;many&quot; rather than &quot;every&quot;. Some important ones are missing, e.g. SNOBOL4, SASL, IPL, POP-11, SISAL, LabVIEW, Prograph.<p>In Full Metal Jacket (not released yet), &quot;Hello computer&quot; is shown at <a href="http:&#x2F;&#x2F;web.onetel.com&#x2F;~hibou&#x2F;fmj&#x2F;tutorials&#x2F;FirstSteps.html" rel="nofollow">http:&#x2F;&#x2F;web.onetel.com&#x2F;~hibou&#x2F;fmj&#x2F;tutorials&#x2F;FirstSteps.html</a><p>In Prograph, it&#x27;s similar. In LabVIEW, it&#x27;s also similar, except that data flows from left to right.
psuteralmost 9 years ago
Now, for each language, we need a Docker image built to compile and run the program.
brudgersalmost 9 years ago
Discussion of repository four years ago: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3905398" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3905398</a>
kriroalmost 9 years ago
I think the C-Version should be &quot;int main(void)&quot; and use puts instead of printf or printf with %s.<p>You can also remove the return 0 in modern C but I don&#x27;t mind the explicitness.<p>Edit: Link to C11, draft only as the released version costs money: <a href="http:&#x2F;&#x2F;www.open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg14&#x2F;www&#x2F;docs&#x2F;n1570.pdf" rel="nofollow">http:&#x2F;&#x2F;www.open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg14&#x2F;www&#x2F;docs&#x2F;n1570.pdf</a><p>Edit2: No ARM assembler or is it not under A (either for assembler or ARM)?
评论 #11744100 未加载
philliprosoalmost 9 years ago
Following this comment.<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11720057" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11720057</a> Does contain hello world in the macro evaluation system of xkas
xhrpostalmost 9 years ago
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].<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;a&#x2F;aheui.aheui" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;a&#x2F;aheui....</a><p>[2] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Non-English-based_programming_languages" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Non-English-based_programming_...</a>
karmacondonalmost 9 years ago
I see the value of this as a resource to compare different languages. But for me &quot;Hello world&quot; is about all of the admin&#x2F;setup work that has be done in order to get the most basic program to run. It&#x27;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.<p>And all of that is why &quot;Hello&quot; and &quot;world&quot; are two of my favorite words. It can take so much effort just to see them.
benjaminjosephwalmost 9 years ago
<p><pre><code> ,{,{89+(59+~1&amp;(7~+1&amp;2&amp;2&amp;((3~+1&amp;(4~(32_((6~+((8+(38_(},} </code></pre> Beautiful.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;e&#x2F;EOOOL.eoool" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;e&#x2F;EOOOL....</a><p><a href="https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;EOOOL" rel="nofollow">https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;EOOOL</a>
gagzillaalmost 9 years ago
The TrumpScript is awesome :)<p>Lots of us are pointing out what&#x27;s missing, but I think there is at least two that doesn&#x27;t necessarily belong in a category of programming language- plain text and json. The latter one just says {&quot;hello&quot;:&quot;world&quot;} if you are curious.<p>There may be more but I haven&#x27;t looked through all of them.
stepanhrudaalmost 9 years ago
This would be awesome for undercover operations: <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;b&#x2F;beatnik.beatnik" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;b&#x2F;beatni...</a>
lagadualmost 9 years ago
I&#x27;m a bit sad that there&#x27;s no version written in BS [0]<p>[0] <a href="https:&#x2F;&#x2F;skillsmatter.com&#x2F;skillscasts&#x2F;6088-the-worst-programming-language-ever" rel="nofollow">https:&#x2F;&#x2F;skillsmatter.com&#x2F;skillscasts&#x2F;6088-the-worst-programm...</a>
Null-Setalmost 9 years ago
Needs a &gt;&lt;&gt; <a href="https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Fish" rel="nofollow">https:&#x2F;&#x2F;esolangs.org&#x2F;wiki&#x2F;Fish</a><p><pre><code> !v&quot;hello, world&quot;r! &gt;l?!;o </code></pre> I love 2d languages.
bradoralmost 9 years ago
Would it be possible to make something better than Hello World that would showcase even more of the universal standard features of programming languages?<p>Any ideas?<p>Maybe calculate the first 10 primes and output the result? Something like that...
评论 #11737154 未加载
评论 #11737171 未加载
Raphmediaalmost 9 years ago
Somebody should add Taxi, <a href="https:&#x2F;&#x2F;bigzaphod.github.io&#x2F;Taxi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bigzaphod.github.io&#x2F;Taxi&#x2F;</a>
0x54MUR41almost 9 years ago
So, the high level programming language will produce less lines than low level programming language (Assembly takes 35% portions of the repository).
评论 #11739747 未加载
ameliusalmost 9 years ago
What I want is a transpiler from every language to every other language. It doesn&#x27;t need to result in performant code, just working code.
pmarreckalmost 9 years ago
I kinda wish Hello World was unit tested by default
guard-of-terraalmost 9 years ago
They could probably employ that executable tracing program to indeed make any compiler produce &quot;hello world&quot; eventually.
fiatjafalmost 9 years ago
See also: <a href="http:&#x2F;&#x2F;rosetta.alhur.es&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rosetta.alhur.es&#x2F;</a>
therealmarvalmost 9 years ago
my favorite <a href="https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;x&#x2F;xslt.xslt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;leachim6&#x2F;hello-world&#x2F;blob&#x2F;master&#x2F;x&#x2F;xslt.x...</a>
gtycombalmost 9 years ago
Is PLM missing? I used to program in PLM before C became popular for firmware coding.
anthkalmost 9 years ago
The ZX Spectrum ASM is ubereasy if you know a very little of Z80 ASM :)
isedalmost 9 years ago
I do not see an entry for sed. Is it an editor or a language?
cruxalmost 9 years ago
What&#x27;s Novice? It&#x27;s extremely difficult to google.
评论 #11738925 未加载
Kristine1975almost 9 years ago
Lacks Inform: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Inform" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Inform</a><p><pre><code> [ Main; print &quot;Hello World^&quot;; ];</code></pre>
评论 #11739168 未加载
akerroalmost 9 years ago
Hmmm... there is react.js, but there is no Spring.
epmatswalmost 9 years ago
Wow, it actually had MUMPS. I&#x27;m impressed.
miguelrochefortalmost 9 years ago
It&#x27;s lacking Elm.
prof_hobartalmost 9 years ago
&quot;Every&quot; is a big claim.<p>No Pick&#x2F;Basic[1] for a start, or Sculptor[2], as just two of the languages I&#x27;ve used in the past that haven&#x27;t made it onto the list.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Pick_operating_system" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Pick_operating_system</a> [2] <a href="http:&#x2F;&#x2F;www.sculptor.co.uk&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.sculptor.co.uk&#x2F;</a>
评论 #11737133 未加载