« IronRuby Talks | Main | IronRuby in Visual Studio »

November 09, 2007

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!

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d834fc885d53ef00e54f922a848834

Listed below are links to weblogs that reference LOLCODE! on DLR:

Comments

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

[chk oughta b > 1 kywrd splng 4 KTHXBAI]

(automated test assertion)

I ... well ... um. That's ... um.

Wow.

I love it.

@{Omer,Tyler}: WE FIXIT IN SRCES

ROFLCOPTER

IM IN YR CODE, EETIN UR STDIO!

KTHXBAI

OMG this is so cute i love this photo.

this is funi.

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

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

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Photos

  • www.flickr.com
    This is a Flickr badge showing public photos from John Lam. Make your own badge here.

May 2009

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Blog powered by TypePad