1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DevMUD &#45; thoughts.1 -->
<!--X-From-R13: @vxynf Syzdivfg <q97ryzNqgrx.punyzref.fr> -->
<!--X-Date: Sun, 25 Oct 1998 01:39:50 &#45;0800 -->
<!--X-Message-Id: Pine.SOL.3.96.981025094922.7481C&#45;100000#licia,dtek.chalmers.se -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810250458.WAA02465@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: DevMUD - thoughts.1</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:d97elm#dtek,chalmers.se">
</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="msg00480.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00482.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00477.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00482.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00481">Author</A>
&nbsp;|&nbsp;<A HREF="#00481">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00481">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DevMUD - thoughts.1</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: DevMUD - thoughts.1</LI>
<LI><em>From</em>: Niklas Elmqvist &lt;<A HREF="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</A>&gt;</LI>
<LI><em>Date</em>: Sun, 25 Oct 1998 10:36:48 +0100 (MET)</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 Sat, 24 Oct 1998, Chris Gray wrote:

&gt; Well, instead of working on my own MUD, I've decided to put down some
&gt; thoughts about DevMUD. I find that I think best about something when I
&gt; can understand how its going to work, in terms of possible code. So,
&gt; some of the stuff here will be at a lower level than you might expect
&gt; for this stage of design. Don't worry about it, that's just me thinking
&gt; out loud!

My own MUD is suffering, too, but I really think that this is a better
cause. Plus I've already learned too much stuff on these past few days to
even be able to go back to it now! Complete redesign, if it ever happens,
though it seems more likely I will implement it using DevMUD as its base.

Then again, I might see if I could whip it into a sort-of-working state
and use it as a prototype for showing off my own thoughts. It would
probably be good to have a simple prototype of any architecture we wish to
use so that we don't go out on a limb with something we are not sure will
prove to be the right way for us.

&gt;     Alternatively, we could drop the requirement that modules be allowed
&gt;     to be native or MUD-language, interchangeably? That would at least
&gt;     allow native modules to communicate by direct function calls, which
&gt;     is the most efficient.

I would like to add my vote to dropping this requirement. There should be
a clear distinction between native code modules which are used for
low-level stuff and MUD-language code used for manipulating the world. I
guess this is one vital point where we would differ from mainly-soft-coded
servers like LP and Cold.

&gt; - there was some talk about matching up the interfaces of the modules
&gt;     based on function type and parameters. I think instead we need to
&gt;     define a set (which can grow as needed) of interface kinds, which
&gt;     give a purpose to a given exported definition or reference. Those
&gt;     kinds implicitly include the required function prototype. This
&gt;     will hopefully be clearer in some examples.

Hmm. Having fixed function interfaces seems a little restrictive to me,
but may be the only way to go if we are not to use some other type of
message mechanism (allow me to briefly reiterate that a bus-based
mechanism is in reality an O-O abstraction of function calls/pointers with
the benefit of supporting distributed calls for RPC and CORBA-type
proxies). But what happens when you add need to add more function
interfaces? You would have to update and recompile all affected modules
(hopefully the core exec would be able to stay out of it).

&gt; - threads. My current server isn't threaded, but that doesn't stop me
&gt;     from believing that DevMUD should be threaded. I believe I saw a
&gt;     suggestion that each module should have a thread. That doesn't
&gt;     work too well if the inter-module interface is a function call. That
&gt;     only works if all data going into a module is copied into a record
&gt;     and queued, ready to be processed by the thread of that module.
&gt;     That is imposing unneeded inefficiency. Some modules (e.g. a
&gt;     socket module) will need internal queues (when sockets fill up),
&gt;     but it would be better to not impose that on all modules from the
&gt;     outside.

I agree that it may become inefficient. Once again, I will state that
queueing of messages like this can easily be hidden in the bus system. 
IOW, the modules won't have to deal with it. And although I do not use
multi-threading in my own project (because I lack experience in the
field), I think it should be a requisite of DevMUD.

(Sorry about losing the layout of the original post here, but I screwed it
up by accidentally hitting Ctrl-J (justify) in Pine...)

[Parsing:] 
&gt; Each grammar contains a table of words and their synonyms.  Words which
&gt; are verbs describe what the structure of a command starting with that
&gt; word looks like (so, this doesn't extend to other languages than English
&gt; very well). This description is just a selection of one of: 
&gt; 
&gt; - no other words in the command 
&gt; - a possible extra specific word, then a noun phrase 
&gt; - a noun phrase, a specific word, a second noun phrase 
&gt; - uninterpreted - pass the word list on 
&gt;
&gt; It's a bit more complicated than that, but I hope you get the idea. A
&gt; very simple structure, but it handles most input reasonably well. The
&gt; key is, that associated with each verb word is a reference to a
&gt; MUD-language function to call to process the commands that match that
&gt; verb specification. (The same word can be the verb word for more than
&gt; one specification - the specific extra words are used to choose among
&gt; them.)  So, initially, the parser module exports an input handler
&gt; routine, and a routine by which other modules can tell it about verb
&gt; forms and what to do with them. As modules are loaded which handle
&gt; various verbs, they call that second routine in the parser, which then
&gt; builds up internal structures about the new verb forms. When a module
&gt; is about to be unloaded, it would have to tell the parser to remove
&gt; its entries for the verbs forms that are going away.

I *really* like this parser. Hopefully, we'll be able to do something like
it 

&gt; Because all of this is so different from what I've currently got, I have
&gt; trouble convincing myself that it won't be too restrictive. I need
&gt; convincing! 

I've been arguing with myself about this too, but the difference is that
my current project has a similar (if not as similar as I'd like it to be
:) structure to DevMUD so I have had more time to convince myself. I now
believe that a system like this requires some careful designing in the
initial stages, but later on would allow for some amazing possibilities.
That said, I suggest we prototype things before commiting to them.

&gt; Chris Gray 

-- Niklas Elmqvist (d97elm#dtek,chalmers.se) ----------------------
  "The trouble with being a god is that you've got no one to 
   pray to."
		-- Terry Pratchett, Small Gods



</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="00477" HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</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="msg00480.html">[MUD-Dev] Re: PDMud, Gamora and Casbah</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00481"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00481"><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: openmud or pdmud or devmud</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00505" HREF="msg00505.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Mon 26 Oct 1998, 01:00 GMT
</LI>
</ul>
<LI><strong><A NAME="00525" HREF="msg00525.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 00:25 GMT
<UL>
<LI><strong><A NAME="00526" HREF="msg00526.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Tue 27 Oct 1998, 00:54 GMT
</LI>
</UL>
</LI>
</ul>
</LI>
<LI><strong><A NAME="00477" HREF="msg00477.html">[MUD-Dev] DevMUD - thoughts.1</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 25 Oct 1998, 05:04 GMT
<UL>
<LI><strong><A NAME="00481" HREF="msg00481.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 25 Oct 1998, 09:39 GMT
</LI>
<LI><strong><A NAME="00482" HREF="msg00482.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sun 25 Oct 1998, 11:57 GMT
<UL>
<LI><strong><A NAME="00487" HREF="msg00487.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Sun 25 Oct 1998, 15:11 GMT
</LI>
<LI><strong><A NAME="00543" HREF="msg00543.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 06:57 GMT
<UL>
<LI><strong><A NAME="00549" HREF="msg00549.html">[MUD-Dev] Re: MUD verb handling (Was: DevMUD - thoughts.1)</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Tue 27 Oct 1998, 16:32 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>