comp.lang.ada
 help / color / mirror / Atom feed
From: mgk25@cl.cam.ac.uk (Markus Kuhn)
Subject: Re: Ada for numerics computation (i.e. forget Fortran ?)
Date: 1999/04/23
Date: 1999-04-23T00:00:00+00:00	[thread overview]
Message-ID: <7fqeua$ih8$1@pegasus.csx.cam.ac.uk> (raw)
In-Reply-To: 372083A1.45A5EB97@t-online.de

In article <372083A1.45A5EB97@t-online.de>, HNBeck@t-online.de (Hans N. Beck) writes:
|> does anyone has experiences with Ada and numerical
|> applications ?

Have you seen

  http://amok.ast.univie.ac.at/~stift/stift_home.html

which is a web page that propagates the use of Ada95 in
astrophysics number crunching.

|> Does Ada fit for this?

It think it does! You have all the types available (including complex),
you have a better exception handling than in Fortran, and with tasks,
you have a powerful construct for using parallel processors. Ada is
certainly much better suited than C, which thanks to the array/pointer
duality prevents many of the strong optimizations that number-crunching
applications need on modern RISK architectures. C implicitely assumes
that arrays have to be stored always in RAM (as opposed to registers),
while compilers can handle non-aliased Ada arrays much more flexible.

(I actually wonder, whether GNAT 3.11p does produce more efficient
code for non-aliased arrays than the corresponding C code, or whether
GNAT limits itself to the optimization capabilities of gcc.)

|> It's not only a question of types available, but also
|> of efficiency (speed) of the compilers.

You get Ada compilers today that are quite comparable in efficiency
with C compilers. On more exotic architectures such as super
computers, you might not find the same level of optimization yet
as it is available for Fortran 77 compilers. It depends a lot on the
architecture.

Markus

-- 
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org,  WWW: <http://www.cl.cam.ac.uk/~mgk25/>




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

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-23  0:00 Ada for numerics computation (i.e. forget Fortran ?) Hans N. Beck
1999-04-23  0:00 ` Markus Kuhn [this message]
1999-04-24  0:00   ` bglbv
1999-04-25  0:00     ` Edwin Guenthner
1999-04-25  0:00       ` Robert Dewar
1999-04-25  0:00       ` bill
1999-04-25  0:00         ` Edwin Guenthner
1999-04-26  0:00         ` Jean-Pierre Rosen
1999-04-26  0:00           ` Edwin Guenthner
1999-04-26  0:00             ` Markus Kuhn
1999-04-27  0:00               ` me
1999-04-27  0:00                 ` Matthew Heaney
1999-04-27  0:00                   ` dennison
1999-04-27  0:00                 ` Jean-Pierre Rosen
1999-04-28  0:00                   ` Edwin Guenthner
1999-04-28  0:00                     ` Jean-Pierre Rosen
1999-04-23  0:00 ` Gautier
1999-04-23  0:00   ` Gautier
1999-04-27  0:00 ` Joachim Schroeer
replies disabled

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