1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals) -->
<!--X-From-R13: Vny Pynpx <unyNzbbf.zy.bet> -->
<!--X-Date: Thu, 22 Oct 1998 16:26:22 &#45;0700 -->
<!--X-Message-Id: 19981022194414.10387#moos,ml.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810220452.WAA00898@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--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:hal#moos,ml.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="msg00366.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00367.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00339.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00372.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00368">Author</A>
&nbsp;|&nbsp;<A HREF="#00368">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00368">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>: Hal Black &lt;<A HREF="mailto:hal#moos,ml.org">hal#moos,ml.org</A>&gt;</LI>
<LI><em>Date</em>: Thu, 22 Oct 1998 19:44:14 -0400</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 Wed, Oct 21, 1998 at 10:52:38PM -0600, Chris Gray wrote:
&gt; [Hal Black:]
&gt; 
&gt;  &gt;One thing I'd really like to see, is have the modules made from VM code
&gt;  &gt;completely interchangable with modules made from native code.  That way,
&gt;  &gt;it would be a lot easier to replace VM code bit-by-bit with native code if
&gt;  &gt;you need to do so for performance purposes.  This would be especially nice
&gt;  &gt;if, say, the driver part was in C++, and there was a C++ to VM compiler.
&gt;  &gt;Then, you could swap stuff in and out of VM mode as desired for profiling,
&gt;  &gt;debugging, security, and so forth.
&gt; 
&gt; As I mentioned in an earlier note, problems arise more from run-time
&gt; library or support environment than from strict language issues. In this
&gt; particular instance, please note that C++ is a very large language - building
&gt; a compiler for it is man-years worth of work. There are some available
&gt; parsers out there, but then the problem of licensing can come up.

Oh, absolutely.  When I wanted to learn C++ I went out and read the ARM.  There
is a lot of stuff in there that is too much for the VM to do.  Let me try to
restate what I meant:
  The VM code should be replaceable by native code, but not visa-versa.

  Take the example for C++ below:

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

    player.hits = player.hits - weapon.hits;

&gt; Keeping the in-MUD language(s) for higher-level world/quest/NPC stuff and
&gt; the native compiled language(s) for lower-level things is probably a
&gt; good idea.

Agreed to keep the system-level stuff out of the VM.  But what I would like
to suggest as an idea would be to have the mud-relevant parts of the native
mode language compilable to VM code.  And not set the role for the game
engine to be "VM only".  Maybe some subset of C++ for instance would work
there.
  The main reason I'd want to do this would be for performance purposes.
For instance, if there is an operation that is costly in time that processes
in-game objects, you are kind of sunk if you only allow VM code to do that.
What I'm suggesting is interchangable versions of LPC's lfun and efuns, but
at the object level.  I believe DGD does the opposite of what I'm suggesting:
compiles Mud-Code LPC to native code.  That would be a good solution also.  I
don't know how well this would perform, however.
  The question becomes, which is easier/better?  To compile MUD VM code to
native, or to compile C++-subset code to VM bytecode?  Furthermore, what if
you used the same language (simplified C++ or Java) for both the in-game and
driver stuff?  If so, in the case of C++, you'd only have to write the C++
to bytecode compiler, plus the interface code.  If you did it in Java and
used the Java Virtual Machine, you'd only have to write the interface code
because there are Java-to-JVM and Java-to-Native compilers (though I haven't
tried any of the latter).
  If I knew enough about compilers, I'd have done this already.  Anyway, some
food for thought.


</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="00339" HREF="msg00339.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00366.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00367.html">[MUD-Dev] DevMUD Event Language</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00339.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00372.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#00368"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00368"><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="00363" HREF="msg00363.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Thu 22 Oct 1998, 20:55 GMT
</LI>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00335" HREF="msg00335.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>, Thu 22 Oct 1998, 04:08 GMT
<UL>
<LI><strong><A NAME="00348" HREF="msg00348.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>, Thu 22 Oct 1998, 11:32 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00339" HREF="msg00339.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>, Thu 22 Oct 1998, 04:58 GMT
<UL>
<LI><strong><A NAME="00368" HREF="msg00368.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Thu 22 Oct 1998, 23:26 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00372" HREF="msg00372.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Felix A. Croes <a href="mailto:felix#dworkin,nl">felix#dworkin,nl</a>, Fri 23 Oct 1998, 01:31 GMT
<UL>
<LI><strong><A NAME="00373" HREF="msg00373.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Darrin Hyrup <a href="mailto:shades#mythicgames,com">shades#mythicgames,com</a>, Fri 23 Oct 1998, 02:32 GMT
<UL>
<LI><strong><A NAME="00387" HREF="msg00387.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Fri 23 Oct 1998, 04:18 GMT
<UL>
<LI><strong><A NAME="00394" HREF="msg00394.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Petri Virkkula <a href="mailto:pvirkkul#iki,fi">pvirkkul#iki,fi</a>, Fri 23 Oct 1998, 12:37 GMT
</LI>
</UL>
</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>