LOLCODE! on DLR

loldogs and funnyƂ pictures
moar funny pictures

If happiness == productivity, imagine how productive you’ll be when you’re giggling your *ss off writing 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
or this (note how we have extended the language :) 
HAI
CAN HAS System?
I HAS A VAR ITZ "Hello"
I HAS A HT ITZ NJU Hashtable ON Collections ON System
NJU ArrayList ON Collections ON System WIT 10
I HAS A ArrayList ITZ NJU ArrayList ON Collections ON System WIT 10
VISIBLE Capacity ON ArrayList
COL Add ON HT WIT 10 AN 10
COL get_Item ON HT WIT 10
COL Concat ON String ON System WIT "Hello " AN "TechEd"
KTHXBYE

Props to the mad l337 hax0r skillz of Martin Maly who, on his plane ride to Spain, implemented LOLCODE on the DLR! Download the sources, and follow the instructions in the readme.txt and you’ll be hacking away in no time at all.

In all seriousness (if that’s possible when discussing LOLCODE), it’s a nice way of seeing how to implement a simple language on top of the DLR. Enjoy!

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

24 Responses to “LOLCODE! on DLR”

  1. LOLCODE on .NET DLR

    LOLCODE on .NET DLR

  2. ZOMG, there’s a mistake in the language spec! KTHXBYE -> KTHXBAI :)

  3. [chk oughta b > 1 kywrd splng 4 KTHXBAI]
    (automated test assertion)

  4. I … well … um. That’s … um.
    Wow.
    I love it.

  5. Patterns and Practices Summit Recap

    I spent a fun week in Redmond, in the Patterns and Practices Summit. Jim Newkirk is my new hero. He gave

  6. The Weekly Source Code 11 – LOLCode DLR Edition

  7. The Weekly Source Code 11 – LOLCode DLR Edition

  8. The Weekly Source Code 11 – LOLCode DLR Edition

    During my Friday Keynote at the PNPSummit I did a silly 30 minute PowerPoint that ended with some LOLCats

  9. @{Omer,Tyler}: WE FIXIT IN SRCES

  10. i can has silverlight

    In my presentation at Internetics about Silverlight, when I was talking about the DLR, I said that my intuition tells me that the moment I will read on programming.reddit that LOLCODE will work on the DLR is very close (see slide no. 11).
    Today, It hap…

  11. ROFLCOPTER
    IM IN YR CODE, EETIN UR STDIO!
    KTHXBAI

  12. Patterns and Practices Summit Recap

    I spent a fun week in Redmond, in the Patterns and Practices Summit. James Newkirk is my new hero. He

  13. 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

  14. 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

  15. OMG this is so cute i love this photo.

  16. this is funi.

  17. resgen.exe and csc.exe are in included in path but still getting this error.
    thank you for your time.
    - NewB
    ————————-
    C:\SVN\trunk>rake compile
    (in C:/SVN/trunk)
    Cannot find resgen.exe on system path.
    Cannot find csc.exe on system path.
    ***** Missing commands! You must have the .NET redist and the SDK
    ***** (for resgen.exe) installed. If you are synchronizing source
    ***** trees *inside* Microsoft, you must have both tfs.exe and
    ***** svn.exe on your path.
    C:\SVN\trunk>
    ———————

  18. Cool, a DLR implementation. I guess my lolcode.NET implementation is now officially a has-been. ;)

  19. LOL Code – IN YR SKEDYUL SKEDYULIN YR GAMEZ

    So I had my first chance to work with the DLR and LOLCODE today while for a lark I rewrote a solution

  20. LOL Code – IN YR SKEDYUL SKEDYULIN YR GAMEZ

    So I had my first chance to work with the DLR and LOLCODE today while for a lark I rewrote a solution

  21. LOL Code – IN YR SKEDYUL SKEDYULIN YR GAMEZ

    So I had my first chance to work with the DLR and LOLCODE today while for a lark I rewrote a solution

  22. LOL Code – IN YR SKEDYUL SKEDYULIN YR GAMEZ

    So I had my first chance to work with the DLR and LOLCODE today while for a lark I rewrote a solution

  23. LOLCode or Cats or Both

    There’s been some discussion in our team over the last week or so about the philosophies of Code

  24. LOLCode or Cats or Both

    There’s been some discussion in our team over the last week or so about the philosophies of “Code to