1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Persistant storage....  My current idea. -->
<!--X-From-R13: Pra Uerrne <terrneNploreuvtujnl.arg> -->
<!--X-Date: Sun, 29 Mar 1998 05:34:55 +0000 -->
<!--X-Message-Id: Pine.LNX.3.96.980328222126.666A&#45;100000#shamen,cyberhighway.net -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Persistant storage....  My current idea.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:greear#cyberhighway,net">
</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="msg00912.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00914.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00916.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00914.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00913">Author</A>
&nbsp;|&nbsp;<A HREF="#00913">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00913">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Persistant storage....  My current idea.</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: mud-dev &lt;<A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A>&gt;</LI>
<LI><em>Subject</em>: Persistant storage....  My current idea.</LI>
<LI><em>From</em>: Ben Greear &lt;<A HREF="mailto:greear#cyberhighway,net">greear#cyberhighway,net</A>&gt;</LI>
<LI><em>Date</em>: Sat, 28 Mar 1998 22:34:54 -0700 (MST)</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>

Well, there was a lot of good information come out of that
discussion.

First my criteria:  I'm using java, and don't want to deal with
external software (read DB's) if at all possible.

I want simple transport/backup of the persistant world.  (read few or one
file).

I'm going to go kinda simple, but code OO so that it should be easy
enough to swap it out later.

*********************

I'm currently planning on using one file, with certain blocks
allocated within it for objects.  It will basically be a linked
list represented as a file.

I'll have headers that point the the seek position of the next and
previous element in the file.  It will also keep track of the used and
total space allocated for that element.

If I need to update, and it's too big, it will be moved to the end
of the file, and the previous element will get it's space.  (I'll deal
with boundary cases, sufice it to say.)

Now, this reeks of inneficiency when trying to look up an object based on
some key (object number in my case, probably 8 bytes ).

However, I'm going to create a hash table at boot time to link an object
id with the seek position of that object in the file.  I believe this
should give me as quick access as I can expect.

*************************

Some other things:  I'll have objects unique across the universe, even
different servers.  (Each server will be assigned an ID, and each object
within that server will have a unique ID.  So, given both ID's, I can
guarantee uniqueness.)

I don't see more than 100 or so servers collaborating at a time, so the
host lookup tables will be as in the early internet:  You have to modify
them by hand...none of this DNS stuff :)

But imagine all the fun of figuring out currency exchanges and whatnot?
What if some admin makes his server a power server, and others go for
a minimal approach...what to do??  Whoa, need to think about this.

Maybe I won't let them....

*******************************


Now I just have to figure out how I'm going to do the grapics part :)

When I know enough to ask a decent question, I'll let you know!

PS.  I hope the fact that the last message I saw was about a change
in the mailing list software isn't a bad sign!!

aka Grock

Ben Greear (greear#cyberhighway,net)  <A  HREF="http://www.primenet.com/~greear">http://www.primenet.com/~greear</A> 
Author of ScryMUD:  mud.primenet.com 4444
<A  HREF="http://www.primenet.com/~greear/ScryMUD/scry.html">http://www.primenet.com/~greear/ScryMUD/scry.html</A>


</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="00914" HREF="msg00914.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>
<ul compact><li><em>From:</em> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00912.html">Re: (rec.games.mud.admin) Roleplaying (fwd)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00914.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00916.html">UML &amp; CORBA</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00914.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00913"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00913"><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="00921" HREF="msg00921.html">Re: [MUD-Dev]: smoothing</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 31 Mar 1998, 23:59 GMT
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00922" HREF="msg00922.html">Re: [MUD-Dev]: smoothing</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 01 Apr 1998, 00:04 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00916" HREF="msg00916.html">UML &amp; CORBA</A></strong>, 
Greg Munt <a href="mailto:greg#uni-corn,demon.co.uk">greg#uni-corn,demon.co.uk</a>, Mon 30 Mar 1998, 21:53 GMT
<LI><strong><A NAME="00913" HREF="msg00913.html">Persistant storage....  My current idea.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sun 29 Mar 1998, 05:34 GMT
<UL>
<LI><strong><A NAME="00914" HREF="msg00914.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sun 29 Mar 1998, 06:24 GMT
<UL>
<LI><strong><A NAME="00915" HREF="msg00915.html">Re: [MUD-Dev]  Persistant storage....  My current idea.</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Mon 30 Mar 1998, 04:41 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00912" HREF="msg00912.html">Re: (rec.games.mud.admin) Roleplaying (fwd)</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Fri 27 Mar 1998, 20:37 GMT
<LI><strong><A NAME="00911" HREF="msg00911.html">META: New Mail server and ISP</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Fri 27 Mar 1998, 18:23 GMT
</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>