1998Q4/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: openmud: open issues -->
<!--X-From-R13: Hnqvz Fxnpuraxb <igNserrubyq.pebpbqvyr.bet> -->
<!--X-Date: Fri, 30 Oct 1998 17:55:03 &#45;0800 -->
<!--X-Message-Id: 363A6D16.A072ECBB#freehold,crocodile.org -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 36393B52.4ACD20B3#freehold,crocodile.org -->
<!--X-Reference: 9810300712270R.22929@d185d1e96 -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: openmud: open issues</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vt#freehold,crocodile.org">
</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="msg00608.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00610.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00590.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00485.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00609">Author</A>
&nbsp;|&nbsp;<A HREF="#00609">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00609">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: openmud: open issues</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: openmud: open issues</LI>
<LI><em>From</em>: Vadim Tkachenko &lt;<A HREF="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</A>&gt;</LI>
<LI><em>Date</em>: Fri, 30 Oct 1998 19:51:18 -0600</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>
James Wilson wrote:
&gt; 
&gt; On Thu, 29 Oct 1998, Vadim Tkachenko wrote:

&gt; &gt;&gt; 8. memory management: garbage collection? explicit allocation/deallocation?
&gt; &gt;
&gt; &gt;At least some kind of smart pointer with a mark-n-sweep or reference
&gt; &gt;counter, the latter is better in the languages like C++ where it's
&gt; &gt;possible to have static/automatic objects behave as their dynamic
&gt; &gt;counterparts (explanation will follow if there's enough demand; I had a
&gt; &gt;very stable implementation working exactly the same for MS-DOS, Windows
&gt; &gt;and OS/2, only Java prevented it from existing in UNIX incarnation)
&gt; 
&gt; reference counting? how do you reclaim cycles?

Honestly, I didn't ;-) My concern when I was developing the reference
counting scheme was this:

I add object A to container C1.
I add object A to container C2.

Then, one of the following happens:

- One of the containers dies. How do I know what to do with the object?
RC solves this problem.
- Both containers die. Object A dies, too (RC drops to 0).
- Automatic object A goes beyond the scope. If its RC is not 0, boom.

Most problematic part was to make sure the static, automatic and dynamic
objects are handled in the same way. To do that, static and automatic
objects get RC=1 at the creation time, and in the destructor before
checking RC I decrement it.

I guess, the cycles weren't resolved properly, but it's difficult to
tell because the last line in C++ for me was in 1994.

&gt; James

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are


</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="00585" HREF="msg00585.html">[MUD-Dev] Re: openmud: open issues</A></STRONG>
<UL><LI><EM>From:</EM> Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00590" HREF="msg00590.html">[MUD-Dev] Re: openmud: open issues</A></STRONG>
<UL><LI><EM>From:</EM> James Wilson &lt;jwilson#rochester,rr.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00608.html">[MUD-Dev] Re: DevMUD:  Inheritable modules</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00610.html">[MUD-Dev] Re: DevMUD Objectives?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00590.html">[MUD-Dev] Re: openmud: open issues</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00485.html">[MUD-Dev] openmud or pdmud or devmud</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00609"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00609"><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: OpenMUD: bus-based communications</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00496" HREF="msg00496.html">[MUD-Dev] Re: OpenMUD: bus-based communications</A></strong>, 
Niklas Elmqvist <a href="mailto:d97elm#dtek,chalmers.se">d97elm#dtek,chalmers.se</a>, Sun 25 Oct 1998, 19:52 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00486" HREF="msg00486.html">[MUD-Dev] openmud: open issues</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 14:37 GMT
<UL>
<LI><strong><A NAME="00585" HREF="msg00585.html">[MUD-Dev] Re: openmud: open issues</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Fri 30 Oct 1998, 04:10 GMT
<UL>
<LI><strong><A NAME="00590" HREF="msg00590.html">[MUD-Dev] Re: openmud: open issues</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Fri 30 Oct 1998, 12:23 GMT
<UL>
<LI><strong><A NAME="00609" HREF="msg00609.html">[MUD-Dev] Re: openmud: open issues</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 31 Oct 1998, 01:55 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00485" HREF="msg00485.html">[MUD-Dev] openmud or pdmud or devmud</A></strong>, 
James Wilson <a href="mailto:jwilson#rochester,rr.com">jwilson#rochester,rr.com</a>, Sun 25 Oct 1998, 14:16 GMT
<UL>
<LI><strong><A NAME="00494" HREF="msg00494.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Darrin Hyrup <a href="mailto:shades#mythicgames,com">shades#mythicgames,com</a>, Sun 25 Oct 1998, 18:07 GMT
<UL>
<LI><strong><A NAME="00505" HREF="msg00505.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Hal Black <a href="mailto:hal#moos,ml.org">hal#moos,ml.org</a>, Mon 26 Oct 1998, 01:00 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00525" HREF="msg00525.html">[MUD-Dev] Re: openmud or pdmud or devmud</A></strong>, 
Jon Leonard <a href="mailto:jleonard#divcom,slimy.com">jleonard#divcom,slimy.com</a>, Tue 27 Oct 1998, 00:25 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>