PeriodicPreoccupationsProjectsPicturesPersonPing

Recent musings

lolcode

Inspired by David McRaney, Anil Dash, and my dear friend Anne, I started thinking of kitty pidgin and its simple grammar, the idea struck me, what else deals with simple grammars?

I bring to you LOLCODE, an as-yet unspecified and unimplemented programming language.

The first step is always Hello World:

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE

Oh. That was quite easy. The next thing people learn to do is count to ten:

HAI
I HAS A VAR
IM IN YR LOOP
	UP VAR!!1
	VISIBLE VAR
	IZ VAR BIGGER THAN 10? KTHXBYE
IM OUTTA YR LOOP
KTHXBYE

I suppose you could count the even numbers by saying "UP VAR!!2".

Error checking on file open (and then conditionally printing the file) would be the next thing to implement:

HAI
CAN HAS STDIO?
PLZ OPEN FILE "LOLCATS.TXT"?
	AWSUM THX
		VISIBLE FILE
	O NOES
		INVISIBLE "ERROR!"
KTHXBYE

Have any other contributions? Keep on the lookout for lolcode.com....

[Update: That was the soft launch. Did you miss it?]

Related Entries:
About the Dissociated Mixes
Twitstream
Launchpad, Github, Bitbucket
Writing on remix
LOLCODE and ROFLCon Remembrance
Comments (13)  Permalink

Comments

Geoff @ 25.05.2007 22:14 London/GMT
Awesome! Can't wait for the first interpreter. Then you'll need to get a web framework.

KTHXBYE
David Edwards @ 29.05.2007 05:56 London/GMT
I approve of this.
Ghost @ 29.05.2007 08:53 London/GMT
This, sir, is fucking epic.

That is all.
Mr. C. Mongler @ 29.05.2007 12:15 London/GMT
Relevant to my interests.
cloak @ 29.05.2007 15:55 London/GMT
fark me lolcode is frikken brilliant! also cant wait for first interpreter! w00tz im in ur commentz.. postin shizz
David @ 29.05.2007 19:46 London/GMT
It sure is doable as a preprocessor layer on top of another language (developing a compiler for a parody language is overkill). If anyone's got about a week's worth of free time on their hands they could churn one out for GCC or MSBuild.

But there needs to be some kind of formal specification first though.
Vasili Sviridov @ 29.05.2007 21:52 London/GMT
How about adding exception handling

Gotta use that DO NOT WANT!!! somewhere!

and increments can be done with MOAR
Jason Hoffman @ 29.05.2007 21:59 London/GMT
I'm looking forward to the byte-code compiler and/or interpreter.
Charles @ 30.05.2007 00:59 London/GMT
Your sidebar, what did you use for that, I'm wanting to use that for a project of my own.
Tetraboy @ 30.05.2007 07:16 London/GMT
I think I may have the first webpage running LOL code. LOL source and PHP source available.

http://www.tetraboy.com/lolcode/
Michelle @ 30.05.2007 19:17 London/GMT
I am serious programmer. This is serious 31337.
she @ 06.06.2007 18:09 London/GMT
GIMME VAR is great for user input

There is a little dispute over
comments...
Personally not sure about BTW
meant for a comment

BTW CAN YOU PLZ COLLECT LOLCODE LINX?
KTHXBYE!
bill cook @ 11.06.2007 13:41 London/GMT
This is absolutely brilliant. Genius.
No new comments allowed (anymore) on this post.