1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: PDMud thread summary -->
<!--X-From-R13: Xba Zrbaneq <wyrbaneqNqvipbz.fyvzl.pbz> -->
<!--X-Date: Fri, 23 Oct 1998 12:52:24 &#45;0700 -->
<!--X-Message-Id: 19981023124709.A3409#divcom,slimy.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: a288d201.362fc82f#aol,com -->
<!--X-Reference: Pine.LNX.3.96.981023101951.18389G&#45;100000#enigma,sss.org -->
<!--X-Reference: 19981023175413.A20008#thelonious,new.ox.ac.uk -->
<!--X-Reference: 19981023134644.C11290#flagstaff,Princeton.EDU -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: PDMud thread summary</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jleonard#divcom,slimy.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="msg00409.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00411.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00403.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00415.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00410">Author</A>
&nbsp;|&nbsp;<A HREF="#00410">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00410">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: PDMud thread summary</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>: [MUD-Dev] Re: PDMud thread summary</LI>
<LI><em>From</em>: Jon Leonard &lt;<A HREF="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</A>&gt;</LI>
<LI><em>Date</em>: Fri, 23 Oct 1998 12:47:09 -0700</LI>
<LI><em>Cc</em>: Jon Leonard &lt;<A HREF="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</A>&gt;</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#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>
On Fri, Oct 23, 1998 at 01:46:44PM -0400, Adam J. Thornton wrote:
&gt; On Fri, Oct 23, 1998 at 05:54:13PM +0100, Jo Dillon wrote:
&gt; &gt; Steve Sparks (ssparks#enigma,sss.org) spake thusly:
&gt; &gt; &gt; On Thu, 22 Oct 1998 ApplePiMan#aol,com wrote:
&gt; &gt; &gt; &gt; &gt;Database storage/persistence (relational or Object Oriented)
&gt; &gt; &gt; locally and in person.
&gt; &gt; &gt; What platform will be used for the Mud?
&gt; &gt; &gt; 	Linux
&gt; &gt; &gt; 	General UNIX running GNU?
&gt; &gt; &gt; 	BSD	
&gt; &gt;   My vote is for any Posix-compliant Unix (so that we can use things like
&gt; &gt; pthreads and suchlike).
&gt; 
&gt; I second this.  If it's Posixy, porting it will be much simpler.  

There really aren't that many OS features that a MUD needs to use, and with
a modular design, these can often be isolated.

I think the only things that all modules would have to be aware of are
dynamic linking and threads.  There should be compile time options to
turn those off, too.  (My old computer supports neither, for example.)

Filesystem access and player communications should probably be isolated to
singles modules, so the effort of porting them to exotic systems should
be fairly low.

In short, I think portability is important, and with only a little extra
effort we can make stuff portable even beyond the range of posix systems.

Things we'll have to be careful about for portability:

Endianness (sending data between systems might get mangled)
64-bit cleanliness (sizeof(int) isn't necessarily sizeof(pointer))
Threads
Sockets and other non-blocking IO
Other things I haven't thought about

Systems that I want to be portable to:

Linux/Alpha (frost.slimy.com)
Linux/Intel (my laptop)
SunOS/Sparc (my old computer)

There'll probably be someone interested in porting to Microsoft platforms,
an probably also to AmigaDos.  Others?

&gt; &gt; &gt; What kind of database is usually used?  
&gt; &gt; &gt; If you use a relational database does someone then create a series of
&gt; &gt; &gt; stored procedure that can be called to help speed implementation. If you
&gt; &gt; &gt; do then would they be something like the implied functionality of these:
&gt; &gt;   I'm not sure I like the idea of a relational database. They tend to
&gt; &gt; be inefficient in my limited experience, and also I think some sort of OO
&gt; &gt; database is going to make more sense for a mud.
&gt; 
&gt; Take a look at PostgreSQL.  It's what I'd been planning to use.  However,
&gt; I'm not sure that using a real database makes more sense than a
&gt; lighterweight persistent object interface like, e.g. Texas Persistent
&gt; Store.

I occasionaly consider designs where the only database-like access is
"load data for this ID" and "store data for this ID".  For something like
that, a pretty simple database will suffice (the plain unix filesystem is
enough).  Depending on what game (or admin) features need more database
functionality, we should probably have more than one database module,
and select one based on the needed features.

&gt; Database performance will be disk-intensive and hence slow.  However, what
&gt; I was thinking is to have the in-memory data structure represent the real
&gt; state of the game world, and have a low-priority queue that commits that
&gt; state to the DB when nothing else is going on, or every X seconds.
&gt; However, this does mean you're paying twice for contention resolution.  The
&gt; DB will take care of ensuring atomicity, so if both Bob and Buffy go for an
&gt; object simultaneously, one of them gets it and the other doesn't.  However,
&gt; if you're using the DB only as backing store, you have to resolve this in
&gt; the game engine first so that the state of the world the players see
&gt; remains consistent.

It's not clear that database stuff needs to be slow.  It's possible to cache
disk stuff in memory, and this may happen automaticly.  Also, using a disk
based structure can speed things up by being more cache-friendly.  Hitting
random locations in memory can be comparatively slow on recent processors,
which is why some disk-based systems can outperform their memory-based
eqivalents.

Still, I think the better approach is to start designing the system to
be functional, and then profile it to see what needs to be made faster.
Premature optimization is a big waste of time.

Jon Leonard


</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="00452" HREF="msg00452.html">[MUD-Dev] Re: PDMud thread summary</A></strong>
<ul compact><li><em>From:</em> Darrin Hyrup &lt;shades#mythicgames,com&gt;</li></ul>
<li><strong><A NAME="00415" HREF="msg00415.html">[MUD-Dev] Re: PDMud thread summary</A></strong>
<ul compact><li><em>From:</em> Jo Dillon &lt;emily#thelonious,new.ox.ac.uk&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00369" HREF="msg00369.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
<UL><LI><EM>From:</EM> ApplePiMan#aol,com</LI></UL></LI>
<LI><STRONG><A NAME="00400" HREF="msg00400.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
<UL><LI><EM>From:</EM> Steve Sparks &lt;ssparks#enigma,sss.org&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00401" HREF="msg00401.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
<UL><LI><EM>From:</EM> Jo Dillon &lt;emily#thelonious,new.ox.ac.uk&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00403" HREF="msg00403.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
<UL><LI><EM>From:</EM> "Adam J. Thornton" &lt;adam#phoenix,Princeton.EDU&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00409.html">[MUD-Dev] Re: Crack.Com deceased, Golgotha source released (sorta)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00411.html">[MUD-Dev] Re: Crack.Com deceased, Golgotha source released (sorta)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00403.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00415.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00410"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00410"><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>[MUD-Dev] Re: PDMud thread summary</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00391" HREF="msg00391.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Fri 23 Oct 1998, 09:19 GMT
</LI>
<LI><strong><A NAME="00400" HREF="msg00400.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Steve Sparks <a href="mailto:ssparks#enigma,sss.org">ssparks#enigma,sss.org</a>, Fri 23 Oct 1998, 16:39 GMT
<UL>
<LI><strong><A NAME="00401" HREF="msg00401.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Fri 23 Oct 1998, 16:57 GMT
<UL>
<LI><strong><A NAME="00403" HREF="msg00403.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Fri 23 Oct 1998, 17:50 GMT
<UL>
<LI><strong><A NAME="00410" HREF="msg00410.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Fri 23 Oct 1998, 19:52 GMT
<UL>
<LI><strong><A NAME="00415" HREF="msg00415.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Fri 23 Oct 1998, 20:41 GMT
<UL>
<LI><strong><A NAME="00424" HREF="msg00424.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Fri 23 Oct 1998, 21:42 GMT
</LI>
<LI><strong><A NAME="00451" HREF="msg00451.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 24 Oct 1998, 04:24 GMT
<UL>
<LI><strong><A NAME="00456" HREF="msg00456.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Sat 24 Oct 1998, 10:25 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</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>