From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=BAYES_00,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!wIev9X/j4KklVM1Z5EMf5A.user.46.165.242.75.POSTED!not-for-mail From: Fernando Oleo Blanco Newsgroups: comp.lang.ada Subject: Re: Comparing languages wrt energy, speed, and memory use Date: Tue, 22 Feb 2022 21:10:15 +0100 Organization: Aioe.org NNTP Server Message-ID: <20220222211015.1cdb2a27@linux.fritz.box> References: <0d1a120a-d446-4a15-a1b2-d1b1c5d8b465n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="9470"; posting-host="wIev9X/j4KklVM1Z5EMf5A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-suse-linux-gnu) X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:63553 List-Id: Hello everybody, I am going to leave a few comments regarding this paper that I believe everybody should know. Most if not all of these points are known and have been discussed pretty much everywhere; but a lot of people still don't know them or decide to not know. The programs are taken from the Programming Language Benchmark Game. It is a really cool place that has been providing relevant performance data for a lot of languages and comparisons between them. Here are a few issues: 1. Quite a few languages are not using heavily optimised code. Ada is one of them. Some of those programs are written as direct translations from other languages from people that did not know the target language. 2. Quite a few of those implementations have not been touched in years. Some of the improvements that may have taken place in the language/compiler/tools may not be taken advantage of. For example, the Ada examples are compiled with -gnatNp. Can anybody say what that flag does? x) 3. C/C++/Rust program are competing on getting the best results. Other languages are lagging behind. For example, Fortran could do much better. For a couple of years, the Fortran community has been improving the code little by little and they have managed to improve their results. 4. There are a few controversies. Some languages are not allowed to use higher performance libraries while others are allowed their stl or equivalent that do actually use the same tools as those libraries. Thre are a few other examples. As the very Game page says, do not take the benchmark seriously. But the communities whose languages are on top, they do not care. Ada has been left behind since very few or nobody is actually taking a look at the code and optimising it... We may want to improve some of these tests as a community :) Here are some relevant links: - Benchmark game: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ - Source code: https://salsa.debian.org/benchmarksgame-team/benchmarksgame Regards, Fer Am Sun, 20 Feb 2022 14:59:29 -0800 (PST) schrieb Jerry : > 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 > > It is linked from this Slashdot page which I'm sure is full of > useless chatter. > > https://developers.slashdot.org/story/22/02/20/0143226/is-it-more-energy-efficient-to-program-in-rust >