Go Back   Science Fiction Fantasy Chronicles: forums > General > Technology

Technology Technology forums for all aspects of technology, hardware, software, computers, and more.

Reply
 
LinkBack Thread Tools Rate Thread
Old 29th April 2009, 11:05 PM   #1 (permalink)
Press "X" to Admire Hat.
 
Lenny's Avatar
 
Join Date: Jan 2007
Location: [I am a spambot, selecting the default option - ban me!]
Posts: 3,281
Blog Entries: 3
And one more for you code...CATZ.

Can anyone tell me what this does:

Code:
HAI
CAN HAS STDIO?
VISIBLE "HAI WURLD!"
KTHXBYE
How about this:

Code:
BOTH SAEM ANIMAL AN "CAT"
O RLY?
  YA RLY, VISIBLE "J00 HAV A CAT"
  MEBBE BOTH SAEM ANIMAL AN "MAUS"
    VISIBLE "NOM NOM NOM. I EATED IT."
OIC
No?

Exhibit A is (boviously) "Hello World!" in this different language, and Exhibit B is an example of an IF conditional (O RLY? YA RLY, NO WAI, MEBBE, OIC == if, true, false, elseif, endif.

The language is LOLCODE - a higher level language based extremely loosely on C/C++, written in LOL, and in ALL CAPS (apart from variables... though they can be a mixture of any case), because CAPS LOCK IS CRUISE CONTROL FOR COOL.

http://lolcode.com/specs/1.2

LOLCODE, which is obviously inspired by the LOLCAT meme, has been around for a couple of years, and is currently in the finalisation stages of v1.3 (has been for a couple of years, actually - the forum is still seeing lots of discussions about various things to implement, like variable scopes using I and ME, arrays with BUKKITS, and various different thises and thats).

It just goes to show that you can turn anything into a workable programming language (part of my course next year involves creating my own compilers! I can't wait. )! I'm half-tempted to try and define various data structures in LOLCODE when I've got some spare time (I've been spending the last few days building lists and trees in Java because I realised that, for a CS student, I had a terrifying lack of code examples! Time to build up my library of code, methinks!).
Lenny is offline   Reply With Quote
Old 30th April 2009, 09:38 PM   #2 (permalink)
www.sjswebdesign.co.uk
 
Leisha's Avatar
 
Join Date: Feb 2007
Location: Dundee City
Posts: 2,783
Blog Entries: 2
Re: And one more for you code...CATZ.

Quote:
O RLY?
YA RLY, VISIBLE "J00 HAV A CAT"
MEBBE BOTH SAEM ANIMAL AN "MAUS"
VISIBLE "NOM NOM NOM. I EATED IT."
OIC
LOL! LOL! LOL!

OMG, absolutely brilliant! I never knew this existed. I wonder if anyone's made an Actionscript version? I wish Adobe would.
Leisha is offline   Reply With Quote
Old 30th April 2009, 09:47 PM   #3 (permalink)
Bearly Believable
 
Ursa major's Avatar
 
Join Date: Aug 2007
Location: UK: ENGLAND:
Posts: 12,047
Re: And one more for you code...CATZ.

I'm guessing that LOLCODE has support for the creation of cookies....
Ursa major is offline   Reply With Quote
Old 30th April 2009, 10:00 PM   #4 (permalink)
www.sjswebdesign.co.uk
 
Leisha's Avatar
 
Join Date: Feb 2007
Location: Dundee City
Posts: 2,783
Blog Entries: 2
Re: And one more for you code...CATZ.

Cookies or cat biscuits? Mmmmmm.... cat biscuits. Not as nice as white chocolate hamster drops, though.....


Hello, Ursa! 'Tis wonderful to see you again. When you go away for a while, you realise who are the most missable. You're one of them, as are a fair few of you.

This place is too nice!

Leisha is offline   Reply With Quote
Old 30th November 2009, 06:34 PM   #5 (permalink)
Press "X" to Admire Hat.
 
Lenny's Avatar
 
Join Date: Jan 2007
Location: [I am a spambot, selecting the default option - ban me!]
Posts: 3,281
Blog Entries: 3
Re: And one more for you code...CATZ.

As a follow up (though I'm a few months late to the party), lolSQL:

Code:
HAI!
I'M IN UR `table`
SELECTIN UR `column` AZ `label`
I CAN HAZ `column` LIEK `value`
GIMMEH 5
MAKES ORDER `column` GOAS DOWN
KTHNXBYE
Code:
HAI!
OH NOES I HAZ LOST `table`
KTHNXBYE
Code:
HAI!
I IZ MAKIN U `table`
KTHNXBYE
Exhibit A is a query, getting columns from tables with a value similar to 'value', and putting the results into descending order.

Exhibit B is DROP table, and Exhibit C is CREATE table.

I can haz lolSQL? – Aaron Bassett

We did parsers quite recently - if I get time over Christmas, I might try my hand at it.
Lenny is offline   Reply With Quote
Old 30th November 2009, 09:10 PM   #6 (permalink)
Bearly Believable
 
Ursa major's Avatar
 
Join Date: Aug 2007
Location: UK: ENGLAND:
Posts: 12,047
Re: And one more for you code...CATZ.

...in order to prove that you have a parser's nose...










...and not a complete turkey.
Ursa major is offline   Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2 ©2011, Crawlability, Inc.