comp.lang.ada
 help / color / mirror / Atom feed
From: swhalen@netcom.com
Subject: Re: Ada Protected Object Tutorial #1
Date: 1999/12/19
Date: 1999-12-19T00:00:00+00:00	[thread overview]
Message-ID: <83hi68$75k$1@nntp4.atl.mindspring.net> (raw)
In-Reply-To: slrn85o17d.4ps.kaz@ashi.FootPrints.net

In comp.lang.ada Kaz Kylheku <kaz@ashi.footprints.net> wrote:
...
: It is a cost. I'm not convinced that it's not a cost that is also present
: in Ada implementations, albeit hidden from the programmer. Unless the Ada
: implementation has complete control over thread scheduling, 
  which is obviously
: not true of Ada implementations that run on top of many kinds of operating
: systems.
...

This "clairvoyance" we seem to be talking about is _not_ "hidden from
the programmer".  In Ada you (the programmer) pay a one time "price"
in learning the Ada95 language and you get the benefit of some very
well thought out tools like protected objects.

Once you pay the price of learning how to use Ada95 properly, you gain
the benefit of the compiler and run-time being able to handle many
common situations without the comiler having to ever call any
underlying operating system facility at all. Thus there is a genuine
reduction in overhead compared to using POSIX or other system
facilities in the manner you discuss.  Ada95's tools do _not_ try to
cover all situations, but try to cover many of the problems most
commonly encountered in the real world.

In otherwords: the Ada95 programmer pays a price in the discipline of
knowing the language and using it properly. In return you get a
certain amount of "clairvoyance" in that the compiler can and does do
some of the things you've been assuming it cannot do (which C or C++
or POSIX can't do).  It's not magic: it's the benefit of a rigorously
defined set of semantics that allow the compiler to "know" that it can
control certain things you are used to turning over to POSIX or
another API to the OS.

Steve

-- 
{===--------------------------------------------------------------===}
                Steve Whalen     swhalen@netcom.com
{===--------------------------------------------------------------===}




  reply	other threads:[~1999-12-19  0:00 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-15  0:00 Ada Protected Object Tutorial #1 James S. Rogers
1999-12-16  0:00 ` Kaz Kylheku
1999-12-16  0:00   ` James S. Rogers
1999-12-17  0:00     ` Laurent Guerby
1999-12-16  0:00   ` John English
1999-12-16  0:00     ` Ed Falis
1999-12-16  0:00       ` Usenet Poster Boy
1999-12-17  0:00     ` Karel Th�nissen
1999-12-17  0:00       ` Laurent Guerby
1999-12-18  0:00         ` Kaz Kylheku
1999-12-18  0:00           ` Robert A Duff
1999-12-18  0:00             ` Kaz Kylheku
1999-12-18  0:00           ` Laurent Guerby
1999-12-18  0:00             ` Kaz Kylheku
1999-12-19  0:00               ` Laurent Guerby
1999-12-20  0:00                 ` Stanley R. Allen
1999-12-21  0:00               ` Robert I. Eachus
     [not found]             ` <33qr5scnbs04v391ev4541p5bv48hklg3q@4ax.com>
1999-12-20  0:00               ` Robert A Duff
1999-12-18  0:00         ` Karel Th�nissen
1999-12-18  0:00           ` Laurent Guerby
1999-12-17  0:00       ` Mike Silva
1999-12-24  0:00       ` Kenneth Almquist
1999-12-17  0:00   ` Robert A Duff
1999-12-17  0:00     ` Vladimir Olensky
1999-12-17  0:00   ` Tucker Taft
1999-12-18  0:00     ` Kaz Kylheku
1999-12-18  0:00       ` Robert A Duff
1999-12-18  0:00         ` Kaz Kylheku
1999-12-19  0:00           ` swhalen [this message]
1999-12-19  0:00             ` Kaz Kylheku
1999-12-19  0:00               ` Robert Dewar
1999-12-19  0:00               ` Laurent Guerby
1999-12-20  0:00       ` Vladimir Olensky
1999-12-26  0:00         ` Ehud Lamm
1999-12-26  0:00           ` Robert Dewar
1999-12-26  0:00             ` Kaz Kylheku
1999-12-27  0:00               ` Robert Dewar
1999-12-27  0:00                 ` Richard D Riehle
1999-12-27  0:00                   ` Robert Dewar
1999-12-31  0:00                     ` Richard D Riehle
1999-12-27  0:00                 ` Jean-Pierre Rosen
1999-12-27  0:00               ` Robert Dewar
2000-01-02  0:00             ` Tucker Taft
1999-12-17  0:00 ` Robert A Duff
1999-12-18  0:00   ` Kaz Kylheku
replies disabled

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