1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: Databases: was Re: skill system -->
<!--X-From-R13: X Q Znjerapr <pynjNhaqre.rate.ftv.pbz> -->
<!--X-Date: Thu, 23 Jul 1998 17:25:51 &#45;0700 -->
<!--X-Message-Id: 199807240022.RAA03540#under,engr.sgi.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199807080629.BAA16326@dfw&#45;ix14.ix.netcom.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: Databases: was Re: skill system</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#under,engr.sgi.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="msg00325.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00327.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00076.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00093.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00326">Author</A>
&nbsp;|&nbsp;<A HREF="#00326">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00326">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: Databases: was Re: skill system</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: Databases: was Re: skill system </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 23 Jul 1998 17:22:04 -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>
On Wed, 8 Jul 1998 02:30:28 -5 
Jon A Lambert&lt;jlsysinc#ix,netcom.com&gt; wrote:

&gt; Merged several messages together here. :) 

Polyamory!

&gt; On 26 Jun 98, J C Lawrence  wrote:
&gt;&gt; On Sat, 20 Jun 1998 04:17:25 -5 Jon A
&gt;&gt; Lambert&lt;jlsysinc#ix,netcom.com&gt; wrote:

&gt;&gt; So far I've been very effective in convincing myself that an SQL
&gt;&gt; base is not well suited for a runtime morphic and irregularly
&gt;&gt; patterned (at least as a class heirarchy) MUD.

&gt; Right.  Then again the same problems rear there ugly heads in using
&gt; OODBMSs.  Most of these critters are as static as RDBMSs.  Runtime
&gt; dynamism is rather unique to our problem.  I don't believe many
&gt; persistent storage mechanisms even recognize runtime dynamism.  A
&gt; good place to look for mechanisms may well be in Smalltalk
&gt; literature.

Quite.  I am &gt;this&lt; close to giving up on the RDBMS approach (again)
on account of it just being too resource (especially CPU and IO)
intensive for the benefits gained.  Early simplistic fiddling here has
mostly convinced me that its far too heavy a solution witout obscenely
high percentage DB_size cacheing requirements.

&gt;&gt; &gt; Construct an abstract object model of the object model that the &gt;
&gt;&gt; softcode follows.  Even if you not using relational technology, I &gt;
&gt;&gt; think this is the way to go.
&gt;&gt; 
&gt;&gt; Already done.  Thus the map for ObjectID to method list, to
&gt;&gt; containment directives list etc.  The structure is actually very
&gt;&gt; simple: just four lists (of lists) with an ObhectID tag at the top.

&gt; That's where I started.  The only problems come at the point where
&gt; dynamic primitives (attributes) are mapped.  They can be mapped to
&gt; separate tables by type or to a single table with columns for each
&gt; possible primitive and typing information.  Either approach makes
&gt; adhoc native SQL querying more difficult.  Unless you've constructed
&gt; a query interface that filters attribute typing information. :)

Bingo.  Additionally I found that while table lookups on indexed keys
are cheap, they are not free, and that I do one hell of a lot of
cross-attribute mapping resulting in the old equation of

    &lt;very_cheap&gt;*&lt;large_number&gt; ==  &lt;expensive&gt;

&lt;Sigh&gt;

Ranum's comment of tieing the code to the object is coming home to
roost -- it looks like monolithicly stored internally structured
objects damn near required for performance (tho I probably should play
some more with Texas first).

&gt;&gt;&gt; How many OO-DBMS's or P-Store systems follow your softcode OO 
&gt;&gt;&gt; model? Probably none, right!?

&gt;&gt; I can't comment on the OODBMS end, but that's *exactly* what
&gt;&gt; persistent stores do.  At an idealised level a persistant store is
&gt;&gt; rolled into code as follows:
&gt;&gt; 
&gt;&gt; class persistent bubba { public: lotsa methods(); private: lotsa
&gt;&gt; more_methods(); };
&gt;&gt; 
&gt;&gt; After that all instances of the bubba class are automagically
&gt;&gt; persistent, and by their very nature follow your internal model as
&gt;&gt; that's what your code-model follows (doesn't it?).  Ideally you
&gt;&gt; never see or care about the storage format, indexes, record types,
&gt;&gt; tables, joins, inserts, etc.  You just behave as if you had
&gt;&gt; unlimited battery-backed RAM.  The peristent store merely adds a
&gt;&gt; new flavour modifier to the volatile/automatic/static/const set.

