msg00648.html

1998Q4/msg00648.html · 9.7 KB

From the archive 1998Q4.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Why modules? (Was: Inheritable modules) -->
<!--X-From-R13: Hnqvz Fxnpuraxb <igNserrubyq.pebpbqvyr.bet> -->
<!--X-Date: Sat, 31 Oct 1998 15:04:17 &#45;0800 -->
<!--X-Message-Id: 363B968F.313B27C6#freehold,crocodile.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199810310743.BAA11335@dfw&#45;ix10.ix.netcom.com -->
<!--X-Reference: 363B138A.4C4D484A#ifi,uio.no -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Why modules? (Was: Inheritable modules)</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vt#freehold,crocodile.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="msg00647.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00649.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00627.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00651.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00648">Author</A>
&nbsp;|&nbsp;<A HREF="#00648">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00648">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</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: Why modules? (Was: Inheritable modules)</LI>
<LI><em>From</em>: Vadim Tkachenko &lt;<A HREF="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</A>&gt;</LI>
<LI><em>Date</em>: Sat, 31 Oct 1998 17:00:31 -0600</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>
Ola Fosheim Grøstad wrote:
&gt; 
&gt; "Jon A. Lambert" wrote:
&gt; 
&gt; &gt; I mentioned in an earlier post about not having a core but a set of
&gt; &gt; modules that together implement core functionality....so in that
&gt; &gt; vein...
&gt; 
&gt; Sounds a lot like a mud-oriented library which I suggested quite early on.
&gt; 
&gt; &gt; Why couldn't each module implement it's own desired level of
&gt; &gt; threading.  The loader would dynamically load the module and then
&gt; &gt; start it running using a createthread(), startthread() mechanism.
&gt; 
&gt; Can someone please explain WHY dynamic loading is desired?  I haven't seen
&gt; one good argument yet for why it should be dynamic.  People won't replace
&gt; their magic module twice a day. Probably not once a month either, a reboot
&gt; once a month is quite good!

One of other threads discussed the drawbacks of the downtime. From my
standpoint, this is exactly it: the point of having the dynamic loading
is to eliminate the downtime.

It's a Windows world concept (don't start a religious war here, please)
that you have to reboot as soon as you do anything more offensive than
renaming a file. With a proper design (note, done once) it's possible to
dynaload everything else up to dynaloader code, then you don't need to
shut down the server to upgrade.

The alternative is multitier system with a parallel processing which can
allow you to switch the load off the module and shoot it down (provided
the old and new versions of the module are compatible). But as for me,
cost of creating such a beast (not even hardware, which fades in
comparison to development) is hardly less than a dynaloader.

&gt; Here are some good reasons for making it static:
&gt; 
&gt; 1. easier to implement
&gt; 2. more portable

With the proper abstraction levels, it's not a problem. I don't see how
the static module is simpler if the dynamic one is wrapped and has no
clue about it being dynamically loaded at all. Take look at Apache
design (I'm not saying it's done this way, though).

&gt; 3. faster

On startup? How many times do yo boot it?

&gt; 4. more likely to be reusable in other (non-DevMUD) systems

Absolutely disagree.

&gt; 5. allows for GLOBAL compiler optimization (on SGI for instance). This
&gt;    could be an advantage if you have a lot of traffic crossing object
&gt;    file boundaries.

Could agree here.

[skipped]

&gt; Maybe a 20% speed up isn't all that much, but have 4 levels of 20% speed 
&gt; ups and you'll have a 100% speed up!

Hold on a second... You sure? ;-) 

Actually, out of curiosity, three lines in Perl give:

0:      120
1:      144
2:      172.8
3:      207.36
4:      248.832
5:      298.5984
6:      358.31808
7:      429.981696
8:      515.9780352
9:      619.17364224

So you were off 7.36% ;-)

Mo cookie file contains this entry:

%
The First Rule of Program Optimization:
        Don't do it.

The Second Rule of Program Optimization (for experts only!):
        Don't do it yet.
                -- Michael Jackson
%

&gt; Ola

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are


</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="00667" HREF="msg00667.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</li></ul>
<li><strong><A NAME="00651" HREF="msg00651.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>
<ul compact><li><em>From:</em> Ola Fosheim Grøstad &lt;olag#ifi,uio.no&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00619" HREF="msg00619.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00624" HREF="msg00624.html">[MUD-Dev] Why modules? (Was: Inheritable modules)</A></STRONG>
<UL><LI><EM>From:</EM> Ola Fosheim Grøstad &lt;olag#ifi,uio.no&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00647.html">[MUD-Dev] Re: MUD-Dev's DevMUD: a word of caution</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00649.html">[MUD-Dev] Re: DevMUD:  Module message passing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00627.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00651.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00648"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00648"><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: DevMUD:  Inheritable modules</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00606" HREF="msg00606.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sat 31 Oct 1998, 00:05 GMT
<UL>
<LI><strong><A NAME="00619" HREF="msg00619.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 31 Oct 1998, 07:47 GMT
<UL>
<LI><strong><A NAME="00624" HREF="msg00624.html">[MUD-Dev] Why modules? (Was: Inheritable modules)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sat 31 Oct 1998, 14:13 GMT
<LI><strong><A NAME="00627" HREF="msg00627.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
Thandor <a href="mailto:thandor#donut,dhis.org">thandor#donut,dhis.org</a>, Sat 31 Oct 1998, 15:06 GMT
</LI>
<LI><strong><A NAME="00648" HREF="msg00648.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 31 Oct 1998, 23:04 GMT
<LI><strong><A NAME="00651" HREF="msg00651.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Sun 01 Nov 1998, 00:40 GMT
<LI><strong><A NAME="00653" HREF="msg00653.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 01 Nov 1998, 02:47 GMT
<LI><strong><A NAME="00660" HREF="msg00660.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
Thandor <a href="mailto:thandor#donut,dhis.org">thandor#donut,dhis.org</a>, Sun 01 Nov 1998, 04:45 GMT
<LI><strong><A NAME="00661" HREF="msg00661.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 01 Nov 1998, 05:26 GMT
</LI>
</LI>
</LI>
</LI>
</LI>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</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>

Site Stats

Snippets: 1791
Codebases: 571