1999Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Collecting ideas for a MUD server... (fwd) -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: Thu, 23 Dec 1999 15:44:50 &#45;0800 -->
<!--X-Message-Id: 001b01bf4d8d$4f6e0100$020101df@JonLambert -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc@ix.netcom.com">
</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="msg00777.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00779.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00784.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00696.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00778">Author</A>
&nbsp;|&nbsp;<A HREF="#00778">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00778">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</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] Collecting ideas for a MUD server... (fwd) </LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 23 Dec 1999 16:33:00 -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>
J C Lawrence wrote:
&gt;On Tue, 21 Dec 1999 17:30:30 -0800 
&gt;Justin Rogers &lt;justin#mlstoday,com&gt; wrote:
&gt;
&gt;&gt;&gt; From: "Wesley W. Terpstra" &lt;terpstra#iota,dhs.org&gt; 
&gt;
&gt;&gt;&gt; I also wanted to know of what MUDs currently implement any of the
&gt;&gt;&gt; following: multithreading, guis, exploiting client processors,
&gt;&gt;&gt; pgp certificates about players so their characters can move from
&gt;&gt;&gt; one server to another w/o the two servers ever talking directly.
&gt;
&gt;&gt; I don't know about existing muds that support too many of those
&gt;&gt; things.  
&gt;
&gt;As mentioned previously, there are several other than myself here in
&gt;MUD-Dev working on multi-threaded, GUI-interfaced, client-server,
&gt;etc etc etc systems.  There's a wealth of knowledge in the archives
&gt;there.  The systems and assumtptions I'm using for Murkle are but
&gt;one set of design decisions and assumptions.  Lambert has a
&gt;different set, as does Wiggins, as does Dr Cat, as does ...etc.


Ok, time to rumble (ramble). ;-)

TychoMud's network and database sub-systems are multi-threaded 
and safe.  The network sub-system was easy since that's the way
servers are commonly handled on my platform anyway and there
is no shortage of experience and solid design information out there. 

The database sub-system was a bit more difficult because most
of the successful proprietary systems run as IPC processes with
their locking mechanisms residing in the database process space.
Obviously this is both a solution and bottleneck to the multi-user
locking problem.  The locking strategies commonly used in rdbms/odbms 
are generalized and so are the cacheing strategies.  Generalized dbms 
cacheing strategies are an anethma to mud servers.  I'm sure the MOO 
or Cold people can attest to this.  Using a proprietary dbms locks one into 
following the object-model (or lack of object-model) used by the dbms 
which may directly contradict the object model followed internally by the 
mud server's programming language.  This is most pronounced in the 
performance of relational databases linked to an object-oriented mud 
server.  Most rdbms that I've seen are not run dynamic although many 
implement DDL which can handle it though it is a very expensive operation.  
I have at various times used Access, DB2, BDE and Interbase.  Actually 
I could use any ODBC compliant system.  Ideally the database system 
should model the object-model used by the mud server _exactly_.   
In any event, I've designed my own object database sub-system which runs
in the same process space as the server and implements Aphrodite's
(the MPL) unique object-model, and all the cacheing and locking quirks
which benefit such a model.  The benefits of mutli-threading here are 
good.  Anytime disk I/O can be made asynchronous, that is a good thing.
 
That said I'm having no end of DIFFICULTY in threading the execution of 
VMs that do the actual work on the server.  A context switch during the
execution of a VM is quite application-centric.  Unexpected or preemptive
context switching is a real pain in the ass here.   Why?  Because the number
of states involved in the execution of a VM are an order of magnitude higher 
than the states present in the network and database sub-systems.  There
is probably a rule of thumb in the last statement regarding the ease of 
implementing muti-threading.  The ease is inversely proportion to the 
number of states present in a system.
Currently I do software multi-tasking through a tick system, not unlike 
Cold, LP, or perhaps Muq I presume.   I hope to get it to work one day since
the problem is not intractable.  BTW, NT fibers may well be a better 
solution to this problem since the context switch is defined and implemented
by the application and not the operating system.  For Linux users, I would
venture that rewriting the context switch code in the PThreads libraries 
to be under application control might give one Linux fibers.  :-)   

Now as for GUI clients, I will only be supporting a specific client written by 
myself.  Currently it runs only on Windows plaforms.  It's written in C++ but 
I make use of only VCL components.  Interestingly enough, Borland is porting 
VCL and Delphi to run on Linux, however I think they will only be supporting 
Dephi bindings and not Builder bindings. I suppose I could rewrite the client 
in Object Pascal, but I'm not looking forward to it.  

