1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: PDMud thread summary -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: Sun, 25 Oct 1998 21:20:48 &#45;0800 -->
<!--X-Message-Id: 199810260517.XAA16108@dfw&#45;ix16.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810240055.SAA01720@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 thread summary</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="msg00508.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00510.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00438.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00514.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00509">Author</A>
&nbsp;|&nbsp;<A HREF="#00509">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00509">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 A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Mon, 26 Oct 1998 00:18:19 -5</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 23 Oct 98, Chris Gray wrote:

&gt; Date:          Fri, 23 Oct 1998 18:55:03 -0600
&gt; From:          Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;
&gt; To:            mud-dev#kanga,nu
&gt; Subject:       [MUD-Dev] Re: PDMud thread summary
&gt; Reply-to:      mud-dev#kanga,nu

&gt; [Jon A. Lambert:]
&gt; 
&gt;  &gt;I think Chris Gray mentioned fixing bytecode memory addresses 
&gt;  &gt;at startup, allowing direct jumps into functions.  While a performance
&gt;  &gt;boost, it makes dynamic registration and unregistration of modules
&gt;  &gt;more complex.
&gt; 
&gt; Yep. More complex, but not impossible. I guess my feeling is that
&gt; module-unload events are fairly rare (module loading is pretty expensive,
&gt; so you want to minimize them), so having to do a bit of work at that
&gt; time, in order to save work throughout, may be a good trade-off.

Rare, unless modules can be instanced or otherwise replicated.  I 
mentioned that in another post tonight...  I think we can support 
both procedural languages and object-oriented languages as mud 
languages.  I'd prefer to support an object-oriented mud language, 
which might require support multiple instances of modules (at least 
any state they contain, not necessarily code)

&gt;  &gt;Are function calls resolved at compile-time, registration, or run-time?
&gt; 
&gt; Depends on what you mean by 'resolved'! Calls to visible names within
&gt; a module should be resolved at compile time. Calls from one module to
&gt; another that are fixed calls (not dependent on run-time data) can be
&gt; resolved at registration (module load) time. Calls via pointers that
&gt; MUD-code or module code can modify need to be at run-time. The comparative
&gt; cost increases in that same sequence.

Would a successful compile automatically go ahead and register the 
module?   Any concerns here.  I've always thought an automated mud 
language source versioning system would be nice.

I agree with the above, but do we really want pointer accessability 
and modification in any mud language implementation.  Wouldn't this 
compromise a security system.  Maybe I'm misunderstanding the above?

&gt;  &gt;Having the return value, buys nothing either, since the caller may not use 
&gt;  &gt;it and wouldn't be able to build a proper mangled name.  
&gt;  &gt;  
&gt;  &gt;&gt; int cast(int time, string spell)  ----&gt;   #magic@cast!0x00000000$ri$ai$as
&gt;  &gt;&gt; char foo(char * bptr, bar i)    ----&gt;  #magic@foo!0x1FBA2000$rc$apc$aebar
&gt;  &gt;
&gt;  &gt;int cast(int time, string spell)  ----&gt;   #magic@cast$ai$as 
&gt;  &gt;char foo(char * bptr, bar i)    ----&gt;  #magic@foo$apc$aebar
&gt; 
&gt; ?? By dropping the result type you are forcing run-time type checking
&gt; and a data representation that allows that. That sort of thing may be
&gt; wanted for other reasons, but the module interface descriptions aren't
&gt; a problem for it. I'm missing whatever you are getting at here.

Agreed.  The return type should be put back in.  
What I'm getting at here with the name-mangling is a cheap and 
reliable way to support polymorphism and inheritence.  

&gt;  &gt;For a standard call format, why not just have the caller push() it's address and then all the 
&gt;  &gt;arguments from left-to-right onto the stack then jump to the callee.  The callee pops() them 
&gt;  &gt;out and loads local variables right-to-left.  Return would pop() the return address off the 
&gt;  &gt;stack and push() the result and jump to the address just popped.
&gt; 
&gt; Sure, that's fairly standard. The other thing you often want is for the
&gt; return instruction to pop/deallocate any local variables as well.

Aye.  How about support for static variables and recursion.  We 
haven't discussed module level variables (outside of functions).

--
--/*\ Jon A. Lambert - TychoMUD     Internet:jlsysinc#ix,netcom.com /*\--
--/*\ Mud Server Developer's Page &lt;<A  HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>&gt; /*\--
--/*\   "Everything that deceives may be said to enchant" - Plato   /*\--


</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="00514" HREF="msg00514.html">[MUD-Dev] Re: PDMud thread summary</A></strong>
<ul compact><li><em>From:</em> "Adam J. Thornton" &lt;adam#phoenix,Princeton.EDU&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00438" HREF="msg00438.html">[MUD-Dev] Re: PDMud thread summary</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="msg00508.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00510.html">[MUD-Dev] Missing the point:  OpenMUD, Gamora, Casbah, etc.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00438.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00514.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00509"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00509"><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>
<LI><strong><A NAME="00433" HREF="msg00433.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Fri 23 Oct 1998, 23:48 GMT
<UL>
<LI><strong><A NAME="00449" HREF="msg00449.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Darrin Hyrup <a href="mailto:shades#mythicgames,com">shades#mythicgames,com</a>, Sat 24 Oct 1998, 04:10 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00434" HREF="msg00434.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Sat 24 Oct 1998, 00:02 GMT
</LI>
<LI><strong><A NAME="00438" HREF="msg00438.html">[MUD-Dev] Re: PDMud thread summary</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, 01:01 GMT
<UL>
<LI><strong><A NAME="00509" HREF="msg00509.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Mon 26 Oct 1998, 05:20 GMT
<UL>
<LI><strong><A NAME="00514" HREF="msg00514.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 26 Oct 1998, 15:48 GMT
<UL>
<LI><strong><A NAME="00515" HREF="msg00515.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Holly Sommer <a href="mailto:hsommer#micro,ti.com">hsommer#micro,ti.com</a>, Mon 26 Oct 1998, 16:08 GMT
<UL>
<LI><strong><A NAME="00516" HREF="msg00516.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>, Mon 26 Oct 1998, 16:20 GMT
<UL>
<LI><strong><A NAME="00517" HREF="msg00517.html">[MUD-Dev] Re: PDMud thread summary</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Mon 26 Oct 1998, 17:20 GMT
</LI>
</UL>
</LI>
</UL>
</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>