From: pontius@btv.vnet.ibm.com (Dale Pontius)
Subject: Re: Success: Ada versus C
Date: 1997/06/09
Date: 1997-06-09T00:00:00+00:00 [thread overview]
Message-ID: <5ngt2t$ei8$2@mdnews.btv.ibm.com> (raw)
In-Reply-To: dewar.865692615@merv
In article <dewar.865692615@merv>,
dewar@merv.cs.nyu.edu (Robert Dewar) writes:
> Dale says
>
> << There is a "Purity" emphasis to the language that leaves you
> (or at least me) fearing that it "CAN'T" be fast. For instance,
> the whole discussion of copying IN and OUT the parameter list
> leaves a taste of poor performance. Read further and you see
>>>
>
> What are you saying here? That call by reference is preferable from an
> efficiency point of view to call by value return for scalars? Surely
> not (most Fortran compilers also pass scalars by value).
>
I'm saying that until you think it through, pass-by-reference seems
faster. Think twice and you see that pass-by-value is faster for
simple values. Pass-by-reference shines on structures, which is
where Ada95 allows it.
I didn't say Ada95 does anything "wrong" or slow, I just said that
at first glimpse it looks that way. Look harder and the "can't run
fast" first impression goes away.
Dale Pontius
(NOT speaking for IBM)
next prev parent reply other threads:[~1997-06-09 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-04 0:00 Success: Ada versus C RC
1997-06-06 0:00 ` Arthur Schwarz
1997-06-06 0:00 ` Dale Pontius
1997-06-07 0:00 ` Robert Dewar
1997-06-09 0:00 ` Dale Pontius [this message]
1997-06-09 0:00 ` Robert Dewar
1997-06-06 0:00 ` Brian Rogoff
1997-06-06 0:00 ` Corey Minyard
1997-06-07 0:00 ` Robert Dewar
1997-06-08 0:00 ` RC
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox