1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals) -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Thu, 22 Oct 1998 21:01:28 &#45;0700 -->
<!--X-Message-Id: 199810230355.VAA01311@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Communi</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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="msg00382.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00384.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00376.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00395.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00383">Author</A>
&nbsp;|&nbsp;<A HREF="#00383">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00383">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</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 (was Re: Bruce Sterling on Virtual Community goals)</LI>
<LI><em>From</em>: Chris Gray &lt;<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>&gt;</LI>
<LI><em>Date</em>: Thu, 22 Oct 1998 21:55:24 -0600</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>
[Hal Black:]

 &gt;&gt; An in-MUD language will typically have language elements that are added
 &gt;&gt; to make in-MUD programming easier. Those won't exist in external languages,
 &gt;&gt; and so that stuff would have to be translated into function calls,
 &gt;&gt; possibly quite a lot of ugly ones. As an example, the statement:
 &gt;&gt; 
 &gt;&gt;     player@hits := player@hits - weapon@hits;
 &gt;
 &gt;    player.hits = player.hits - weapon.hits;

Big shake of head. This only works if the data layout of a MUD world
object is defined to be the same as the data layout of your C++ object,
and you always have all of your objects directly available in memory.
When C++ objects have virtual functions (some form of which is likely
needed in a MUD language), I'm not sure if the layout of a C++ object
is even specified. My example does the work needed to fetch objects
'player' and 'weapon' from the on-disk database if needed, fetches
the values of the 'hits' property (perhaps inheriting from ancestors)
from them, then stores the result back on 'player', marking it as
needing eventual flush to the disk. Storing the result back to 'player'
may involve creating additional space in the 'player' object if it didn't
have one before (and was just using one inherited from an ancestor).
This is a very different object model from what C++ uses, but I can
argue that it is more appropriate for MUD world objects.

 &gt;Agreed to keep the system-level stuff out of the VM.  But what I would like
 &gt;to suggest as an idea would be to have the mud-relevant parts of the native
 &gt;mode language compilable to VM code.  And not set the role for the game
 &gt;engine to be "VM only".  Maybe some subset of C++ for instance would work
 &gt;there.

I would argue against doing this. As has been mentioned before in this
thread, and in several others, one of the things you want to do with a
MUD system is to encourage as many people as possible to write scripts,
even simple ones, for the system. That's how you tap into the sources
of originality and artistry outside of the hard-core programmers. Telling
potential scripters "its a subset of C++" will make them walk away. And,
in my opinion, they would be doing the right thing (for them).

For performance, translating from the MUD language to the native language
should work well enough. Note that the cost of many MUD operations isn't
the things like adding integers, it is the many higher-level operations
going on: database activity, string operations, matching, network
operations, etc. As long as the system stuff that glues these things
together is reasonably efficient, the effect of switching between a
byte-code machine and native code isn't really that large. (There are
some things that are compute intensive, and the effect can be quite
noticeable. In my case its fractal terrain generation.)

Since we seem to be aiming for a flexible system here, one of the things
it seems to me that we can *not* do is to force static object layout.
Once you have done that, you have to recompile all of the modules and
rebuild the database in order to make a change. That seems to be
throwing away the flexibility and dynamicism of what I've seen being
talked about.

-- 
Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA


</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="msg00382.html">[MUD-Dev] Re: evil - good realism</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00384.html">[MUD-Dev] Re: evil - good realism</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00376.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00395.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00383"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00383"><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 (was Re: Bruce Sterling on Virtual Community goals)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00392" HREF="msg00392.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Fri 23 Oct 1998, 09:56 GMT
<UL>
<LI><strong><A NAME="00393" HREF="msg00393.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Fri 23 Oct 1998, 10:12 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00422" HREF="msg00422.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Fri 23 Oct 1998, 21:28 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00376" HREF="msg00376.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 Oct 1998, 03:01 GMT
</LI>
<LI><strong><A NAME="00383" HREF="msg00383.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 Oct 1998, 04:01 GMT
</LI>
<LI><strong><A NAME="00395" HREF="msg00395.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 Oct 1998, 14:10 GMT
<UL>
<LI><strong><A NAME="00396" HREF="msg00396.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Fri 23 Oct 1998, 14:46 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00435" HREF="msg00435.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Sat 24 Oct 1998, 00:30 GMT
</LI>
<LI><strong><A NAME="00437" HREF="msg00437.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 24 Oct 1998, 00:48 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>