1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] about MOO -->
<!--X-From-R13: Rna Dbbg <qneNgurxrrc.bet> -->
<!--X-Date: Wed, 01 Dec 1999 18:05:17 &#45;0800 -->
<!--X-Message-Id: 19991202014330.25812.qmail@phantasm.thekeep.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 024e01bf3b6a$49269260$18095381@POINTSMAN -->
<!--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="msg00521.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00523.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00520.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00478.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00522">Author</A>
&nbsp;|&nbsp;<A HREF="#00522">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00522">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>: Wed, 01 Dec 1999 20:43:30 -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="msg00520.html">024e01bf3b6a$49269260$18095381@POINTSMAN</A>&gt;, "Jay Carlson" writes:
&gt;&gt; Indeed, but as you mention below, one of MOO's strengths is that it's got
&gt;a
&gt;&gt; rather large base of people who know the internal coding language and have
&gt;&gt; a fair grasp of how the system works overall.
&gt;
&gt;Reasonable-sounding proposals for changes to the mainline MOO language often
&gt;founder on two design criteria:
&gt;
&gt;1) They must not require beginners to learn complex things to produce
&gt;reasonably correct code.  Fancy security models, mutable values, and
&gt;programmer-visible multithreading fail this, even though they appeal to the
&gt;CS weenie in all of us (even the ones saying no!)

Ick.  Agreed fully here.  One of the strengths of MOO and CoolMUD both is
the relative simplicity of their languages.  As much as it's nice to bea
ble to implement entire USENET servers and clients and an NFS protocol
stack in the language, most users don't need that power, and flounder in
the face of it.  This is one of my personal issues with both ColdX and the
LPC based servers.  I want to be able to focus on the issues of the game,
not of keeping track of sockets.

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

This is one of the reasons why, were I to actually write the code, I'd be
looking more at adding the MOO features to CoolMUD than vice versa.
Inertia can be very hard to overcome, even in the name of progress.

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

True enough.  Look at something like $spell in LambdaCore.

But even still, it's not terribly hard to do a scheme where individual
attributes on an object are stored seperately, with an 'index' base object
used to allow for things like run time attribute inheritence.  This is what
I'm looking at for my own server design.  Uber does something like this.
Since it uses a b-tree database as the backend for storage, each object is
stored individually, but you can address the whole object by looking at the
subgroup of the tree that is prefixed by a particular object number.

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

I'd been led to belive by a friend who played Lambda far more than I, that
the numbers were rather different.  Given hard(er) stats, I'm inclined to
agree with you.

&gt;&gt; OTOH, it's certainly possible to cache quite a bit and still see a
&gt;&gt; significant reduction in active memory usage.  LambdaMOO was using upwards
&gt;&gt; of 256 megs of memory at one point, and I'm sure that number isn't going
&gt;&gt; down.
&gt;
&gt;The LambdaMOO machine has 256M of physical memory.  The highwater process
&gt;size sits somewhere between 330M and 360M, depending on how fragmented it's
&gt;gotten.  The initial highwater mark is misleading, because there's some
&gt;bookkeeping done during db load that's free'd in one big chunk before the
&gt;server starts running.
&gt;
&gt;Memory usage went down as of about a year ago due to some hacks Ben and I
&gt;did.  The size of the database, which is otherwise *roughly* correlated with
&gt;memory size, is held constant by various population control measures.

I have to idly wonder what the size of the database would be if no control
measures were in place.  Is it reasonable, or even possible to support an
environment where there are no (or next to no) restrictions on creation and
building?

&gt;&gt; If even 1/10th of your objects were simultaneously active, and that
&gt;&gt; many more needed for the inheritence of the active objects, that's still
&gt;&gt; reducing your active memory image by nearly 4/5ths.
&gt;
&gt;But *which* 1/10th?  Again, object sizes vary wildly.
&gt;
&gt;Anyway, all other things held constant, reducing LambdaMOO's memory size by
&gt;4/5 this way would be a *lose*.  The machine has a certain amount of
&gt;physical memory, and treating the 200M freed up this way as merely disk
&gt;buffers to thrash objects in and out of by expensive marshalling and
&gt;unmarshalling seems...unproductive.  The only win I can see is improvement
&gt;in locality, but you could lose that too if you weren't really careful.

I suppose this depends on what your ratio of active to inactive objects is,
and how expensive your data marshalling routines are.

The couple of servers I've run have all been quite small by comparison to
Lambda, but the trend I saw was always that no more than 10% of my userbase
was logged in at once (particularly if you include "inactive" players), and
that as a whole they concentrated in no more than a dozen different
locations, with between 5 and 8% of the random miscellaneous objects being
present in those locations and the pathways between them.

In a server with 9000 objects total, this generally worked out to under 600
being active at once.  Hard to compare directly to lambda, since none of
these were MOO based, but the idea remains the same, a relatively small
percentage of objects are active at the same time, even in peak usage
conditions.  I have no figures for what inheritance figures would inflate
that to, but given the numbers you quote above, I'd be surprised if that
figure inflated to over 1000.  That's still about 10% of the total base.

If I could reduce the size of my server to even 20% of the size of the
database (eg assume that larger objects tended to end up in the cache, as
theyy're more likely to be inherited), as a rule, this means I can put 5
different servrs on the same machine, without bringing it thrashing to it's
knees. :)

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

Ah, but efficiency is always the holy grail of us CS-theory-weenies, right?
We like spending months thinking about these problems. :)  Throwing
hardware at it is the MIS solution. ;)

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

Any ideas on the timeline for this?

	-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>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00520" HREF="msg00520.html">Re: [MUD-Dev] about MOO</A></STRONG>
<UL><LI><EM>From:</EM> "Jay Carlson" &lt;nop@mitre.org&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00521.html">Re: [MUD-Dev] Language Independence Article.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00523.html">[MUD-Dev] Neural Networks as the AI system for a MUD?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00520.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00478.html">Re: [MUD-Dev] about MOO</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00522"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00522"><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>
<ul compact>
<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><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
<UL>
<LI><strong><A NAME="00423" HREF="msg00423.html">Re: [MUD-Dev] about MOO</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Sat 20 Nov 1999, 03:18 GMT
</LI>
</UL>
</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>