1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: DevMUD &#45; thoughts.1 -->
<!--X-From-R13: Quevf Uenl <ptNnzv&#45;pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Sun, 25 Oct 1998 14:38:09 &#45;0800 -->
<!--X-Message-Id: 199810252235.PAA02959@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: DevMUD - thoughts.1</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="msg00499.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00501.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00497.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00488.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00500">Author</A>
&nbsp;|&nbsp;<A HREF="#00500">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00500">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>: 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>: Sun, 25 Oct 1998 15:35:52 -0700</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>
[James Wilson:]

Again, thanks for the details. I'm now understanding what you were getting
at better.

Hmm. Any comments from others on Niklaus' or James' information?

[My stuff snipped.]

 &gt;yes, that's the other meaning of 'dynamic typing' that I was advocating.

OK. So long as things like:

    int f(int i, j) {
	return i + j;
    }
    Print(f(1, f(2, 3));

require *no* run-time checks, then we are agreeing on the meaning of
these things.

 &gt;modules would need to register their functionality with the dynamic loader,
 &gt;so they could be loaded when such functionality is requested. cf. kerneld,
 &gt;which requires you to run depmod first.

Ah, OK. That wasn't clear to me. I know there is a kerneld running on
this computer, but that doesn't mean I know what it actually does!

 &gt;&gt;I understand the C++ syntax you have written (except for "/* rep */" - is
 &gt;&gt;that just meant to copy the prototype?), but I'm completely failing to
 &gt;&gt;see what you are getting at. Sorry.
 &gt;
 &gt;Writing it as a straight function call makes it impossible to extend by
 &gt;subclassing, whereas using an object makes it possible.

Sorry, you've lost me again. I don't know what you are saying.

 &gt;Why would a handler want state? It seems to me that in a persistent
 &gt;&gt;virtual world, all state should either be attached to the entity
 &gt;&gt;(e.g. player character) doing the action, or be global state attached to
 &gt;&gt;some other persistent entity in the virtual world.
 &gt;
 &gt;*blink* why is that inconsistent with a handler having state? suppose I
 &gt;wanted to write a persistent object that WAS an inputHandler? or do you 
 &gt;mean REALLY global state?

I'm not trying to be difficult here, really, I'm not! But, shouldn't an
inputHandler (whatever that is - I thought it was something that was going
to, say, parse a user input command and then call out to scenario stuff
to handle that command) be usable for any number of inputs from various
sources? Are you suggesting there be an inputHandler object (or whatever)
that is attached to a specific input source like a player character or
NPC? In that case, then I claim that the state is part of the state of
that character. Having it be a separate entity in the persistent database
is a minor detail. However, that being the case, you need to have stuff
setup so that that state is actually saved/restored as needed. Thinking
of the state as part of the character state immediately suggests that it
is saved/restored with other character state. It wasn't at all clear to
me what the semantics of your "inputHandler" state is.

 &gt;this would assume that there's a distinction between DB objects and in-memory
 &gt;objects, no? that is an issue which AFAIK hasn't yet been raised or
 &gt;resolved.

Guilty as charged. I was assuming that. I was (and still am) assuming that
temporary structures, which exist only for the duration of an in-server
operation or connection, have no need to go anywhere near the persistant
universe.

In your discussion of 'inputHandler' it sounds like you are assuming that
all state is persistent automatically, and that there is a link between
an inputHandler and the source who's input it is processing, and hence
saving state about. Is this correct, or am I still missing something?
(Maybe that's too strong - but it does seem that you were assuming that
the state of the inputHandler is automatically persistent, but I didn't
see anything indicating that. Hmm. Either that or your weren't assuming
a fully persistent universe - I'm guilty of assuming that's what we
all want.)

 &gt;agreed, though I would again write that as fields in some object rather than
 &gt;as static, so one could have multiple telnet servers running
 &gt;simultaneously.

OK. That would allow you to have an experimental one being debugged, and
a real one for players to use.

 &gt;&gt;If some modules wish to use shared libraries, that is up to them. 'dlopen'
 &gt;&gt;can take care of that. It is outside our concern. What I think we need is
 &gt;
 &gt;no no, the analogy is that modules ARE shared libraries.

Well, at the system level, they need to be whatever the system requires
them to be in order to be able to load them. But, if we don't need to
think of them as just shared libraries, why do so?

 &gt;&gt;ways whereby, e.g. modules that provide user input/output to the system
 &gt;&gt;can be linked up to modules that provide parsing, scenario code, and
 &gt;&gt;database operations. That linking up isn't done by name, it is done
 &gt;&gt;based on the semantic nature of what is needed.
 &gt;
 &gt;how is this semantic nature determined?

Its determined by module implementors when they decide they need it.
I guess I'm the one being more abstract in this case. How modules get
in communication with each other is an implementation detail. It could
be via names passed to 'dlsym', or it could be something more like
Niklas described.

 &gt;this is not an issue with C++ or suitably name-mangled C.

Sure, just have the interface 'kind' be part of the name.

 &gt;&gt;James, it seems to me you are thinking of building modules that are
 &gt;&gt;aware of each other at compile time. I've been trying to avoid that,
 &gt;&gt;so that only at run-time are they actually attached to one-another.
 &gt;&gt;But then, I could be missing your point altogether. How about a
 &gt;&gt;more detailed example?
 &gt;
 &gt;I guess I don't see the alternative to having modules know about one
 &gt;another at compile time. Either they refer to some external symbols
 &gt;(which end up being function pointers or objects with virtual methods)
 &gt;or ... what? No module refers to any external symbols? All function 
 &gt;calls are done by (a stringified) name?

No, all function calls are done via function pointers. The values in those
pointers are setup by the DevMUD core as part of the module loading.
See the stuff that Niklas posted.

 &gt;you're not coming on strong, at least in this message. and besides, what's
 &gt;wrong with a little debate? we're not delicate little flowers.

"Little Weeeeeed?". I'll bet nobody on the list understands that reference,
to an old English children's magazine entry that later became a short TV
series. Anyway, that's what your mention of little flowers brought to
my twisted mind!

-- 
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="msg00499.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00501.html">[MUD-Dev] Re: PDMud thread summary</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00497.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00488.html">[MUD-Dev] Re: OpenMUD: bus-based communications</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00500"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00500"><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><A NAME="00490" HREF="msg00490.html">[MUD-Dev] Re: MUD verb handling (Was: 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, 16:25 GMT
<LI><strong><A NAME="00489" HREF="msg00489.html">[MUD-Dev] Re: 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, 16:16 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00491" HREF="msg00491.html">[MUD-Dev] Re: 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, 17:24 GMT
<UL>
<LI><strong><A NAME="00497" HREF="msg00497.html">[MUD-Dev] Re: DevMUD - thoughts.1</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 20:45 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00500" HREF="msg00500.html">[MUD-Dev] Re: 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, 22:38 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00488" HREF="msg00488.html">[MUD-Dev] Re: OpenMUD: bus-based communications</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, 16:03 GMT
<UL>
<LI><strong><A NAME="00496" HREF="msg00496.html">[MUD-Dev] Re: OpenMUD: bus-based communications</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 25 Oct 1998, 19:52 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00486" HREF="msg00486.html">[MUD-Dev] openmud: open issues</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 14:37 GMT
<UL>
<LI><strong><A NAME="00585" HREF="msg00585.html">[MUD-Dev] Re: openmud: open issues</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Fri 30 Oct 1998, 04:10 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>