OH HAI, I CAN HAS TURING-COMPLETE?


Twisted, Genius, and Cute, all in one language.

LOLCODE. A programming language for lolcats.

Some examples follow.

First… Well, what else could possibly be first?


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

And here’s an if/then construct with some I/O action:


HAI
CAN HAS STDIO?
I HAS A VAR
GIMMEH VAR
IZ VAR BIGGER THAN 10?
YARLY
BTW this is true
VISIBLE "BIG NUMBER!
NOWAI
BTW this is false
VISIBLE "LITTLE NUMBER!"
KTHX
KTHXBYE

There is a current spec available here. And, may the Sweet Lord Jesus help us all, there are even implementations.

And yes. It’s turing-complete. Which means that any program you can write in any programming language – such as spreadsheets, word-processing programs, games, or a program to provide firing solutions for nuclear missiles – can be written in LOLCODE.

Gives me a warm fuzzy feeling inside.


4 responses to “OH HAI, I CAN HAS TURING-COMPLETE?”

Leave a Reply

Your email address will not be published. Required fields are marked *