<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD-Dev] Re: DevMUD: Inheritable modules -->
<!--X-From-R13: Xb Rvyyba <rzvylNgurybavbhf.arj.bk.np.hx> -->
<!--X-Date: Mon, 2 Nov 1998 02:14:02 -0800 -->
<!--X-Message-Id: 19981102100957.A15559#thelonious,new.ox.ac.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 19981028153702.A8875#divcom,slimy.com -->
<!--X-Reference: Pine.LNX.3.96.981029183651.353A-100000@localhost -->
<!--X-Reference: 19981029164016.B15596#divcom,slimy.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: DevMUD: Inheritable modules</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:emily#thelonious,new.ox.ac.uk">
</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>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00680.html">Previous</a>
| <a href="msg00682.html">Next</a>
]
Thread:
[ <a href="msg00692.html">Previous</a>
| <a href="msg00608.html">Next</a>
]
Index:
[ <A HREF="author.html#00681">Author</A>
| <A HREF="#00681">Date</A>
| <A HREF="thread.html#00681">Thread</A>
]
<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: DevMUD: 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: DevMUD: Inheritable modules</LI>
<LI><em>From</em>: Jo Dillon <<A HREF="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</A>></LI>
<LI><em>Date</em>: Mon, 2 Nov 1998 10:09:57 +0000</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>
Jon Leonard (jleonard#divcom,slimy.com) spake thusly:
> My current thoughts on this:
>
> I don't want to use C++, because it doesn't have the object model I want.
I'd say C makes sense for the basic engine; I personally would probably
end up writing my plugins in C++, but the plugin interface should probably
be C; C has something approaching an ABI whereas C++ emphatically does
not, and it would be nice if plugins compiled with different compilers
on the same platform would work.
> An interface should have a name, and an array of function structures
> like those exported by modules, except without the function pointers.
>
> We should have a source verifier that checks that the claimed interface
> (name-mangled version of the function, or whatever) matches the prototype
> of the function pointer.
>
> There should be a separate collection of defined interfaces, so a module
> can just say "I implement interface X" (this can be verified, of course)
I personally like this idea, where an interface consists of an array
of function pointers. It tends to make for efficient function calls :)
It also works well for communication between languages and for RPC.
I did some tests at some point (I don't have the statistics) which showed
that using this approach was as fast as using virtual functions
and /much/ faster than Java method calls, but about half the speed of
a non-virtual function call.
> This database of interfaces shouldn't be monolithic -- I don't want to have
> to know about all interfaces that someone else might define.
Of course, you would want to know what interfaces were defined by
remote objects in a distributed mud. Perhaps it would be good to look
at COM or possibly CORBA here?
--
Jo
Harmony - the project to create an LGPL Qt clone
<A HREF="http://harmony.ruhr.de">http://harmony.ruhr.de</A>
</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="00573" HREF="msg00573.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
<UL><LI><EM>From:</EM> Jon Leonard <jleonard#divcom,slimy.com></LI></UL></LI>
<LI><STRONG><A NAME="00579" HREF="msg00579.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
<UL><LI><EM>From:</EM> The Arrow <arrow#trelleborg,mail.telia.com></LI></UL></LI>
<LI><STRONG><A NAME="00583" HREF="msg00583.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
<UL><LI><EM>From:</EM> Jon Leonard <jleonard#divcom,slimy.com></LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00680.html">[MUD-Dev] Re: Why modules? (Was: Inheritable modules)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00682.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00692.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00608.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00681"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00681"><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>
<ul compact>
<ul compact>
<LI><strong><A NAME="00851" HREF="msg00851.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 22 Nov 1998, 23:04 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00617" HREF="msg00617.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, 06:30 GMT
</LI>
<LI><strong><A NAME="00684" HREF="msg00684.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Mon 02 Nov 1998, 10:41 GMT
<UL>
<LI><strong><A NAME="00692" HREF="msg00692.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Tue 03 Nov 1998, 00:24 GMT
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00681" HREF="msg00681.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
Jo Dillon <a href="mailto:emily#thelonious,new.ox.ac.uk">emily#thelonious,new.ox.ac.uk</a>, Mon 02 Nov 1998, 10:14 GMT
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00608" HREF="msg00608.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sat 31 Oct 1998, 00:17 GMT
<UL>
<LI><strong><A NAME="00615" HREF="msg00615.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
Thandor <a href="mailto:thandor#donut,dhis.org">thandor#donut,dhis.org</a>, Sat 31 Oct 1998, 04:29 GMT
<UL>
<LI><strong><A NAME="00637" HREF="msg00637.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
The Arrow <a href="mailto:arrow#trelleborg,mail.telia.com">arrow#trelleborg,mail.telia.com</a>, Sat 31 Oct 1998, 21:07 GMT
<UL>
<LI><strong><A NAME="00654" HREF="msg00654.html">[MUD-Dev] Re: DevMUD: Inheritable modules</A></strong>,
Thandor <a href="mailto:thandor#donut,dhis.org">thandor#donut,dhis.org</a>, Sun 01 Nov 1998, 02:53 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>