comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Ada Annex E (Just curious :-)
Date: Thu, 08 Mar 2001 05:53:19 GMT
Date: 2001-03-08T05:53:19+00:00	[thread overview]
Message-ID: <3AA71E4E.51243AA6@acm.org> (raw)
In-Reply-To: wccr909i7i0.fsf@world.std.com

Robert A Duff wrote:
> 
> Jeffrey Carter <jrcarter@acm.org> writes:
> 
> > One can argue that Annex E is completely superfluous. One could have a
> > compiler that targeted a distributed system, and converted all intertask
> > communications (rendezvous and protected operations) into network
> > messages. A program for a distributed system could look exactly like a
> > program for a multiprocessor, which would make porting from one to the
> > other much simpler.
> 
> One can argue that, but I don't think it's true.  ;-)
> I implemented such a beast for Ada 83.  You could put tasks
> on different nodes of a distributed system.  You could control where
> they ran, or let the system choose (some sort of primitive load
> balancing).  Rendezvous was implemented in terms of message passing
> across the network.
> 
> But we had to "cheat" a little bit.  Above, you mention "rendezvous and
> protected operations" as the intertask communications mechanisms.  But
> there's another one: shared variables.  In Ada (83 and 95) it is
> perfectly legitimate for two tasks to refer to the same variable (so
> long as they synchronize properly, perhaps using rendezvous).  But the
> compiler can't tell which variables are shared.  This pretty much
> implies that all tasks must share the same address space.  (You *could*
> implement distributed shared memory in software, but it would be
> intolerably slow.  And you would have to pay that price even for
> variables local to a single task (or node), because the compiler can't
> tell which variables are shared).

That's true, but I think disallowing shared variables (except protected
objects) is reasonable for all systems :)

-- 
Jeff Carter
"You empty-headed animal-food-trough wiper."
Monty Python & the Holy Grail



  reply	other threads:[~2001-03-08  5:53 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <yJSm6.8482$X_2.140961@news1.oke.nextra.no>
2001-02-28 13:28 ` Ada Annex E (Just curious :-) Marc A. Criley
2001-03-01 17:33   ` Frank
2001-03-02 17:42     ` Robert Spooner
     [not found]       ` <x7vu25bcl22.fsf@smaug.pushface.org>
2001-03-05 19:26         ` Robert Spooner
2001-03-02  9:38 ` Pascal Obry
2001-03-04 19:12   ` Dr Adrian Wrigley
2001-03-05 14:56     ` Ted Dennison
2001-03-05 16:24       ` Marin David Condic
2001-03-06  1:24         ` Dr Adrian Wrigley
2001-03-06 14:51           ` Ted Dennison
2001-03-06 15:23             ` Marin David Condic
2001-03-06 18:42               ` Kevin Rigotti
2001-03-06 20:56                 ` Marin David Condic
2001-03-06 22:47                   ` Robert A Duff
2001-03-07 14:43                     ` Marin David Condic
2001-03-07 18:02                       ` Randy Brukardt
2001-03-07 19:52                         ` Marin David Condic
2001-03-07 21:04                           ` Robert A Duff
2001-03-07 21:45                       ` Robert A Duff
2001-03-07  6:54             ` Jeffrey Carter
2001-03-07 21:39               ` Robert A Duff
2001-03-08  5:53                 ` Jeffrey Carter [this message]
2001-03-07 21:47             ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox