1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: RE: [MUD&#45;Dev] Languages for MUD drivers -->
<!--X-From-R13: "Wna [npvagbfu" <vznaNvfflfgrzf.pb.am> -->
<!--X-Date: Wed, 17 Nov 1999 23:34:33 &#45;0800 -->
<!--X-Message-Id: 001201bf317b$33bb13e0$0201a8c0@granite -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: E11oCVu&#45;0003m8&#45;00@kanga.nu -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, RE: [MUD-Dev] Languages for MUD drivers</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:iman@issystems.co.nz">
</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="msg00349.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00352.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00308.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00411.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00350">Author</A>
&nbsp;|&nbsp;<A HREF="#00350">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00350">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>RE: [MUD-Dev] Languages for MUD drivers</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] Languages for MUD drivers</LI>
<LI><em>From</em>: "Ian Macintosh" &lt;<A HREF="mailto:iman#issystems,co.nz">iman#issystems,co.nz</A>&gt;</LI>
<LI><em>Date</em>: Thu, 18 Nov 1999 17:13:00 +1300</LI>
<LI><em>Importance</em>: Normal</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>
    &gt; Laurent Bossavit wrote:
    &gt; Sent: Thursday, 18 November 1999 10:14
    &gt;
    &gt; Ian Macintosh sez:
    &gt;
    &gt; &gt; Distributed processing support can be handled by
    &gt; running multiple
    &gt; &gt; processes and interconnecting them.  I've always
    &gt; thought that this is
    &gt; &gt; a better way of handling large systems and a large
    &gt; number of users.
    &gt; &gt; ie, segment areas (zones) onto different servers and
    &gt; link them.
    &gt;
    &gt; There's no really good (read transparent) way to
    &gt; interconnect several
    &gt; MOO servers in that way. Suppose I'm running the Feral
    &gt; Forest on
    &gt; server A, the Damp Dungeon on server B; I want the key
    &gt; from the lower
    &gt; dungeon cell to open the witch's hut in the forest -
    &gt; hence I want the
    &gt; player to be able to take the key and move from A to B,
    &gt; moving the
    &gt; key with em - and there's no way AFAIK that can be done
    &gt; with MOO.
    &gt;
    &gt; Even assuming something like an 'object exchange
    &gt; protocol' that would
    &gt; let server A open a connection to server B, spit out
    &gt; the key object's
    &gt; code and properties so that a new, equivalent object
    &gt; can be created
    &gt; there, and the old key deleted; assuming I have a way
    &gt; to make sure
    &gt; the key won't be duplicated or deleted altogether if something
    &gt; happens to the network connection between A and B while
    &gt; this is going
    &gt; on; assuming I can do the same to the player object;
    &gt; assuming I can
    &gt; require the player emself to disconnect from A and
    &gt; reconnect to B in
    &gt; an orderly fashion whenever this happens - which
    &gt; implies a custom
    &gt; client program, or tech support headaches...

I agree, this isn't trivial.  I've been working through these problems
myself as I get a distributed system up.  One of the first things I
realised is that a custom client program was an absolute *must*.  I
found that simpler than expected.  (see <A  HREF="http://ncohafmuta.com/~iman/">http://ncohafmuta.com/~iman/</A>
where I have two clients.  They're alpha stuff, so don't expect too
much.  Also, the one is designed to be a chat system client, not a mud
client.  If you're trying to see the sound stuff in action, type
'multimedia' when logged in.  It's a toggle).

As far as handling the movement of objects (creating on second,
deleting on first), that is definately possible.  I can give you some
MOO code for that if you like, just don't ask for it like tomorrow.
I'll have to try and dig stuff up from two years ago.  I remember
there was a MOO system somewhere that had this capability.  I can't
remember who wrote it exactly, but I think it was somebody called
himself 'Kip the Kid', or 'King of Pascal' ??

When I tried it out, I decided that the only way was to open new
listening objects on each server, and to use the OOB communications
capability (#$# prefix by default).  Also, I never actually deleted an
object, I just flagged it as 'ownership transferred to &lt;SERVER_ID&gt;
with OBJ #'.  I then wrote a verb called 'check-database
check-database-nasty' which scanned for lost ownership items and
reinstated them on the primary server.  The nasty version soaked the
CPU till it's ticks were almost up, the nice version suspended between
the iterations of 'for o in [#0..max_object()]'.  Inside the loop I
checked for lost ownership, and queried the second server

I can't claim any heavy player testing, but I thought it worked well
enough.

    &gt; Hmm, I can't assume all of the above anyway since it's far from
    &gt; realistic, but you see where this would lead - a lot of
    &gt; in-DB code
    &gt; that deals only with such interconnections. (And what
    &gt; if the key has
    &gt; a property pointing to another object local to A; and
    &gt; what if the key
    &gt; has parent objects that are not in B, etc. etc.) It's
    &gt; much better if
    &gt; such distributed processing is in some appropriate fashion a
    &gt; capability of the server itself. MOO as it is doesn't
    &gt; fit the bill;
    &gt; and adding these capabilities to a MOO server wouldn't
    &gt; be a piece of
    &gt; cake.
    &gt;
    &gt; In fact, my port to Java did include distributed
    &gt; operation support,
    &gt; based on RMI. One of the first things that became
    &gt; apparent as I was
    &gt; implementing it was that some MOO-language
    &gt; modifications would be
    &gt; necessary; the very least I could get away with was a syntactic
    &gt; representation of remote objects, i.e. the literal
    &gt;   #1
    &gt; referred to the local #1 whereas
    &gt;   #my.server.com:1
    &gt; referred to #1 on my.server.com. With these
    &gt; modifications it was
    &gt; possible to call verbs and read or write properties on
    &gt; remote objects
    &gt; transparently, as if they were local.
    &gt;
    &gt; But I soon realized I had in fact opened a very nasty
    &gt; can of worms. I
    &gt; had to add code to the server to prohibit creation of
    &gt; local objects
    &gt; that were children of remote objects, otherwise I would
    &gt; have had to
    &gt; implement a distributed database as well - which was
    &gt; both beyond me
    &gt; and beyond my time budget. Another problem was the permissions
    &gt; system; how the Wizard on server A would be prevented
    &gt; from having
    &gt; wizard access for server B's objects, or if I decided
    &gt; to 'trust'
    &gt; wizard bits between servers, how to securely
    &gt; authenticate server
    &gt; connections.
    &gt;
    &gt; To cut a long story short, I eventually gave up on "good"
    &gt; disitributed support and left it in a fairly primitive
    &gt; state - I had
    &gt; to ship product and it didn't look as if it would see much use.

My solution here was to create all fertile objects on both servers.  I
found that DB size didn't cause lag, it was just code activity that
did.  (Check 'help lag' on Lambda for a nicely written essay on the
subject).

Basic to all this is that you have to write your own DB, starting with
Minimal.db.  And from the start you have to set some rules on how you
do things, and stick to them.  I don't have any wizards or programmers
other than myself, so secure authentication isn't a problem for me.
Your mileage on that probably differs.  I sort of gather from your
project that you were having to supply a system that would run almost
like Lambda, with maybe some sort of educational purpose.  My focus
and requirements are probably quite different.

    &gt; &gt; I'm not sure of what you are refering to when you say
    &gt; concurrent
    &gt; &gt; processing support?  I understand the term, but I
    &gt; don't understand
    &gt; &gt; the context re reactive worlds?
    &gt;
    &gt; I'm basically referring to support for preemptive
    &gt; (rather than MOO's
    &gt; collaborative) multitasking. Task scheduling seems to
    &gt; be a primary
    &gt; cause of lag in MOO servers - true multithreading means
    &gt; a server is
    &gt; more responsive; at least that's the theory.

I thought that one over some time back, and came to the conclusion
that pre-emptive is actually worse.  If you get code to run to
completion, you save yourself the taskswitching cost.  And the
taskswitching cost on LMOO is high.  Fork() and Suspend() = Lag there.

Basically, what I see is that you're going to run it anyway.  If
you're into 3 second lag, you've just got no more CPU, no matter how
you try to swap your tasks.  The *forced* collaborative multitasking
of LMOO is quite excellent I think.

Regards,

Ian.




_______________________________________________
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="00308" HREF="msg00308.html">RE: [MUD-Dev] Languages for MUD drivers</A></STRONG>
<UL><LI><EM>From:</EM> "Laurent Bossavit" &lt;bossavit@cybercable.fr&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00349.html">Re: [MUD-Dev] code base inquiry</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00352.html">Re[2]: [MUD-Dev] code base inquiry</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00308.html">RE: [MUD-Dev] Languages for MUD drivers</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00411.html">Re: [MUD-Dev] Languages for MUD drivers</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00350"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00350"><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] Languages for MUD drivers</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00418" HREF="msg00418.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Sat 20 Nov 1999, 01:18 GMT
</LI>
</ul>
<LI><strong><A NAME="00416" HREF="msg00416.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Sat 20 Nov 1999, 01:01 GMT
</LI>
</ul>
<LI><strong><A NAME="00388" HREF="msg00388.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Fri 19 Nov 1999, 00:30 GMT
</LI>
</ul>
<LI><strong><A NAME="00308" HREF="msg00308.html">RE: [MUD-Dev] Languages for MUD drivers</A></strong>, 
Laurent Bossavit <a href="mailto:bossavit@cybercable.fr">bossavit@cybercable.fr</a>, Wed 17 Nov 1999, 21:25 GMT
<UL>
<LI><strong><A NAME="00350" HREF="msg00350.html">RE: [MUD-Dev] Languages for MUD drivers</A></strong>, 
Ian Macintosh <a href="mailto:iman@issystems.co.nz">iman@issystems.co.nz</a>, Thu 18 Nov 1999, 07:34 GMT
</LI>
<LI><strong><A NAME="00411" HREF="msg00411.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Fri 19 Nov 1999, 23:37 GMT
<UL>
<LI><strong><A NAME="00412" HREF="msg00412.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
Laurent Bossavit <a href="mailto:bossavit@cybercable.fr">bossavit@cybercable.fr</a>, Sat 20 Nov 1999, 00:39 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00334" HREF="msg00334.html">Re: [MUD-Dev] Languages for MUD drivers</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Thu 18 Nov 1999, 01:30 GMT
</LI>
<LI><strong><A NAME="00347" HREF="msg00347.html">[MUD-Dev] Languages for MUD drivers</A></strong>, 
Petri Virkkula <a href="mailto:pvirkkul@iki.fi">pvirkkul@iki.fi</a>, Thu 18 Nov 1999, 07:34 GMT
</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>