comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: speed of generic code in Ada (vs Java)
Date: Fri, 23 May 2008 19:16:07 -0500
Date: 2008-05-23T19:16:07-05:00	[thread overview]
Message-ID: <g17mpq$rp3$1@jacob-sparre.dk> (raw)
In-Reply-To: wcc1w3seile.fsf@shell01.TheWorld.com

"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message 
news:wcc1w3seile.fsf@shell01.TheWorld.com...
> "Randy Brukardt" <randy@rrsoftware.com> writes:
...
>> The net effect is that generalizations about Ada performance are probably
>> not well-founded. Usually, Ada performance is similar to that of C++, but
>> implementation differences can be a big deal and more different than 
>> those
>> between languages.
>
> I disagree.  Performance of Ada is pretty-close to C and C++ in most
> cases.  Performance of Ada is better than Java (and Smalltalk and ...)
> in most cases.  The implementation matters, but the language rules
> matter more.

You haven't used a wide enough variety of Ada compilers if you say that. 
Janus/Ada in particular. :-) The performance characteristics of Janus/Ada 
are very different than GNAT, on a variety of things: generics, 
discriminanted records, exceptions, tasking, just to name a few. (Sometimes 
better, sometimes worse.) Another example would be the old AdaEd compiler, 
where the result was always interpreted.

I agree that the language characteristics have a role to play (especially 
things that require dynamic memory allocation, implicitly or explicitly), 
but the implementation differences also matter a lot. I'd expect that a 
highly optimized Java JIT compiler would beat AdaEd on most measures, for 
example.

                             Randy.







      reply	other threads:[~2008-05-24  0:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 17:31 speed of generic code in Ada (vs Java) jhc0033
2008-05-16 18:12 ` jimmaureenrogers
2008-05-16 18:54   ` Ludovic Brenta
2008-05-17  1:50     ` jhc0033
2008-05-17  2:04       ` Georg Bauhaus
2008-05-17  6:32       ` Niklas Holsti
2008-05-17  8:07       ` Ludovic Brenta
2008-05-17 21:37       ` Gautier
2008-05-17 23:31         ` Ivan Levashew
2008-05-22 22:01     ` Florian Weimer
2008-05-21  8:12   ` Graham
2008-05-21 15:41     ` Robert A Duff
2008-05-22  0:06       ` Randy Brukardt
2008-05-23 22:55         ` Robert A Duff
2008-05-24  0:16           ` Randy Brukardt [this message]
replies disabled

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