1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: atomic functions -->
<!--X-From-R13: "Tryvk O. Qebrf" <sryvkNkf1.fvzcyrk.ay> -->
<!--X-Date: Wed, 6 May 1998 14:31:27 &#45;0700 -->
<!--X-Message-Id: 199805062128.XAA11391#xs1,simplex.nl -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: atomic functions</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:felix#xs1,simplex.nl">
</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="msg00436.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00438.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00511.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00444.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00437">Author</A>
&nbsp;|&nbsp;<A HREF="#00437">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00437">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: atomic functions</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: atomic functions</LI>
<LI><em>From</em>: "Felix A. Croes" &lt;<A HREF="mailto:felix#xs1,simplex.nl">felix#xs1,simplex.nl</A>&gt;</LI>
<LI><em>Date</em>: Wed, 6 May 1998 23:28:45 +0200 (MET DST)</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: "Petidomo List Agent -- Kanga.Nu version" &lt;<A HREF="mailto:petidomo#kanga,nu">petidomo#kanga,nu</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
J C Lawrence &lt;claw#under,engr.sgi.com&gt; wrote:

&gt; On Fri, 1 May 1998 15:11:58 +0200 (MET DST) 
&gt; Felix A Croes&lt;felix#xs1,simplex.nl&gt; wrote:
&gt;
&gt;
&gt; &gt; What it actually does is impose an execution order on bits of
&gt; &gt; atomically executed code:
&gt;
&gt; &gt;	foo()
&gt; &gt;	{
&gt; &gt;	    atomic {
&gt; &gt;		/* code fragment 1 */
&gt; &gt;	    }
&gt; &gt;	    atomic {
&gt; &gt;		/* code fragment 2 */
&gt; &gt;	    }
&gt; &gt;	    atomic {
&gt; &gt;		/* code fragment 3 */
&gt; &gt;	    }
&gt; &gt;	}
&gt;
&gt; I suspect that you are confusing some logical equivalences.
&gt;
&gt; From an execution view point there are units which execute atomically.
&gt; What the logical or language scope of those units are is really beside
&gt; the point.  They're merely atomic units, and it is from those units
&gt; that the world progression is made.  
&gt;
&gt; You are attempting to solve the problem of enforcing order of
&gt; compleation of such atomic units thru blocking structures, and to add
&gt; the concept of aggregate atomic actions via nesting.  No?  

Uh... no.  There is no blocking involved.  `atomic { ... }' is just
an atomic function in a different guise.

Also, I am not trying to solve any problems in C&amp;C at all.  Rather,
I propose something that exists only within an event, and thus is
invisible from the C&amp;C point of view.

Within an event, the atomic elements are individual virtual
machine instructions.  It is on that level that atomic functions
are atomic -- they are either executed as a whole or not at all.
The code you quote above can only be said to be similar to a
sequence of events in C&amp;C if runtime errors causes the event to
fail.  No further similaries intended or implied.


&gt; C&amp;C odering really doesn't have anything to do with the C&amp;C model, and 
&gt; is external to the atomicity requirements of the C&amp;C model.  Why?  C&amp;C 
&gt; defines the basic unit of existance: the state change.  An individual
&gt; state change is insular -- it has no relevance to other state
&gt; changes.  It is your __external__ process model which imposes its snes 
&gt; of order upon your state changes.
&gt;
&gt; Next up nested C&amp;C's are a logical fallacy for similar reasons (there
&gt; are some really good papers on this on the web if I could remember
&gt; where), but a useful modelling tool.  Nested C&amp;C's offer the idea of a 
&gt; larger aggregate state change being composed of previously define and
&gt; known insular state changes.  The problem is that that model doesn't
&gt; work at the logical level.  The super-state change has to inherit the
&gt; working sets and exit criteria of the nested state changes in order to 
&gt; validate its own C&amp;C, and refuse the allow the nested state changes to 
&gt; commit until that time.  If it did not it could fail C&amp;C and attempt to
&gt; rollback nested events which have already commited.

Disagreed.  You are implicitly assuming that all changes are
committed at the same level.  All that is needed to get the above
to work is to let nested commits affect the super-state change's
local, copied state instead.

That would also make the nested C&amp;C's more like atomic functions
inside the super C&amp;C -- though it is still an awkward comparision
otherwise.

I think the confusion stems from two different meanings of the
word 'atomic':

 1) an event is atomic because it does not overlap with other
    events.  This is the C&amp;C viewpoint.
 2) an atomic function is atomic because it is executed either
    as a whole, or not at all.

Only if events fail on runtime errors are the two meanings identical
in practise.

Felix Croes

-- 
MUD-Dev: Advancing an unrealised future.

</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="00444" HREF="msg00444.html">[MUD-Dev] Re: atomic functions</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#under,engr.sgi.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="msg00436.html">[MUD-Dev] Re: PK and my "Mobless MUD" idea</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00438.html">[MUD-Dev] Re: PK and my "Mobless MUD" idea</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00511.html">[MUD-Dev] Re: atomic functions</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00444.html">[MUD-Dev] Re: atomic functions</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00437"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00437"><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: atomic functions</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00558" HREF="msg00558.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 13 May 1998, 21:41 GMT
<UL>
<LI><strong><A NAME="00584" HREF="msg00584.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Thu 14 May 1998, 20:00 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00559" HREF="msg00559.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 13 May 1998, 21:46 GMT
</LI>
</ul>
<LI><strong><A NAME="00511" HREF="msg00511.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Tue 12 May 1998, 01:17 GMT
</LI>
</ul>
<LI><strong><A NAME="00437" HREF="msg00437.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Felix A. Croes <a href="mailto:felix#xs1,simplex.nl">felix#xs1,simplex.nl</a>, Wed 06 May 1998, 21:31 GMT
<UL>
<LI><strong><A NAME="00444" HREF="msg00444.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 06 May 1998, 22:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00453" HREF="msg00453.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Thu 07 May 1998, 06:02 GMT
<UL>
<LI><strong><A NAME="00540" HREF="msg00540.html">[MUD-Dev] Re: atomic functions</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Wed 13 May 1998, 18:06 GMT
<UL>
<LI><strong><A NAME="00556" HREF="msg00556.html">[MUD-Dev] Re: atomic functions</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 13 May 1998, 21:20 GMT
</LI>
</UL>
</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>