1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] about MOO -->
<!--X-From-R13: Rna Dbbg <qneNgurxrrc.bet> -->
<!--X-Date: Sun, 21 Nov 1999 14:18:03 &#45;0800 -->
<!--X-Message-Id: 19991121211255.48676.qmail@phantasm.thekeep.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199911201824.KAA31012@portland.puremagic.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] about MOO</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:dar@thekeep.org">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00424.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00433.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00428.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00481.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00435">Author</A>
&nbsp;|&nbsp;<A HREF="#00435">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00435">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] about MOO</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] about MOO </LI>
<LI><em>From</em>: Dan Root &lt;<A HREF="mailto:dar#thekeep,org">dar#thekeep,org</A>&gt;</LI>
<LI><em>Date</em>: Sun, 21 Nov 1999 16:12:55 -0500</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
In message &lt;<A HREF="msg00428.html">199911201824.KAA31012#portland,puremagic.com</A>&gt;, bruce#puremagic,com 
writes:
&gt;Dan Root wrote:
&gt;&gt; This is quite true.  However, the question was opinions on MOO (in
&gt;&gt; particular, LambdaMOO) and why it would or wouldn't make a good basis for a
&gt;&gt; game if one wrote a core that was biases towards more goal-oriented game
&gt;&gt; play.  As it stands, stock LambdaMOO keeps stuff in memory, which can be
&gt;&gt; rather expensive if you assume the traditional style of 'one room, item or
&gt;&gt; mob to one MOO object'.  An object in MOO has a lot more overhead in terms
&gt;&gt; of data items stored for things such as owner and permissions than in a
&gt;&gt; server like Diku.  And even with inheritence for the all the private data,
&gt;&gt; that's a lot of space, memory-wise.  I've heard rumors of core systems that
&gt;&gt; were written to keep large amounts of 'game items' in a single MOO object,
&gt;&gt; but was never able to lay hands on one.
&gt;
&gt;(About objects that keep a lot of objects in a single object) Why should
&gt;you compromise the design of your system to make up for a failing in the
&gt;base architecture?  Why not just use something with a better base
&gt;architecture?

Indeed, but as you mention below, one of MOO's strengths is that it's got a
rather large base of people who know the internal coding language and have
a fair grasp of how the system works overall.

&gt;As for nothing being written in MOO that would be impacted by switching to
&gt;a disk-based mechanism, I think that would probably prove to be incorrect
&gt;if you were aiming for a high-performing system.  Keeping trace of the
&gt;size of your cache (in your head as you design), and how the object access
&gt;patterns you are creating will load or unload large amounts of objects is
&gt;importnat to do.  If you have a system that requires a large number of
&gt;objects to be loaded to read some properties from them, or to execute a
&gt;method on them, you'll be creating a lot of disk I/O and will slow the
&gt;system down.  Imagine getting a index of mail messages in a mail folder.

CoolMUD's database does this, and seems to do a pretty decent job.  That
said, more than something like a mail index, the place you'll lose most
heavily is on MOO's inheritence.  Most game cores (Lambda and JHM both
suffer from this) have a fairly deep and sometimes rather broad object
inheritance trees.  It's possible to have a siginificant portion of your
cache filled with nothing but items that are inherited in your active
objects.  

OTOH, it's certainly possible to cache quite a bit and still see a
significant reduction in active memory usage.  LambdaMOO was using upwards
of 256 megs of memory at one point, and I'm sure that number isn't going
down.  If even 1/10th of your objects were simultaneously active, and that
many more needed for the inheritence of the active objects, that's still
reducing your active memory image by nearly 4/5ths.

And that doesn't even begin to deal with things like storing and caching
things at a per-attribute rather than per-object level, which may or may
not increase performance.

&gt;&gt; I would love to see someone take MOO and add a nicer database layer to it.
&gt;&gt; Then all you'd have to add in would be CoolMUD's dictionary/tables, object
&gt;&gt; based security and YO protocol, and you'd have a very nice server overall.
&gt;&gt; (An alternative method to get the same effect would be to add MOO's
&gt;&gt; persistent processes and 7 years worth of language syntatic sugar to
&gt;&gt; CoolMUD.  Both alternatives produce approximately the same result).
&gt;
&gt;Or, you could start with Cold and add persistent processes and be done.
&gt;YO-style stuff can already be written in Cold inside the DB rather than in
&gt;the driver.  That said, I'm moving on from Cold to something newer.

The downside to this is removal of the MOO-based language that Lambda and
CoolMUD share (more or less).  ColdC is nice, but by virtue of being a lot
more powerful and expressive, somewhat harder to use.  And again, you lose
your audience of MOO-capabale programmers.

