1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals) -->
<!--X-From-R13: OccyrBv[naNnby.pbz -->
<!--X-Date: Fri, 23 Oct 1998 17:30:21 &#45;0700 -->
<!--X-Message-Id: b21d5cc4.36311ea0#aol,com -->
<!--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:ApplePiMan#aol,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="msg00434.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00436.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00396.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00437.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00435">Author</A>
&nbsp;|&nbsp;<A HREF="#00435">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00435">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>: <A HREF="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</A></LI>
<LI><em>Date</em>: Fri, 23 Oct 1998 20:26:08 EDT</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>
At 10/23/98 1:40 AM Niklas Elmqvist (d97elm#dtek,chalmers.se) altered the 
fabric of reality by uttering:

&gt;&gt; Efficient modules isn't enough to make the whole system efficient. You
&gt;&gt; also need efficient intermodule interaction. You don't want to be
&gt;&gt; spraying lots of random things all over. The modules should advertise
&gt;&gt; what they can handle, and the associations should be made once, at the
&gt;&gt; load time of the added module. Then data (commands, output, etc.) flows
&gt;&gt; in a directed manner. We want pipes, not a water sprinkler!
&gt;
&gt;Hmm, you're right. But we also need some way for new modules to broadcast
&gt;their capabilities at the load time. So the water sprinkler at load time,
&gt;then pipes henceforth. Maybe we could use a handshaking protocol like
&gt;this:
&gt;
&gt;1. module is loaded into memory, either at boot-strap time or through
&gt;	other means (an admin adding new functionality to the game or
&gt;	replacing buggy parts)
&gt;2. module connects to the broadcast channel and bellows "here I am, and I
&gt;	am capable of this..."
&gt;3. existing modules will silently process the broadcast message (everyone
&gt;	listens to the broadcast channel) and may decide to ignore the new
&gt;	module 
&gt;4. if not, the interested modules request a pipe/channel to the new module
&gt;	from the core, which they receive 
&gt;5. the modules may, if applicable, send information about themselves
&gt;	through their new pipes to the originating new module (if the new
&gt;	module for example is a new parser which requests grammars from all
&gt;	command handlers)

Through no fault of yours (but rather my tentative grasp of technical 
issues), I don't quite follow that; so I may be saying exactly the same 
thing as you in what follows. If so, forgive me for restating it in my 
own words.

The way I see it working is that a module broadcasts a "here I am" 
message when it first comes online. The "here I am" message is *always* 
broadcast to every module. When a module receives the "here I am" 
message, it decides whether it wants to listen to the new module. If it 
does, it calls the new module's AddListener routine with 'this' (the 
listening module) as a reference, and the new module adds the listener to 
a linked list of modules it will broadcast state changes to. You'll still 
have a degree of (technically) unnecessary traffic; but it's much more 
efficient than the "water sprinkler" approach.

Such a system could be fine-tuned by adding the capability for a listener 
to specify "suites" of events they're interested in being notified for 
(cutting down traffic by having the broadcaster not send changes the 
listener is not *specifically* interested in).

&gt;I am thinking that we could use one-to-many pipes here... Or maybe even
&gt;many-to-many pipes (not sure about that, though). That is, using the above
&gt;handshaking sequence, a parser module would get a single output pipe which
&gt;branches out to all command handlers since they are all interested in the
&gt;parser "in the same way". It would also receive an input pipe from the
&gt;network I/O module. This way, the parser would receive raw input from the
&gt;input pipe, parse it and then emit the processed data to the output pipe,
&gt;not caring who is listening. The processed data is propagated to all 

Seems to me (if I'm understanding you correctly) that's still an awful 
lot of traffic going to modules that don't want it and can't use it 
(since the data is propagated to all). Swarming traffic will eat you 
alive...

&gt;Maybe one-to-one pipes would be better since it would minimize the traffic
&gt;flow and "water sprinkling". However, it would also force central modules
&gt;such as the parser to become much more complicated since they would have
&gt;to keep track of where different pipes lead and what to send on them. Not
&gt;sure about it myself.

Let each module keep track of its own pipes.

&gt;We will also need a defined sequence for modules to disengage themselves
&gt;from the module community and be unloaded. 

Yep... but a module could just send a "going away" message to each of its 
listeners. Then the listeners are responsible for clearing any pending 
transactions, and then shutting down the pipe by telling the broadcasting 
module to remove 'this' as a listener. Once the module's linked list of 
listeners is empty, its safe for it to go away. 

-Rick.



---------------------------------------------------------
Rick Buck, President and CEO  &lt;<A  HREF="mailto:rlb#big-i,com">mailto:rlb#big-i,com</A>&gt;
Beyond Infinity Games, Inc.
See you in The Metaverse! &lt;<A  HREF="http://www.big-i.com">http://www.big-i.com</A>&gt;



</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="msg00434.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00436.html">[MUD-Dev] PDMud, Gamora and Casbah</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00396.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00437.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#00435"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00435"><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>
<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>
<LI><strong><A NAME="00439" HREF="msg00439.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, 01:09 GMT
</LI>
<LI><strong><A NAME="00448" HREF="msg00448.html">[MUD-Dev] Re: PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Sat 24 Oct 1998, 03:33 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00331" HREF="msg00331.html">[MUD-Dev] PDMud (was Re: Bruce Sterling on Virtual Community goals)</A></strong>, 
ApplePiMan <a href="mailto:ApplePiMan#aol,com">ApplePiMan#aol,com</a>, Thu 22 Oct 1998, 01:45 GMT
</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>