comp.lang.ada
 help / color / mirror / Atom feed
From: robert_dewar@my-dejanews.com
Subject: Re: should I be interested in ada?
Date: 1999/02/23
Date: 1999-02-23T00:00:00+00:00	[thread overview]
Message-ID: <7atdf0$gu6$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7aslfp$gpq$1@plug.news.pipex.net

In article <7aslfp$gpq$1@plug.news.pipex.net>,
  "Nick Roberts" <Nick.Roberts@dial.pipex.com> wrote:

> Perhaps Robert should re-read RM95 11.6 (6). Only the
> intervention of an independant subprogram (in the loop)
> would cause the problems he suggests.

Well that's good for a laugh! Robert helped write 11.6,
and has spent hundreds of hours over the years
understanding what it means. If you think it really means
that Ada can provide as much parallelism as Fortran, it is
probably you who are misreading 11.6. This is a pretty
(in)famous section of the RM. All of us know this number
so well that we insisted that the same section number be
used in RM 95 (we just could not imagine this being called
anything but 11.6). 11.6(6) has been discussed and
dissected over a long period, but there is nothing in it
to suggest that the kind of parellelism you suggest is
possible. For example:

   for all J in 1 .. N loop
     S := S + D(J);
   end loop;

The FOR ALL here implies that the additions can be done
in any order. If we write the above loop without the ALL,
there is ABSOLUTELY no permission anywhere in the RM
(including in 11.6(6) that would allow the additions to
be done in other than the canonical order). Note that
the model interval of the result can of course be changed
by changing the order of additions!

There are many other similar examples



> In most code, there will be no such subprogram, but,
anyway, in just about
> any speed critical code an independant subprogram can
almost always be
> avoided (by changing the place its body is declared in
the source text, or
> making it inline).
>
> |This means that FOR ALL is in a sense even more crucial
> |in Ada (which doesn't have it) than in Fortran 95 (which
> |does).
> |
> |All this was covered in rather excruciating detail in
the
> |thread a few years ago about implementing FOR ALL in
Ada.
>
> I never saw this thread: I shall have a little search on
DN. [The trouble
> with DN is that there must be tens of thousands of posts
per year, even on a
> 'signal-dense' NG like CLA. To review it all would be a
Herculean task (give
> a smelly stables any day :-).]
>
> [BTW I would like to restate that I am very pleased -
most gratified
> really -  to see answers to my silly posts from the likes
of Professor
> Dewar, a man who has a rare depth of experience in the
field (of computer
> science and the development of programming languages). My
personal
> philosophy is that the only way to learn is to make
mistakes. To have your
> mistakes pointed out to you by the experts is a
privilege. I say what I
> really think (you may have noticed ;-), and I do not give
praise lightly.]
>
> -------------------------------------
> Nick Roberts
> -------------------------------------
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-02-23  0:00 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-14  0:00 should I be interested in ada? Phillip Helbig
1999-02-15  0:00 ` Gautier
1999-02-15  0:00 ` Marin David Condic
1999-02-23  0:00   ` David Starner
1999-02-16  0:00 ` Ken Thomas
1999-02-17  0:00   ` Nick Roberts
1999-02-18  0:00     ` robert_dewar
1999-02-18  0:00       ` Nick Roberts
1999-02-18  0:00         ` William Clodius
1999-02-18  0:00           ` dennison
1999-02-18  0:00     ` robert_dewar
1999-02-18  0:00       ` Nick Roberts
1999-02-18  0:00         ` William Clodius
1999-02-18  0:00           ` robert_dewar
1999-02-19  0:00             ` William Clodius
1999-02-19  0:00               ` Nick Roberts
1999-02-20  0:00                 ` robert_dewar
1999-02-22  0:00                   ` Nick Roberts
1999-02-22  0:00                     ` William Clodius
1999-02-23  0:00                     ` robert_dewar [this message]
1999-02-23  0:00                       ` Nick Roberts
1999-02-22  0:00                 ` William Clodius
1999-02-23  0:00                   ` Nick Roberts
1999-02-23  0:00                     ` William Clodius
1999-02-25  0:00                       ` Nick Roberts
1999-02-25  0:00                         ` robert_dewar
1999-02-23  0:00               ` Robert I. Eachus
1999-02-24  0:00                 ` William Clodius
1999-02-24  0:00                 ` Nick Roberts
1999-02-26  0:00                   ` Robert A Duff
1999-02-27  0:00                     ` Semantic info pragmas (was: should I be interested in ada?) Nick Roberts
1999-03-01  0:00                       ` Samuel Tardieu
1999-03-01  0:00                         ` Robert A Duff
1999-02-24  0:00               ` should I be interested in ada? William Clodius
1999-02-25  0:00                 ` Nick Roberts
1999-02-25  0:00                   ` robert_dewar
1999-02-26  0:00                     ` Nick Roberts
1999-02-18  0:00           ` nabbasi
1999-02-18  0:00             ` robert_dewar
1999-02-18  0:00         ` Jerry Petrey
1999-02-18  0:00           ` fraser
1999-02-19  0:00             ` Matthew Heaney
1999-02-20  0:00               ` fraser
1999-02-18  0:00           ` Nick Roberts
1999-02-18  0:00             ` Joel Seidman
1999-02-18  0:00             ` Dan Nagle
1999-02-18  0:00               ` nabbasi
1999-02-19  0:00               ` Nick Roberts
1999-02-19  0:00                 ` robert_dewar
1999-02-19  0:00                   ` Nick Roberts
1999-02-19  0:00                     ` William Clodius
1999-02-20  0:00                       ` Nick Roberts
1999-02-21  0:00                         ` robert_dewar
1999-02-21  0:00                           ` William Clodius
1999-02-22  0:00                           ` Nick Roberts
1999-02-19  0:00                     ` robert_dewar
1999-02-21  0:00                       ` William Clodius
1999-02-23  0:00                         ` Robert I. Eachus
1999-02-19  0:00                 ` Dan Nagle
1999-02-19  0:00                   ` robert_dewar
1999-02-19  0:00                     ` Nick Roberts
1999-02-19  0:00                     ` Dan Nagle
1999-02-23  0:00                     ` Peter Hermann
1999-02-18  0:00         ` robert_dewar
1999-02-19  0:00           ` Nick Roberts
1999-02-19  0:00             ` robert_dewar
1999-02-19  0:00               ` William Clodius
1999-02-19  0:00               ` Nick Roberts
1999-02-20  0:00                 ` robert_dewar
1999-02-20  0:00                   ` Steve Doiel
1999-02-20  0:00                 ` robert_dewar
1999-02-22  0:00                   ` Nick Roberts
1999-02-23  0:00                     ` Robert I. Eachus
1999-02-24  0:00                       ` White rabbit (was: should I be interested in ada?) dennison
1999-02-25  0:00                       ` Alice books " JP Thornley
1999-02-25  0:00                         ` Robert I. Eachus
1999-02-22  0:00                   ` should I be interested in ada? dennison
1999-02-19  0:00               ` Phillip Helbig
1999-02-19  0:00               ` dennison
1999-02-19  0:00                 ` robert_dewar
1999-02-19  0:00                 ` William Clodius
1999-02-19  0:00                 ` Nick Roberts
1999-02-20  0:00                   ` robert_dewar
1999-02-22  0:00                     ` Nick Roberts
1999-02-20  0:00 ` Hartmut H. Schaefer
1999-02-20  0:00   ` bill
1999-02-21  0:00     ` dewar
1999-02-21  0:00   ` dewar
1999-02-22  0:00     ` dennison
replies disabled

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