2000Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] ColdStore.  Belated response from a developer. -->
<!--X-From-R13: [vebfyni Evybivp <fvybivpNmrfbv.sre.ue> -->
<!--X-Date: Sun, 23 Apr 2000 14:46:00 &#45;0700 -->
<!--X-Message-Id: 7er9bx2571.fsf@zesoi.fer.hr -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 20000422001959.76C5B2F02C@sharedtech.eyep.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] ColdStore.  Belated response from a developer.</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:silovic@zesoi.fer.hr">
</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="msg00533.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00534.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00502.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00539.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00531">Author</A>
&nbsp;|&nbsp;<A HREF="#00531">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00531">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] ColdStore.  Belated response from a developer.</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>: Re: [MUD-Dev] ColdStore.  Belated response from a developer.</LI>
<LI><em>From</em>: Miroslav Silovic &lt;<A HREF="mailto:silovic#zesoi,fer.hr">silovic#zesoi,fer.hr</A>&gt;</LI>
<LI><em>Date</em>: 22 Apr 2000 23:31:30 +0200</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#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>

colin#field,medicine.adelaide.edu.au writes:

&gt; ColdStore compresses small integers too.

Could you post a bit more about ColdStore internals on this list?

I was under impression that it used plain virtual memory to talk to
hardware (thus getting speed).

&gt; I'd have thought the storage between Cold and ColdStore was
&gt; comparable.

The last version of Cold storage is my work, and one I'm not
particularily proud of (okay, this is an understatement. In actuality,
it's a brown paper bag quality code - I want to wear one over my head
when I think about certain things in there). :)

&gt; ColdStore doesn't set out to make C++ programming safe, because
&gt; that's impossible.  It sets out to provide a toolkit for supporting
&gt; higher-level interpreted languages in which one would write
&gt; applications.

The website suggested it was C++ persistent store system, I was
replying under that assumption.

&gt; It's certainly necessary to thoroughly engineer the C++ classes you
&gt; use and to avoid world-stopping bugs, however Miro's argument could
&gt; apply to any complex piece of code upon which your world depends,
&gt; the o/s, the db backend.

'Don't write buggy code' is not something I'd recommend to a
programmer and expect gratitude. :)

&gt; You could look at ColdStore as a C++-extensible database engine
&gt; which has been optimised for the kinds of storage one would require
&gt; for MUDs.  Certainly, if the database is buggy your MUD will be
&gt; toast.  Recommend: don't extend the db with buggy code.

Ditto above.

&gt; One could certainly use the toconstructor() facility for changing
&gt; the raw layout of objects.
&gt; 
&gt; This would be painful, however, and one would be well advised to
&gt; think through the raw layout of lowest level objects before
&gt; committing them to persistent store.

Assuming that ColdStore is not meant to store C++ objects, but only be
used with an interpreter to keep it in check, this makes sense.

&gt; &gt;- db format is highly non-portable. It's not just architecture dependant, 
&gt; it's C++ compiler dependant (as object layout may change).
&gt; 
&gt; Certainly.  It was a design decision to localise the cost of moving
&gt; between architectures to the time when one might wish to actually
&gt; move them, rather than seek to support an abstracted/portable format
&gt; for which one pays on each access.
&gt; 
&gt; Many database formats are not immediately/binary portable, usually the 
&gt; databases have to be serialised or marshalled before moving them.

Does ColdStore support this, or is it supposed to be provided by an
application sitting on top of it?

&gt; I was in the process of writing it right out in favour of GC, when
&gt; someone pointed out to me that refcounting is a great storage
&gt; optimiser - ColdStore collections and vector types share all
&gt; substructure, and implement Copy On Write semantics on low level
&gt; objects.

This is acceptable if you already decided to pay the penalty for
having an interpreter in the first place.

&gt; I don't see the problem with using inline assembly for atomic
&gt; increments, that's what inline assembly is for.  It's what we use,
&gt; nicely wrapped in a Counter class.

*.......* (insert any number of sounds here)

&gt; Maximising data locality by sharing substructure will always tend to
&gt; increase contention between threads at the same time as it tends to
&gt; decrease page faults.  This is a classic trade-off: throughput
&gt; vs. responsiveness.  Are networks really fast enough, yet, that
&gt; response-lag is an issue?
&gt; 
&gt; As long as the time taken to swap a page from disk is much longer
&gt; than a thread context switch, I'll tend to worry more about locality
&gt; than thread performance, most particularly since most of large MUD
&gt; architectures don't even have real multitasking.

Okay, I think this is the central issue.

Yes, textual MUDs are bandwidth-bound. However, this list is not only
about textual MUDs. Also, I think that bandwidth-bound MUDs are not
interesting any more (because even MOO, once that memory became cheap,
CPUs became fast, and codebase became slightly more optimised than it
used to be, is now bandwidth-bound - so why bother inventing a better
mousetrap?)

Now, if you have a predictive client (one that keeps some state, and
knows how to evolve and display it), you can just send diffs from the
server, saving LOTS of bandwidth. In that case, the interesting things
become possible, but the server bottleneck shifts from bandwidth to
processing. Refer to this list's archive for examples.

