1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: [DevMUD] Re: Database module -->
<!--X-From-R13: X Q Znjerapr <pynjNxnatn.ah> -->
<!--X-Date: Mon, 21 Dec 1998 22:24:34 &#45;0800 -->
<!--X-Message-Id: E0zsLFC&#45;00078N&#45;00#mail,kanga.nu -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: XFMail.981221232233.cynbe#muq,org -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: [DevMUD] Re: Database module</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:claw#kanga,nu">
</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="msg01037.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01039.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01037.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01039.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01038">Author</A>
&nbsp;|&nbsp;<A HREF="#01038">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01038">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: [DevMUD] Re: Database module</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] Re: Database module </LI>
<LI><em>From</em>: J C Lawrence &lt;<A HREF="mailto:claw#kanga,nu">claw#kanga,nu</A>&gt;</LI>
<LI><em>Date</em>: Mon, 21 Dec 1998 22:24:33 -0800</LI>
<LI><em>cc</em>: <A HREF="mailto:devmud#kanga,nu">devmud#kanga,nu</A></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 Mon, 21 Dec 1998 23:22:33 -0800 (PST) 
cynbe &lt;cynbe#muq,org&gt; wrote:

&gt; On 22-Dec-98 J C Lawrence wrote:

&gt;&gt; I went thru the problem of ObjectID's and their re-use on MUD-Dev
&gt;&gt; extensively.  A key problem is that there may be pointers or
&gt;&gt; references to an object after the object has been destructed, and
&gt;&gt; that once you have an ObjectID-&gt;human_readable-&gt;ObjectID
&gt;&gt; translation mapping, you can never guarantee that a reference count
&gt;&gt; is accurate.

&gt; JLC's solutions, as always, are sensible and effective.

&lt;kof&gt;

&gt; I've been using a slightly different wrinkles for similar problems:

&gt; (1) Instead of using a time_t as guard bits, one can use a
&gt; trulyRandom integer. 

Within very large values of "TRUE" there are no truly random number
generators.  Yes, there are some, just not many (ie I'd wager not from
from 1,000 on the planet, total).  (cf LavaRand at
<A  HREF="http://lavarand.sgi.com/">http://lavarand.sgi.com/</A> -- I work with some of the guys that did
LavaRand BTW).

&gt; It is often practical to make this long enough to make collision
&gt; probability effectively zero for the purposes at hand.  

Unfrotunately approximately zero is never quite the same as zero.

&gt; If you have to code trulyRandom integer generation up from scratch,
&gt; this may not be worth the effort, but almost any distributed system
&gt; these days will have true random bits implemented for public-key &amp;tc
&gt; purposes, so the incremental cost of using them is often very low.

Ahem.  Not quite true.  They may have damned good PRNG's, very well
tested, graphed, measured, and expertly coded PRNG's with well
documented behaviours and caveats, but they are very definitely
Pseudo-RNG's.

Why go for a PRN, especially when its a time bomb waiting to happen
that you can't predict, can't detect when it doesn happen, and can't
(usefully or elegantly) handle the effects of when it does blow up?
Yes, its bloody rare, I'm just not fond of that sort of thing,
especially when I have an alternative and a guaranteed correct one at
that (assuming system time is reliable (Kanga.Nu is NTP stratum 3
right now, soon to be stratum 2 if I have my way)).

&gt; (2) If you need to pass numbers through human channels, a possible
&gt; improvement on UUENCODE-ing style translation is: (a) Pick a set of
&gt; 1024 words (probably short, single-syllable words) (b) bite off
&gt; 10-bit chunks from your integer, and use each to select a word from
&gt; the set: A 64-bit integer becomes seven words.  The result will be a
&gt; number encoding with much more mnemonic value to native speakers
&gt; than the corresponding UUENCODE-ed version: I'm sure any of us can
&gt; remember seven words easier than 16 random hex digits.  (For extra
&gt; credit: Pick separate verb, noun and adjective sets of 1024 words,
&gt; and arrange for your numbers to make grammatical sentences.  I'll
&gt; bet this will increase the mnemonicity of the encoded numbers
&gt; significantly.)

Nice.

-- 
J C Lawrence                              Internet: claw#kanga,nu
----------(*)                            Internet: coder#kanga,nu
...Honorary Member of Clan McFud -- Teamer's Avenging Monolith...


</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="01039" HREF="msg01039.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>
<ul compact><li><em>From:</em> cynbe#muq,org</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01037" HREF="msg01037.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></STRONG>
<UL><LI><EM>From:</EM> cynbe#muq,org</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01037.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01039.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01037.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01039.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01038"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01038"><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="01046" HREF="msg01046.html">[MUD-Dev] (fwd) Re: DESIGN: Proposed topic of Discussion (Injecting Pure Signal)</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 23 Dec 1998, 02:37 GMT
<LI><strong><A NAME="01045" HREF="msg01045.html">[MUD-Dev] [RRE]AAAI 1999 Fall Symposium: Narrative Intelligence</A></strong>, 
Bruce Mitchener, Jr. <a href="mailto:bruce#puremagic,com">bruce#puremagic,com</a>, Wed 23 Dec 1998, 00:47 GMT
<LI><strong><A NAME="01036" HREF="msg01036.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Tue 22 Dec 1998, 04:30 GMT
<UL>
<LI><strong><A NAME="01037" HREF="msg01037.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
cynbe <a href="mailto:cynbe#muq,org">cynbe#muq,org</a>, Tue 22 Dec 1998, 05:32 GMT
<UL>
<LI><strong><A NAME="01038" HREF="msg01038.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Tue 22 Dec 1998, 06:24 GMT
<UL>
<LI><strong><A NAME="01039" HREF="msg01039.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
cynbe <a href="mailto:cynbe#muq,org">cynbe#muq,org</a>, Tue 22 Dec 1998, 10:14 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01040" HREF="msg01040.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
Jay Carlson <a href="mailto:nop#mitre,org">nop#mitre,org</a>, Tue 22 Dec 1998, 15:02 GMT
<UL>
<LI><strong><A NAME="01042" HREF="msg01042.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
cynbe <a href="mailto:cynbe#muq,org">cynbe#muq,org</a>, Tue 22 Dec 1998, 20:12 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01041" HREF="msg01041.html">[MUD-Dev] Re: [DevMUD] Re: Database module</A></strong>, 
T. Alexander Popiel <a href="mailto:popiel#snugharbor,com">popiel#snugharbor,com</a>, Tue 22 Dec 1998, 16:32 GMT
</LI>
</UL>
</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>