comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Comparing languages wrt energy, speed, and memory use
Date: Sun, 27 Feb 2022 09:56:12 +0100	[thread overview]
Message-ID: <svfebe$enc$1@dont-email.me> (raw)
In-Reply-To: <fc550237-5371-4673-907a-99fcde738cc2n@googlegroups.com>

On 2022-02-27 09:05, Robin Vowels wrote:
> On Monday, February 21, 2022 at 9:59:32 AM UTC+11, Jerry wrote:
>> This paper comparing 27 languages with respect to energy use, speed, and memory use is interesting. Of course Ada fares very well.
>>
>> https://greenlab.di.uminho.pt/wp-content/uploads/2017/10/sleFinal.pdf
> .
> Has this anything to do with reality?
> .
> What of the design, testing, and maintainability of programs?

There are a couple of obvious problems with this study. First, the same data 
structures, algorithms, and checks for validity of input and so on, in any 
imperative language, should give very similar machine code. Robert Dewar 
famously had a collection of equivalent Ada and C programs that produced 
identical machine code when compiled with gcc. The kind of differences reported 
between C and Ada or C++ shows that they are comparing apples to orangutans.

Second, there are hard data that show that, compared to low-level languages like 
C, Ada requires 1/2 the effort to reach deployment, and 1/40 the effort to 
correct post-deployment errors. The energy consumption for that additional 
effort should swamp the kind of small differences during execution that this 
study concentrates on.

-- 
Jeff Carter
“A key difference between Ada and most other
software development languages is that Ada is
deigned as an engineering tool as well as a
programming tool.”
Ada Distilled
209

      reply	other threads:[~2022-02-27  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-20 22:59 Comparing languages wrt energy, speed, and memory use Jerry
2022-02-22 20:10 ` Fernando Oleo Blanco
2022-02-22 20:49   ` J-P. Rosen
2022-02-24  7:42   ` G.B.
2022-02-24  9:13     ` Fernando Oleo Blanco
2022-02-27  3:31 ` 25.BX943
2022-02-27  8:05 ` Robin Vowels
2022-02-27  8:56   ` Jeffrey R.Carter [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