Notice about paging - you have to write to the page each time you
increase the refcount, and refcount may get increased just by passing
pointers around. This is different from GC schemes, where you only
touch the pages you really want to write to (the tradeoff being the
need for write barrier, with any decent GC). Then there is robustness
of GC compared to refcounting (as reported by people involved with
Mozilla project). Refcounting certainly makes sense if the ammount of
the code in native language (C++, in this case) is small - but I don't
like assuming that for a low level system I'd like to see in wide use.

&gt; Additionally, the authors of Texas don't answer email, the build
&gt; process entails heavy use of a hacked gdb (using STABS to generate
&gt; object interpretation code for swizzling) and Texas has no support
&gt; for dynamically loading new objects into a store.

I actually meant to say that Texas is a cool concept whose
implementation desperately needs a complete rewrite, preferably by a
team of programmers (rather than a team of computer scientists). :)

To conclude, within the assumptions you decided to work with,
ColdStore seems cool (modulo my disagreement with use of inline
assembly). But I tend to work under VERY different assumptions. :)

-- 
How to eff the ineffable?



_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</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="00546" HREF="msg00546.html">Re: [MUD-Dev] ColdStore. Belated response from a developer.</A></strong>
<ul compact><li><em>From:</em> colin@field.medicine.adelaide.edu.au</li></ul>
<li><strong><A NAME="00539" HREF="msg00539.html">Re: [MUD-Dev] ColdStore.  Belated response from a developer.</A></strong>
<ul compact><li><em>From:</em> "Jay Carlson" &lt;nop@mitre.org&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00502" HREF="msg00502.html">[MUD-Dev] ColdStore.  Belated response from a developer.</A></STRONG>
<UL><LI><EM>From:</EM> colin@field.medicine.adelaide.edu.au</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00533.html">Re: [MUD-Dev] defeating twinking through game mechanics</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00534.html">Re: [MUD-Dev] LED0</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00502.html">[MUD-Dev] ColdStore.  Belated response from a developer.</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00539.html">Re: [MUD-Dev] ColdStore.  Belated response from a developer.</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00531"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00531"><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="00521" HREF="msg00521.html">[MUD-Dev] [Meta] Ex-Origin Employees to new Verant studio</A></strong>, 
Eli Stevens <a href="mailto:wickedgrey@wickedgrey.com">wickedgrey@wickedgrey.com</a>, Sat 22 Apr 2000, 18:12 GMT
<LI><strong><A NAME="00524" HREF="msg00524.html">Re: [MUD-Dev] BioWare to demonstrate Neverwinter Nights at E3</A></strong>, 
Jeff Freeman <a href="mailto:SkeptAck@antisocial.com">SkeptAck@antisocial.com</a>, Sat 22 Apr 2000, 18:11 GMT
<LI><strong><A NAME="00523" HREF="msg00523.html">[MUD-Dev] Game Spec</A></strong>, 
Jman77777 <a href="mailto:Jman77777@aol.com">Jman77777@aol.com</a>, Sat 22 Apr 2000, 18:11 GMT
<LI><strong><A NAME="00502" HREF="msg00502.html">[MUD-Dev] ColdStore.  Belated response from a developer.</A></strong>, 
colin <a href="mailto:colin@field.medicine.adelaide.edu.au">colin@field.medicine.adelaide.edu.au</a>, Sat 22 Apr 2000, 04:13 GMT
<UL>
<LI><strong><A NAME="00531" HREF="msg00531.html">Re: [MUD-Dev] ColdStore.  Belated response from a developer.</A></strong>, 
Miroslav Silovic <a href="mailto:silovic@zesoi.fer.hr">silovic@zesoi.fer.hr</a>, Sun 23 Apr 2000, 21:46 GMT
<UL>
<LI><strong><A NAME="00539" HREF="msg00539.html">Re: [MUD-Dev] ColdStore.  Belated response from a developer.</A></strong>, 
Jay Carlson <a href="mailto:nop@mitre.org">nop@mitre.org</a>, Mon 24 Apr 2000, 01:20 GMT
</LI>
<LI><strong><A NAME="00546" HREF="msg00546.html">Re: [MUD-Dev] ColdStore. Belated response from a developer.</A></strong>, 
colin <a href="mailto:colin@field.medicine.adelaide.edu.au">colin@field.medicine.adelaide.edu.au</a>, Mon 24 Apr 2000, 18:47 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00500" HREF="msg00500.html">[MUD-Dev] shrink wrapped mud development kit (fwd)</A></strong>, 
J C Lawrence <a href="mailto:claw@cp.net">claw@cp.net</a>, Fri 21 Apr 2000, 01:52 GMT
<UL>
<LI><strong><A NAME="00508" HREF="msg00508.html">Re: [MUD-Dev] shrink wrapped mud development kit (fwd)</A></strong>, 
Richard Ross <a href="mailto:rross@redhotant.com">rross@redhotant.com</a>, Sat 22 Apr 2000, 04:13 GMT
</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>