from Hacker News

Hello world in every computer language

by maydemir on 5/22/22, 4:00 PM with 44 comments

  • by petee on 5/22/22, 5:46 PM

    Neat but Rosetta Code has been doing this for a while, would have been nice to see more people contributing in once spot

    http://www.rosettacode.org/wiki/Hello_world/Text

  • by anandchowdhary on 5/22/22, 6:17 PM

    This repository seems to be a clone of the actual repository: https://github.com/leachim6/hello-world

    dang, maybe we can update the link?

  • by Comevius on 5/22/22, 4:57 PM

    In Zig print formatting is comptime (it is evaluated at compile-time). I find this so neat. You can also achieve comptime monomorphization (generics) and polymorphism (interfaces) this way. No macros or templates needed.

    https://github.com/xbinner18P/leachim6S/blob/main/z/Zig.zig

  • by OliverJones on 5/22/22, 6:36 PM

    And, just for good measure, here's Frank da Cruz's multilanguage Unicode compilation in many languages of the phrase "I can eat glass. It doesn't harm me."

    https://kermitproject.org/utf8.html

    Handy if you want to make sure stuff works RTL .

    אני יכול לאכול זכוכית וזה לא מזיק לי

    But don't try it at home :-).

  • by dark-star on 5/22/22, 7:05 PM

    There is a site called "99 bottles of beer" or something, which has programs in every language that printed the lyrics to that "song".

    I prefer that one to "hello world", because the programs were non-trivial (they had loops, for instance, and an if-then clause)

    Hello World is just a bit too trivial to get any meaningful information from any language

  • by smitty1e on 5/22/22, 5:34 PM

    'Every' becomes a challenge.

    99 bottles claims 1500 languages => https://www.99-bottles-of-beer.net/

  • by bmitc on 5/22/22, 6:37 PM

    Is there really a point to hello world programs? For most languages it consists of basically just typing out the string "hello world".
  • by math-dev on 5/22/22, 6:08 PM

    Change Common Lisp to (print “Hello, World!”) - no need to make things complicated ;)
  • by Moru on 5/22/22, 6:39 PM

    I feel old. I did five searches on languages and none of them exists in the list.
  • by djvdq on 5/22/22, 6:02 PM

    Not "in languages" but "languages and frameworks", e.g. if I counted properly Python is used in 11 different ways
  • by prezjordan on 5/22/22, 11:04 PM

    Shameless plug for a clone of this I did with FizzBuzz, except submitting a solution requires submitting a Dockerfile so that we can actually run it: https://github.com/jdan/fizzbuzz-polyglot
  • by avgcorrection on 5/22/22, 8:32 PM

    Hello World is useful for finding out that a program is running by having it produce some effect. All these Hello World things are cute and all (like criticizing Java for having a long program simply to print the two words) but it’s become a tired fetish at this point.
  • by chaosprint on 5/22/22, 7:06 PM

    https://glicol.org/tour#hellowolrd

    Hello world from a music programming language.

  • by danielandrews43 on 5/22/22, 6:13 PM

    I wrote a Coffee table book on this! https://hellobook.io/
  • by can16358p on 5/22/22, 5:55 PM

    Thanks to the repo, I've just discovered Mostawesomeprogramminglanguage.
  • by hp48fan on 5/22/22, 11:22 PM

    My favorite is missing! HP's User RPL and System RPL are missing!
  • by anthk on 5/22/22, 11:14 PM

    Inform has i6 and i7 variants.
  • by Drblessing on 5/22/22, 8:30 PM

    Jumped right to Brainfuck
  • by d1stc on 5/22/22, 8:08 PM

    the most interesting is b/BIT.bit