comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Are rendezvous dead?
Date: Mon, 15 Apr 2002 09:38:52 -0400
Date: 2002-04-15T13:38:53+00:00	[thread overview]
Message-ID: <a9el5d$4jr$1@nh.pace.co.uk> (raw)
In-Reply-To: sYfu8.157$h24.105729203@newssvr11.news.prodigy.com

"Pat Rogers" <progers@classwide.com> wrote in message
news:sYfu8.157$h24.105729203@newssvr11.news.prodigy.com...
>
>
> If tasks require _direct_ communication/synchronization, rendezvous is
generally
> the right way to go for that specific part of their behavior.  Otherwise,
> protected objects are preferable.
>
>
There are a variety of Object Oriented design idioms I've run into recently
dealing with Active Objects and how they might communicate with each other.
For a number of these idioms the Ada rendesvous is a simple, direct
representation that would likely be more efficient than cobbling together
the same answer using protected objects (or some other mechanism). For other
idioms, the heavy weight of the rendezvous is the proverbial Brick Outhouse
and often it is harder to do this way. (e.g. a mailbox where you just want
to leave data for another task to process when it gets around to it.) For
the lighter-weight communication and synchronization, protected objects are
a real blessing & improvement over Ada83.

You really want to have both kinds of tools in the toolbox because design
needs vary. I'd see the rendezvous and protected types both being available
to the designer as a major advantage that Ada has over many other languages.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com





  reply	other threads:[~2002-04-15 13:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-14  8:42 Are rendezvous dead? Anatoly Chernyshev
2002-04-14 10:55 ` Dmitry A.Kazakov
2002-04-14 14:00 ` Pat Rogers
2002-04-15 13:38   ` Marin David Condic [this message]
2002-04-14 19:52 ` Robert Dewar
2002-04-16  8:48   ` John McCabe
2002-04-15 14:04 ` Ted Dennison
2002-04-15 16:09   ` Jim Rogers
2002-04-15 16:36     ` Jean-Pierre Rosen
replies disabled

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