&gt;&gt; However, using my WORMHOLE plugin you can easily connect multiple
&gt;&gt; servers that are all running a WORMHOLE program.  I've used this
&gt;&gt; for several space type games I've created with my plugins.
&gt;
&gt;There's also a fair bit of prior art here, from the current
&gt;reasonably well documented InterMUD protocol to the original
&gt;inter-MUD portals Marcus Ranum put in UnterMUD back in the 1980's.
&gt;Stephen White's "YO" object RPC protocol for COOLMUD could also be
&gt;extended to be considered a server interconnect protocol (tho its
&gt;really not on any arbitrary basis).


I've been playing around with YO.  It is a simple peer to peer UDP 
connection and as such is quite easily spoofed.  Ideally such a distributed
server system works best behind a firewall unless some sort of secure
validation process is added.  Because of the object model, _all_ 
interactions between objects take the form of messages or events.
In theory all interaction could be distributed.  However in practice
it must be coded explicitly.  For example, #0 is the system object
for the local server, while #0@server2 is the the system object
on another server.   So it is indeed possible to construct objects 
remotely on other servers and write code that affects multiple servers' 
objects, however doing so obviously introduces dependencies and 
message traffic between the servers.   What is missing is a mechanism
to register and deregister object catalogs or repository information 
automatically as new servers are brought into the loop or taken out
of the loop.  Without such a mechanism, any code that is written
is explicitly dependent and must be rewritten every time servers are
reconfigured. 

Now the reason I've been playing with YO is not that I'm terribly
interested in distributed systems, though by proxy I probable am.  
Since I'm binding my database system into the same process space 
as the server, I have lost the utility of using external tools to manage 
and query the database.   By implementing YO (or something like it) 
I can implement any of the tools I need as peer server processes.
          
--
--*     Jon A. Lambert - TychoMUD Email: jlsysinc#nospam,ix.netcom.com     *--
--*     Mud Server Developer's Page &lt;<A  HREF="http://jlsysinc.home.netcom.com">http://jlsysinc.home.netcom.com</A>&gt;      *--
--* "No Free man shall ever be debarred the use of arms." Thomas Jefferson *--






_______________________________________________
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-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00777.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00779.html">Re: Re[4]: [MUD-Dev] The grass is always greener in the other field</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00784.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00696.html">[MUD-Dev] Classes and Races and more (a BIG list) (fwd)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00778"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00778"><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] Collecting ideas for a MUD server... (fwd)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00758" HREF="msg00758.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@kanga.nu">claw@kanga.nu</a>, Thu 23 Dec 1999, 07:50 GMT
</LI>
<LI><strong><A NAME="00765" HREF="msg00765.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Greg Miller <a href="mailto:gmiller@classic-games.com">gmiller@classic-games.com</a>, Thu 23 Dec 1999, 17:00 GMT
</LI>
</ul>
<LI><strong><A NAME="00777" HREF="msg00777.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Rahul Sinha <a href="mailto:rsinha@glue.umd.edu">rsinha@glue.umd.edu</a>, Thu 23 Dec 1999, 20:50 GMT
<UL>
<LI><strong><A NAME="00784" HREF="msg00784.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@kanga.nu">claw@kanga.nu</a>, Fri 24 Dec 1999, 20:47 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00778" HREF="msg00778.html">Re: [MUD-Dev] Collecting ideas for a MUD server... (fwd)</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc@ix.netcom.com">jlsysinc@ix.netcom.com</a>, Thu 23 Dec 1999, 23:44 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00696" HREF="msg00696.html">[MUD-Dev] Classes and Races and more (a BIG list) (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Tue 21 Dec 1999, 01:24 GMT
<UL>
<LI><strong><A NAME="00708" HREF="msg00708.html">[MUD-Dev] Originality/Points of Reference (was Classes and Races and more (a BIG list) (fwd))</A></strong>, 
Richard Ross <a href="mailto:rross@rross.eurobell.co.uk">rross@rross.eurobell.co.uk</a>, Tue 21 Dec 1999, 17:38 GMT
<UL>
<LI><strong><A NAME="00716" HREF="msg00716.html">Re: [MUD-Dev] Originality/Points of Reference (was Classes and Races and more (a BIG list) (fwd))</A></strong>, 
Ryan P. <a href="mailto:ixiterra@earthlink.net">ixiterra@earthlink.net</a>, Wed 22 Dec 1999, 00:35 GMT
<UL>
<LI><strong><A NAME="00737" HREF="msg00737.html">Re: [MUD-Dev] Originality/Points of Reference (was Classes and Races and more (a BIG list) (fwd))</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Wed 22 Dec 1999, 23:25 GMT
</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>