1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] about MOO -->
<!--X-From-R13: "Xnl Qneyfba" <abcNzvger.bet> -->
<!--X-Date: Tue, 30 Nov 1999 18:16:46 &#45;0800 -->
<!--X-Message-Id: 024e01bf3b6a$49269260$18095381@POINTSMAN -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 19991121211255.48676.qmail@phantasm.thekeep.org -->
<!--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:nop@mitre.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="msg00517.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00519.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00481.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00522.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00520">Author</A>
&nbsp;|&nbsp;<A HREF="#00520">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00520">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>: &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] about MOO </LI>
<LI><em>From</em>: "Jay Carlson" &lt;<A HREF="mailto:nop#mitre,org">nop#mitre,org</A>&gt;</LI>
<LI><em>Date</em>: Tue, 30 Nov 1999 14:37:06 -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>
Dan Root (dar#thekeep,org) writes:

&gt; In message &lt;<A HREF="msg00428.html">199911201824.KAA31012#portland,puremagic.com</A>&gt;,
&gt; bruce#puremagic,com writes:

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

Reasonable-sounding proposals for changes to the mainline MOO language often
founder on two design criteria:

1) They must not require beginners to learn complex things to produce
reasonably correct code.  Fancy security models, mutable values, and
programmer-visible multithreading fail this, even though they appeal to the
CS weenie in all of us (even the ones saying no!)

2) You Must Not Break LambdaCore.  Or JHCore.  A naive linecount of JHCore
and the C server source shows JHCore winning, 47kloc to 36k.  This is just
peanuts compared to LambdaMOO itself, at ~900kloc.  Sure, a lot of
LambdaMOO's code is just cut&amp;paste, but you'd still have to check it.  So
any semantic changes that require manual review of any decent fraction of
this code are just right out.  Oh, and I'm not counting any non-code object
components in this; if changes in the language required significant code
changes, there'd also be a lot of documentation to rewrite.  And then
there's LambdaMOO politics and accounting to consider as well---this has
significantly complicated lightweight object proposals.

These two rules have, for good or ill, promoted the development of a large
programmer base at many levels of expertise.

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

If you manage your cache in terms of the number of objects loaded into it,
you will lose badly.  Object sizes vary wildly.

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

On LambdaMOO, there are only ~2300 objects with children out of ~80k.  That
doesn't seem that excessive to me.

&gt; OTOH, it's certainly possible to cache quite a bit and still see a
&gt; significant reduction in active memory usage.  LambdaMOO was using upwards
&gt; of 256 megs of memory at one point, and I'm sure that number isn't going
&gt; down.

The LambdaMOO machine has 256M of physical memory.  The highwater process
size sits somewhere between 330M and 360M, depending on how fragmented it's
gotten.  The initial highwater mark is misleading, because there's some
bookkeeping done during db load that's free'd in one big chunk before the
server starts running.

Memory usage went down as of about a year ago due to some hacks Ben and I
did.  The size of the database, which is otherwise *roughly* correlated with
memory size, is held constant by various population control measures.

I don't have any good figures on what the working set is for a given time
interval.

&gt; If even 1/10th of your objects were simultaneously active, and that
&gt; many more needed for the inheritence of the active objects, that's still
&gt; reducing your active memory image by nearly 4/5ths.

But *which* 1/10th?  Again, object sizes vary wildly.

Anyway, all other things held constant, reducing LambdaMOO's memory size by
4/5 this way would be a *lose*.  The machine has a certain amount of
physical memory, and treating the 200M freed up this way as merely disk
buffers to thrash objects in and out of by expensive marshalling and
unmarshalling seems...unproductive.  The only win I can see is improvement
in locality, but you could lose that too if you weren't really careful.

I know, the point is not to hold all other things constant :-).  But once
that restriction is lifted, I'd just go get a ~$3k 512M dual P2/450 to
replace the SC1000 it's running on now and see what happens before spending
any more sleepless weekends working on performance.

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

The mainline MOO server is getting dictionaries merged in in the near
future.

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

LambdaCore and JHCore are the big reason I never switched over to Coldmud
development after being heavily involved with the initial design.

Jay




_______________________________________________
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="00522" HREF="msg00522.html">Re: [MUD-Dev] about MOO</A></strong>
<ul compact><li><em>From:</em> Dan Root &lt;dar@thekeep.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00435" HREF="msg00435.html">Re: [MUD-Dev] about MOO</A></STRONG>
<UL><LI><EM>From:</EM> Dan Root &lt;dar@thekeep.org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00517.html">Re: [MUD-Dev] Fair/Unfair? Scenarios (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00519.html">Re: [MUD-Dev] Language Independence Article.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00481.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00522.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00520"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00520"><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>
<ul compact>
<ul compact>
<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
<UL>
<LI><strong><A NAME="00522" HREF="msg00522.html">Re: [MUD-Dev] about MOO</A></strong>, 
Dan Root <a href="mailto:dar@thekeep.org">dar@thekeep.org</a>, Thu 02 Dec 1999, 02:05 GMT
</LI>
</UL>
</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>
<LI><strong><A NAME="00422" HREF="msg00422.html">Re: [MUD-Dev] about MOO</A></strong>, 
maddog <a href="mailto:maddog@best.com">maddog@best.com</a>, Sat 20 Nov 1999, 02:39 GMT
</LI>
</ul>
</ul>
</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>