comp.lang.ada
 help / color / mirror / Atom feed
From: Dan Nagle <dnagle@erols.com>
Subject: Re: should I be interested in ada?
Date: 1999/02/19
Date: 1999-02-19T11:03:55+00:00	[thread overview]
Message-ID: <36CD44CF.A61DAE96@erols.com> (raw)
In-Reply-To: 7aikfp$nhq$3@plug.news.pipex.net

Hello,

Nick Roberts wrote:
> 
> Dan Nagle wrote in message <36CC6AC0.25DBE56D@erols.com>...
<snip requoted material>
 
> 'Raw floating point speed' is largely to do with the target architecture.
> Those speed-critical operations which are not hard-wired or micro-coded are
> carefully implemented in assembly. I don't believe there are any differences
> in the opportunities for optimisation between Ada and Fortran (e.g. Ada
> supports global variables, it just doesn't force them on you).

Does Ada enforce anti-aliasing rules regarding the global variables?

Do the Ada constructs which have been given as substitutes for
Fortran 95 array syntax have an implied order of operation?
I'll grant you that a modern programming language, Ada95 or
Fortran95 can define operators and assignments to mimic f95
array syntax.  Can Ada mimic f95 array _semantics_?  If I use
the Ada constructs, is there an implied order of evanualtion?
If I say

real, dimension( n, n) :: a, b    ! f95-speak for 2 nxn arrays of reals

and then say

a = b                             ! f95 array assignment

The order in which the assignments occur if unspecified.  Thus,
it may happen in parallel, or in _any_ order the compiler finds
most optimal.  Can any of the Ada constructs proposed deliver
the semantics of f95 array operations?

I really am simply courious.  I see many things in Ada which
I find attractive and I want to know about the optimization issues.
> 
> Thus, the high-level language is, theoretically, completely immaterial. Of
> course, in practice, you may well find Fortran compilers which have better
> written libraries and/or better optimisation. And, of course, for
> multi-processor targets, there are the (many!) parallelising Fortran
> compilers.

Unfortunately, autoparallelization is like automatic programming.
It's just not all that good.  Any reasonably competent programmer
can beat the best autoparallelizer by a substantial margin.  For truly
_scalable_ solutions, one usually resorts to message passing (via
mpi or pvm), and there simply are no automatic tools for using
them.
> 
> |I know Fortran fairly well, I'm learning Ada and like it so far.
> |Right now, if I had to fly, I'd like the airplane to be designed
> |in Fortran, with the fly-by-wire done in Ada.  Just trying to use
> |the right tool for the right job.
> 
> Fortran is very much a general-purpose language now. But my curiosity is
> piqued: for which part of flying an aeroplane would you consider Fortran to
> be the 'right tool for the job'?

Design.  Fortran's speed will let the design engineer use a finer
grid, which gives a better analysis, which makes for safer, quieter,
etc. ariplanes.
> 
> |Please feel free to enlighten me about Ada's optimization capabilities.
> 
> This is an issue which happens to be close to my heart. I would like someone
> to point out to me an optimisation that can be done in Fortran (or any other
> general purpose imperative language) which cannot be done in Ada. There may
> be such optimisations - I have an open mind - but I have never come across
> any yet.

I've tried to do that above.

<snip sig>

-- 

Cheers!
Dan Nagle		dnagle@erols.com




  reply	other threads:[~1999-02-19  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         ` 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               ` dennison
1999-02-19  0:00                 ` Nick Roberts
1999-02-20  0:00                   ` robert_dewar
1999-02-22  0:00                     ` Nick Roberts
1999-02-19  0:00                 ` robert_dewar
1999-02-19  0:00                 ` William Clodius
1999-02-19  0:00               ` Phillip Helbig
1999-02-18  0:00         ` Jerry Petrey
1999-02-18  0:00           ` Nick Roberts
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                 ` Dan Nagle [this message]
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-19  0:00                 ` robert_dewar
1999-02-19  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                     ` 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-18  0:00             ` Joel Seidman
1999-02-18  0:00           ` fraser
1999-02-19  0:00             ` Matthew Heaney
1999-02-20  0:00               ` fraser
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
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                 ` 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-24  0:00               ` 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     ` robert_dewar
1999-02-18  0:00       ` Nick Roberts
1999-02-18  0:00         ` William Clodius
1999-02-18  0:00           ` dennison
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