"Hello, world!" in 114 programming languages.
November 26, 2001 10:48 AM   Subscribe

"Hello, world!" in 114 programming languages. Whenever picking up a new language, it's customary to write a program that prints "Hello, world!" to see how one goes about writing anything in said language. Now you never need be curious about what language to write your custom-designed CMS in.
posted by moz (19 comments total)

 
ALGOL, a very old language, i can now say is quite wonky indeed. all the keywords are quoted strings!
posted by moz at 10:50 AM on November 26, 2001


Or if you are an angsty programmer you can subsitute the lesser known "goodbye, world" program.
posted by adamv at 10:52 AM on November 26, 2001


(oh, god, i'm stupid. i meant to say that this link is courtesy of fozbaca.)
posted by moz at 10:52 AM on November 26, 2001


Aw, man, they don't even have Malbolge on the list!
posted by youhas at 10:57 AM on November 26, 2001


I feel this thread is going to get real slashdotty real soon. Let me begin. The BASIC version is four characters too long. It should be:

?"Hello World"

Very cool link.
posted by eyeballkid at 11:02 AM on November 26, 2001


there's a programming language for orangutans called Ook.
posted by moz at 11:09 AM on November 26, 2001


there's a programming language for orangutans called Ook.

It's just a matter of time before they change the name to Jovo and try and beat Microsoft with it....
posted by mattpfeff at 11:39 AM on November 26, 2001


I always preferred "Jello world." Just imagine, a world of Jello.
posted by panopticon at 11:47 AM on November 26, 2001


I very much like the 99 Bottles of Beer version of this same sort of exercise.
posted by y10k at 11:58 AM on November 26, 2001


Please note: When learning a new programming language, please use »Hi Fan!« or »Welcome, Me!«, but try to avoid the »Hello World!« example. My system is heavy loaded by all those gotohell processes to destroy all those worlds which are accidently created each day by those newbies trying obscure programming languages.
posted by signal at 1:02 PM on November 26, 2001


Yes a lot of these are needlessly long for the sake of being interestingly complex-looking.
posted by glenwood at 1:10 PM on November 26, 2001


Or, perhaps, "Hello Biafra!"
posted by trioperative at 1:13 PM on November 26, 2001


My favorite (along the "interestingly complex-looking" lines: Brainf*ck. No, really. More on Brainf*ck.
posted by gleuschk at 1:32 PM on November 26, 2001


Brainfuck is odd, yes, but still makes a certain amount of simple sense. Befunge on the other hand doesn't differentiate between code and data, and can be written dimensionally, so that the source code can overlap itself and reuse characters, etc. Might help you understand why the Befunge examples in the linked page look like they do.
The Cat's Eye page I linked also has examples of many other seriously twisted languages. Check out TurkeyBomb!
posted by Su at 3:02 PM on November 26, 2001


A guy I work with has actually written code in befunge and has seriously considered a port of befunge to the lego mindstorms. I knew Chris was a twisted genius before that little revelation but that sealed the deal.
posted by louie at 8:32 PM on November 26, 2001


Hey youhas, I wrote the only existing malbolge hello world (OK, actually I wrote the program that wrote it, and the only version I've got left actually says "HEllO WORld", but that's good enough, isn't it?).
posted by andrew cooke at 12:20 AM on November 27, 2001


I've seen (and linked) your efforts before, andrew cooke; that was quite the impressive odyssey you undertook to get a simple "Hello World" up and running. I give you many a virtual tip of my hat.

Ah, but 'tis not the only existing "Hello World" in Malbolge anymore, as I wrote one of my own last summer! (OK, I too only wrote the program that wrote the program. OTOH, I managed to make things deterministic enough that I could generate other strings at will - the same link offers up programs that say "Malbolge sucks", the text of the Gettysburg Address, and the like. Keen, eh?)
posted by youhas at 1:29 AM on November 27, 2001


more hello world stuff:

here

relatively amusing i suppose....
posted by Spoon at 1:49 AM on November 27, 2001


Spoon, that was a hoot! MasterP's code reminded me of EJBs.
posted by HTuttle at 2:36 AM on November 27, 2001


« Older Narco corridos ("drug ballads")...  |  The most eagerly awaited movie... Newer »


This thread has been archived and is closed to new comments