My first reaction to ColdC was to see syntax constructs like 
 	(| [(&gt; s &lt;), 'si] |)
and think, "What sort of emoticon is that, a demented clown wearing a
balancing a traffic cone on his head?". :)   Not precisely what one would
call a friendly language to a fledgling coder.

Cool and MOO's languages are not quite identical, but close enough that
anyone using one can use the other, more or less.  The primary differences
are around the features of the languages.  Cool has tables/dictionaries,
which MOO doesn't, so MOO makes up by having some more powerful list
manipulation features instead, as an example.

&gt;MOO's advantage as I see it is in the number of people who have heard of
&gt;it and can work with it, and the presence of a really cool DB in the Jay's
&gt;House stuff.  CoolMUD has a nice driver, but no one who has used it and no
&gt;available DBs that I've ever heard of.  Cold is fast and has a fairly good
&gt;driver, but while the DB is large and complete, fails to be consistent in
&gt;a number of areas internally.

Lacking a good core DB is definitely a problem for many game drivers out
there, Cool being no exception.

Heck, UberMUD would still be a decent system with the addition of a nice
core DB.

	-DaR
-- 
/* Dan Root   -   XTEA cipher */  static unsigned D=0x9E3779B9,l=0xC6EF3720,s;
/* t=64bit text, k=128bit key */  #define m(x,y) ((x&lt;&lt;4^x&gt;&gt;5)+(x^s)+k[s&gt;&gt;y&amp;3])
void enc(int*t,int*k){for(s=0;s!=+l;){t[0]+=m(t[1],0);s+=D;t[1]+=m(t[0],11);}}
void dec(int*t,int*k){for(s=-l;s!=0;){t[1]-=m(t[0],11);s-=D;t[0]-=m(t[1],0);}}



_______________________________________________
MUD-Dev maillist  -  MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00520" HREF="msg00520.html">Re: [MUD-Dev] about MOO</A></strong>
<ul compact><li><em>From:</em> "Jay Carlson" &lt;nop@mitre.org&gt;</li></ul>
<li><strong><A NAME="00481" HREF="msg00481.html">Re: [MUD-Dev] about MOO</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw@cp.net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00428" HREF="msg00428.html">Re: [MUD-Dev] about MOO</A></STRONG>
<UL><LI><EM>From:</EM> bruce@puremagic.com</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00424.html">[MUD-Dev] Public Domain Client</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00433.html">Re: [MUD-Dev] Depth of realism</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00428.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00481.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00435"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00435"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] about MOO</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00405" HREF="msg00405.html">Re: [MUD-Dev] about MOO</A></strong>, 
Dan Root <a href="mailto:dar@thekeep.org">dar@thekeep.org</a>, Fri 19 Nov 1999, 20:30 GMT
<UL>
<LI><strong><A NAME="00414" HREF="msg00414.html">Re: [MUD-Dev] about MOO</A></strong>, 
Joey Hess <a href="mailto:joey@kitenet.net">joey@kitenet.net</a>, Sat 20 Nov 1999, 00:39 GMT
<UL>
<LI><strong><A NAME="00420" HREF="msg00420.html">Re: [MUD-Dev] about MOO</A></strong>, 
Dan Root <a href="mailto:dar@thekeep.org">dar@thekeep.org</a>, Sat 20 Nov 1999, 01:43 GMT
<UL>
<LI><strong><A NAME="00428" HREF="msg00428.html">Re: [MUD-Dev] about MOO</A></strong>, 
bruce <a href="mailto:bruce@puremagic.com">bruce@puremagic.com</a>, Sun 21 Nov 1999, 01:14 GMT
<UL>
<LI><strong><A NAME="00435" HREF="msg00435.html">Re: [MUD-Dev] about MOO</A></strong>, 
Dan Root <a href="mailto:dar@thekeep.org">dar@thekeep.org</a>, Sun 21 Nov 1999, 22:18 GMT
<UL>
<LI><strong><A NAME="00481" HREF="msg00481.html">Re: [MUD-Dev] about MOO</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Wed 24 Nov 1999, 19:26 GMT
</LI>
<LI><strong><A NAME="00520" HREF="msg00520.html">Re: [MUD-Dev] about MOO</A></strong>, 
Jay Carlson <a href="mailto:nop@mitre.org">nop@mitre.org</a>, Wed 01 Dec 1999, 02:16 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00478" HREF="msg00478.html">Re: [MUD-Dev] about MOO</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Wed 24 Nov 1999, 18:51 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00426" HREF="msg00426.html">[MUD-Dev] Re: about MOO</A></strong>, 
Gevan <a href="mailto:shanos@es.co.nz">shanos@es.co.nz</a>, Sun 21 Nov 1999, 01:14 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>