Friday, April 10, 2009

Hai World

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
Message from an alien planet? Maybe, if LOLcats were aliens with a rudimentary knowledge of structured programming. This is the classic Hello World program in LOLCODE, a programming language inspired by LOLspeak (the slang used in LOLcats). I've got a weakness for all things cute, and the minute I saw this tiny program I couldn't help myself. It's. Just. So. Cute. X333 Blatant disregard for grammar and horrendous misspellings aside.

For someone who's familiar with programming, LOLCODE isn't that hard to understand. It's actually almost like pseudocode, since it uses human-readable phrases as statements. So far, it seems like the language hasn't been developed much... It would be really interesting if it could be. I think I'd enjoy writing programs with it. ^^ (Can't imagine writing anything really big with it though...debugging would be hellish. XD)

Here's another LOLCODE program for my...I mean your enjoyment. :D It prints the contents of a text file to the screen.
HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
AWSUM THX
VISIBLE FILE
O NOES
INVISIBLE "ERROR!"
KTHXBYE
PS If esoteric programming languages like this one are your thing, you might wanna check out brainfuck and Whitespace; they're pretty amusing, to say the least. ^^

PPS I also liked this "translation" of Rizal's Mi Ultimo Adios into LOLspeak. ^^; Yeah, I know, too much cuteness. And there's probably something fundamentally wrong with referring to a country as a "cheezburger," and its national hero as a "kitteh". But anyway, I especially liked the third stanza, where the blood which Rizal offers to the Fatherland is referred to as "red splashies." Cuteness. XD

2 comments:

Sting Lacson said...

ok, honestly, i lost you at LOL. haha.

Emir Rio Abueva said...

real cute! Like it! Especially the PLZ OPEN FILE -> polite! :))