Friday Fun: LOLCODE! on the DLR

The LOLCAT is mildly amusing, but what I find really amazing is that someone actually took the time to write an implementation LOLCODE for the DLR

Imagine that, instead of writing boring old C# code, you wrote something like this:

HAI
CAN HAS STDIO?
I HAS A FISH ITZ "Yummy"
VISIBLE FISH
VISIBLE "HAI WORLD!"

I HAS A FIB
I HAS A A ITZ 1
I HAS A B ITZ 0

GIMMEH FIB

IM IN YR LOOP
  VISIBLE B

  IZ FIB SMALR 1?
  YARLY
    GTFO
  NOWAI
    VISIBLE "NOWAI"
  KTHX

  I HAS A TEMP ITZ A UP B
  LOL A R B
  LOL B R TEMP

  NERFZ FIB!!
KTHX

KTHXBYE

Incredible. As John said, though, if nothing else it's a great example of how to implement a simple language on the DLR.

Published Friday, November 23, 2007 3:07 PM by Tim Marman

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)