comp.lang.ada
 help / color / mirror / Atom feed
From: "James B. White, III (Trey)" <trey@osc.edu>
Subject: Re: Ada vs C++ (Expression Templates)
Date: 1997/09/08
Date: 1997-09-08T00:00:00+00:00	[thread overview]
Message-ID: <3413FFA6.D4D@osc.edu> (raw)
In-Reply-To: dewar.873461400@merv


Robert Dewar wrote:
> You say that you can produce wonderful interfaces with this amazing
> capability. What is interesting is to look at such an interface, and
> then ask how that interface would be reflected and implemented in
> other languages. 

I have done exactly this. I started with a small sample calculation used
as an example in an article on expression templates. I implemented the
example in Ada using many techniques. I'll be giving a talk at Tri-Ada
on the results.

> Specific examples typically show that such claims
> are simply inflated and have little substance!

This is what I hoped to prove! I *wanted* to show that these ugly
expression templates were either unnecessary or easier to implement in
Ada. Unfortunately, neither was the case. In my field, high-performance
computing, an order of two difference in performance is significant. For
Ada implementations that created the desired interface, the execution
times were more like three times those of C++ with expression templates.
And the nature of the example calculation would tend to minimizes
differences between compilers, so other examples could perform even
worse!

In other fields, the relative priority of performance versus ease of
development isn't so skewed towards performance. I, however, am in the
unfortunate situation where the performance benefits of expression
templates probably outweigh the other benefits of Ada over C++.


-- 
James B. White, III (Trey)
Ohio Supercomputer Center
trey@osc.edu
<http://www.osc.edu/~trey/>
Phone: (614)292-9291  Fax: (614)292-7168




  parent reply	other threads:[~1997-09-08  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <md5:DB04B9CCA20E8EB6142C50D2DE055239>
     [not found] ` <34090462.4652@easystreet.com>
     [not found]   ` <Pine.SGI.3.95.970831115842.17664A-100000@shellx.best.com>
1997-09-02  0:00     ` Ada vs C++ James B. White, III (Trey)
1997-09-05  0:00       ` Robert Dewar
1997-09-05  0:00         ` Larry Kilgallen
1997-09-05  0:00         ` Brian Rogoff
1997-09-08  0:00         ` James B. White, III (Trey) [this message]
1997-09-08  0:00           ` Ada vs C++ (Expression Templates) Matthew Heaney
     [not found]       ` <Pine.SGI.3.95.970904201703.13590A-100000@shellx.best.com>
1997-09-05  0:00         ` Ada vs C++ Jon S Anthony
1997-09-08  0:00       ` Richard A. O'Keefe
1997-09-08  0:00         ` Ada vs C++ (vs Lisp) James B. White, III (Trey)
1997-09-08  0:00           ` Brian Rogoff
1997-09-09  0:00             ` Robert A Duff
1997-09-09  0:00             ` Ada vs C++ (Ada 0X) James B. White, III (Trey)
1997-09-09  0:00               ` Brian Rogoff
1997-09-10  0:00               ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-09-11  0:00                 ` Anonymous
1997-09-11  0:00                   ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-09-09  0:00       ` Ada vs C++ Joerg Rodemann
1997-09-09  0:00         ` Ada vs C++ (high-performance libraries) James B. White, III (Trey)
replies disabled

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