www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Interesting new language

reply Daniel Keep <daniel.keep.lists gmail.com> writes:
I just found a new programming language that I think has some really
interesting features we should look at; maybe we could incorporate some
to improve D!

http://lolcode.com/

	-- Daniel

-- 
int getRandomNumber()
{
    return 4; // chosen by fair dice roll.
              // guaranteed to be random.
}

http://xkcd.com/

v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D
i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP  http://hackerkey.com/
May 30 2007
next sibling parent reply janderson <askme me.com> writes:
Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!
 
 http://lolcode.com/
 
 	-- Daniel
 

The politest language ever. You literally have to beg the language to do stuff for u. This is great! AWSUM THX -Joel
May 30 2007
parent reply janderson <askme me.com> writes:
janderson wrote:
 Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!

 http://lolcode.com/

     -- Daniel

The politest language ever. You literally have to beg the language to do stuff for u. This is great! AWSUM THX -Joel

I just love this one http://lolcode.com/examples/little-number
May 30 2007
parent reply Daniel Keep <daniel.keep.lists gmail.com> writes:
janderson wrote:
 janderson wrote:
 Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!

 http://lolcode.com/

     -- Daniel

The politest language ever. You literally have to beg the language to do stuff for u. This is great! AWSUM THX -Joel

I just love this one http://lolcode.com/examples/little-number

D definitely needs this statement: http://lolcode.com/keywords/diaf :3 -- int getRandomNumber() { return 4; // chosen by fair dice roll. // guaranteed to be random. } http://xkcd.com/ v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/
May 30 2007
parent reply Robert Fraser <fraserofthenight gmail.com> writes:
And I was going to use this language as an argument for a well-crafted language
designed by a community effort....

Daniel Keep Wrote:

 
 
 janderson wrote:
 janderson wrote:
 Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!

 http://lolcode.com/

     -- Daniel

The politest language ever. You literally have to beg the language to do stuff for u. This is great! AWSUM THX -Joel

I just love this one http://lolcode.com/examples/little-number

D definitely needs this statement: http://lolcode.com/keywords/diaf :3 -- int getRandomNumber() { return 4; // chosen by fair dice roll. // guaranteed to be random. } http://xkcd.com/ v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/

May 31 2007
parent reply "Saaa" <empty needmail.com> writes:
 And I was going to use this language as an argument for a well-crafted 
 language designed by a community effort....

Why 'was'? Everybody here seems really excited about this language (me including). I think you should use it for exactly what you are purposing. btw. D could easily implement most of the suggestions made on the site.
May 31 2007
parent janderson <askme me.com> writes:
Saaa wrote:
 And I was going to use this language as an argument for a well-crafted 
 language designed by a community effort....

Why 'was'? Everybody here seems really excited about this language (me including). I think you should use it for exactly what you are purposing. btw. D could easily implement most of the suggestions made on the site.

Apart from the 1337 speak some of the ideas are ok. If you take it from the point of view that its a community driven joke, then its been well designed for that purpose. I imagine it wouldn't be that hard to use mixins to implement this language in D. I also imagine the community would be over the moon because its current implementations suck. -Joel
May 31 2007
prev sibling next sibling parent reply Bruno Medeiros <brunodomedeiros+spam com.gmail> writes:
Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!
 
 http://lolcode.com/
 
 	-- Daniel
 

LOOOOOOOOOOOOOOOOOOOOOOOOOL AWESOME. :D A friend of mine had mentioned this already, and I too was about to post it here in the NG, despite flagrantly OT. More seriously though, like anderson mentioned, it would be really cool (and maybe some good D publicity too) to implement a D lolcode compiler with mixin text macros. Anyone up to the challenge? (I don't have time for that unfortunately :S) -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Jun 01 2007
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Bruno Medeiros" <brunodomedeiros+spam com.gmail> wrote in message 
news:f3p16p$2bfd$1 digitalmars.com...
 LOOOOOOOOOOOOOOOOOOOOOOOOOL AWESOME. :D
 A friend of mine had mentioned this already, and I too was about to post 
 it here in the NG, despite flagrantly OT.
 More seriously though, like anderson mentioned, it would be really cool 
 (and maybe some good D publicity too) to implement a D lolcode compiler 
 with mixin text macros. Anyone up to the challenge? (I don't have time for 
 that unfortunately :S)

One problem with compiling the Lolcode into D code is that Lolcode seems to be dynamically typed. We'd have to implement a variadic type, and things get even trickier if Lolcode functions, when a syntax is decided for them, are first-class and with variable numbers of parameters. On the other hand, we already have the MiniD VM at our disposal, a dynamically-typed language VM with first-class functions with variable numbers of parameters ;) The only thing that would have to be changed would be the lexer and parser; virtually all the Lolcode constructs have analogues in MiniD code, and can be represented by a MiniD AST. This is all done at runtime, though. If we still want to use compile-time constructs for compiling the Lolcode source, it might be better to compile to MiniD source, and then compile that at run-time. Targeting the MiniD bytecode directly using compile-time code would probably be pretty awful :S
Jun 01 2007
prev sibling next sibling parent Alexander Panek <alexander.panek brainsware.org> writes:
On Thu, 31 May 2007 12:28:55 +1000
Daniel Keep <daniel.keep.lists gmail.com> wrote:

 
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate
 some to improve D!
 
 http://lolcode.com/
 
 	-- Daniel
 

AWSUM THX!
May 31 2007
prev sibling next sibling parent David Medlock <noone nowhere.com> writes:
Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!
 
 http://lolcode.com/
 
 	-- Daniel
 

Wasn't the chat console on Counterstrike programmed in this?
Jun 01 2007
prev sibling parent Bruno Medeiros <brunodomedeiros+spam com.gmail> writes:
Daniel Keep wrote:
 I just found a new programming language that I think has some really
 interesting features we should look at; maybe we could incorporate some
 to improve D!
 
 http://lolcode.com/
 
 	-- Daniel
 

http://icanhascheezburger.com/2007/06/01/lolcode/ The book is out, I'm ordering my copy now :P -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
Jun 02 2007