in reply to Re: Perlmonks MUD
in thread Perlmonks MOO

Most MOOs actually used some variant of LISP, sufficiently de-functionalized for general consumption. Perl is a very poor language for MOOs. Much better is write the server in Perl and provide a LISP-like language for the general programming.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re: Re: Re: Perlmonks MUD
by jepri (Parson) on May 27, 2004 at 18:08 UTC
    Much better is write the server in Perl and provide a LISP-like language for the general programming.

    Very true, but at the same time massively disappointing. Having to program OO lisp at the perlmonks MOO takes away 99% of the attraction for me.

    Especially since people will then start asking LISP questions at the monastary and there'll be big flamewars about why the questions shouldn't be asked even though the MOO is part of PM.

    Plus it leads to the inevitable question "why doesn't someone write the entire MOO in LISP"

    ____________________
    Jeremy
    I didn't believe in evil until I dated it.

        *grin*

        I don't mind a bit of LISP. I'm learning it now and it is an odd, but enjoyable experience.

        It's that if we had a 'perl MOO', it would be nice if the language used by the players was perl. If it were possible to write the server in LISP, but have perl as the object language, I'd be happy.

        I'm not holding my breath on that one though.

        Personally I wouldn't mind seeing some LISP questions in the monastary. It might challenge and wow people and encourage them to go to another level in their coding.

        Of course, with parrot, perl will have the potential to be very lisp-like. I can't wait.

        ____________________
        Jeremy
        I didn't believe in evil until I dated it.

Re: Re: Re: Perlmonks MUD
by Trag (Monk) on May 27, 2004 at 18:04 UTC
    Perhaps, but think of it as an introduction to Perl for newbies. Learn by playing! I think it would be neat if you wanted to say place a 'security camera' in a room to watch people there, you would need to figure out how to code it yourself. You could also write your own special abilities, (I've been somewhat inspired by The Matrix Online (Check out the features page, I think it would be neat to implement something like that).

    I'm game to help if anyone else is, but I don't know where to start.


    our @item = reverse (114, 101, 107, 99, 97, 104, 32, 108, 114, 101, 80, 32, 114, 101, 104, 116, 111, 110, 97, 32, 116, 115, 117, + 74); local $my = reverse ")meti@\ ,rhc (pam tnirp";eval $my;
      If everyone one in the world were positive thinking and nice, it would suffice to grab a perl telnet server (or web server) and simply eval every command sent to it. In no time, people will have built a complete MOO.

      In practise, you'll have your server reformatted in no time flat.

      So you go back, and try to sanitise people's commands, or switch them to a language like lisp or BASIC. You provide a backend object database, perhaps implemented with hashes (each key is an attribute for an object), overlay a security system for authenticated users (so they can't edit each other's hashes without permission).

      It's one of the best examples of Model-View-Controller programming in the world.

      I have a friend currently running up a MOO on our server. If you would like, I'll introduce the two of you. I'm sure he'd be interested in talking MOOcode for a bit.

      ____________________
      Jeremy
      I didn't believe in evil until I dated it.

        Sure, Thanks


        our @item = reverse (114, 101, 107, 99, 97, 104, 32, 108, 114, 101, 80, 32, 114, 101, 104, 116, 111, 110, 97, 32, 116, 115, 117, + 74); local $my = reverse ")meti@\ ,rhc (pam tnirp";eval $my;
Re: Re: Re: Perlmonks MUD
by Kageneko (Scribe) on May 28, 2004 at 16:02 UTC
    Most of the MOOs I've been on (and am still on...) use this bizarre OO MOO-C language that both terrifies and fascinates me. MUSHes have the not-quite-functional-but-damn-close softcode that I both love and hate, depending on the time of day. Of the two, I find MUSHes easier to code, but MOOs are just so much cooler. I used to do MUSH coding (various WoD mushes, mostly) and have submitted some patches to the TinyMUSH team.

      Take a look at mooix. Completely OO and you can code in whatever language you want.