&gt; Yes, but they are not runtime dynamic.  Classes/Object attributes
&gt; are fixed at compile time.  :(

&lt;cock eyebrow&gt;

One could, perhaps, put the persistance libraries underneath something
like CINT (HP's C/C++ interpreter) and thus have them be runtime
morphic.

&lt;!smug&gt;

&gt;&gt; &gt; Perhaps we should be discussing softcode OO models rather than DB
&gt;&gt; &gt; implementations.  Is the softcode-OO-model like Java, C++, ColdC,
&gt;&gt; &gt; LPC, etc.?  Single or Multi inheritence?  Is there a distintion &gt;
&gt;&gt; between object and class?  Are inheritence and attributes dynamic?
&gt;&gt; &gt; Are there built-in or native objects?
&gt;&gt; 
&gt;&gt; The OO model is rather ColdC-like (slightly Python-ish but not
&gt;&gt; quite), with multiple inheritance, clear seperation between
&gt;&gt; definition and instance (object and class), with inheritance and
&gt;&gt; attributes being dynamic.  There are a variety of primitive native
&gt;&gt; objects and (currently) no ability to create ad-hoc ADT's (alas).

&gt; Do you have singleton instances of class objects, like C++?  

Semi.  The base design is there, somewhere, but the implementation
sucks rocks.

&gt; Do attributes and method code reside in the class, object or both?

In design in the class, in practice it varies depending on when I
wrote the heirarchy in question.  ie The language actively encourages
class/instance seperation, but does not outright require it (it
should).

&gt; My model closely reflects C++.  However all inheritence is private
&gt; and thus the softcode model strongly favors composition and
&gt; delegation over inheritance.  Methods and attributes can reside both
&gt; in class instances and in object instances (aka C++ "static").  My
&gt; native objects could best be described as Java interfaces or COM
&gt; objects but they cannot be inherited.

&lt;nod&gt;

&gt;&gt;&gt; What you (and I) are doing is really designing the architecture
&gt;&gt;&gt; of an OO-DBMS.

&gt;&gt; &lt;sigh&gt;

&gt; &lt;insane cackling&gt;

Golly.  You're still tat sane?

-- 
J C Lawrence                               Internet: claw#null,net
(Contractor)                               Internet: coder#ibm,net
---------(*)                     Internet: claw#under,engr.sgi.com
...Honourary Member of Clan McFud -- Teamer's Avenging Monolith...


</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="00076" HREF="msg00076.html">[MUD-Dev] Re: Databases: was Re: skill system</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00325.html">[MUD-Dev] Re: An Introduction</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00327.html">[MUD-Dev] Re: An Introduction</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00076.html">[MUD-Dev] Re: Databases: was Re: skill system</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00093.html">[MUD-Dev] Re: Databases: was Re: skill system</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00326"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00326"><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="00015" HREF="msg00015.html">[MUD-Dev] Summary: "Influence Mapping"</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Jul 1998, 21:25 GMT
<LI><strong><A NAME="00014" HREF="msg00014.html">[MUD-Dev] Elven Language List</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Jul 1998, 21:25 GMT
<LI><strong><A NAME="00013" HREF="msg00013.html">[MUD-Dev] Re: Databases: was Re: skill system</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Jul 1998, 20:47 GMT
<UL>
<LI><strong><A NAME="00076" HREF="msg00076.html">[MUD-Dev] Re: Databases: was Re: skill system</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 08 Jul 1998, 06:29 GMT
<UL>
<LI><strong><A NAME="00326" HREF="msg00326.html">[MUD-Dev] Re: Databases: was Re: skill system</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 24 Jul 1998, 00:25 GMT
</LI>
</UL>
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00093" HREF="msg00093.html">[MUD-Dev] Re: Databases: was Re: skill system</A></strong>, 
s001gmu <a href="mailto:s001gmu#nova,wright.edu">s001gmu#nova,wright.edu</a>, Wed 08 Jul 1998, 20:06 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00008" HREF="msg00008.html">[MUD-Dev] Re: Levelless MUDs</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Wed 01 Jul 1998, 19:39 GMT
<UL>
<LI><strong><A NAME="00027" HREF="msg00027.html">[MUD-Dev] Re: Levelless MUDs</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 02 Jul 1998, 00:32 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00003" HREF="msg00003.html">[MUD-Dev] Re: what's fun?</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Jul 1998, 17:12 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>