LOLCODE! on DLR

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!
ZOMG, there's a mistake in the language spec! KTHXBYE -> KTHXBAI :)
Posted by: Omer van Kloeten | November 09, 2007 at 10:04 AM
[chk oughta b > 1 kywrd splng 4 KTHXBAI]
(automated test assertion)
Posted by: Tyler Jensen | November 09, 2007 at 02:56 PM
I ... well ... um. That's ... um.
Wow.
I love it.
Posted by: Robert | November 09, 2007 at 08:33 PM
@{Omer,Tyler}: WE FIXIT IN SRCES
Posted by: John Lam | November 11, 2007 at 09:38 AM
ROFLCOPTER
IM IN YR CODE, EETIN UR STDIO!
KTHXBAI
Posted by: Ryan | November 12, 2007 at 10:55 AM
OMG this is so cute i love this photo.
Posted by: LEONA RILEY | December 08, 2007 at 10:02 AM
this is funi.
Posted by: megan | January 11, 2008 at 11:29 PM
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>
---------------------
Posted by: NewB | January 15, 2008 at 01:10 PM
Cool, a DLR implementation. I guess my lolcode.NET implementation is now officially a has-been. ;)
Posted by: Nick Johnson | January 25, 2008 at 06:31 AM