What are the Greenest Programing Languages???????
Michael Spencer
A.I. Writer, researcher and curator - full-time Newsletter publication manager.
What are the Greenest Programing Languages????? ??
If you enjoy programming, datascience and WFH topics, you can subscribe to Datascience Learning Center?here. I cannot continue to write without tips, patronage and community support.
https://datasciencelearningcenter.substack.com/subscribe
Join 29 other paying subscribers. (the price of a cheap coffee)
The Answers may surprise you. But can we trust the study?
Hey Guys,
It’s been a while since I’ve seen this topic covered. As a fan of both ESG and Green Technology and programming languages I was curious. So I looked it up.
Tl;dr here are the results:
I somewhat suspected C and Rust would be near the top here. This is based on a 2021, the original study was in 2017.
Top Green Programming Languages
“This paper presents a study of the runtime, memory usage, and energy consumption of twenty-seven well-known software languages. We monitor the performance of such languages using ten different programming problems, expressed in each of the languages. Our results show interesting findings, such as slower/faster languages consuming less/more energy, and how memory usage influences energy consumption. We show how to use our results to provide software engineers support to decide which language to use when energy efficiency is a concern.”
This study implemented 10 benchmark problems in 27 different programming languages and measure execution time, energy consumption, and peak memory use.
?? ???? ?????? ???????? ?????????????????? ?????????????????????? ????????????????, ?????????? ???????????? ?????? ???????? ?????? ?????? ?????????? ?????????????????????????? ???????????????? ?????????????????????? ??????????????????.
The original report with updated info:?https://sites.google.com/view/energy-efficiency-languages/.
领英推荐
?? A very common misconception when analyzing energy consumption in software is that it will behave in the same way execution time does. In other words, reducing the execution time of a program would bring about the same amount of energy reduction. However power doesn’t follow this rule.
The Computer Language Benchmarks Game
The CLBG initiative includes a framework for running, testing and comparing implemented coherent solutions for a set of well-known, diverse programming problems.
You can see the complete results?here.
I think in some ways the paper is very theoretical and novel and may not fully be totally representative of the challenge of the question, but is pretty amusing at least. I wonder a few years later if this would have changed using the same methodology. As new languages are rolled out like Carbon I wonder if they take this into consideration:
In Case you Missed It
The study is now about five years old:
The paper was popularized by the Rust people from AWS, and many software engineers don’t take it entirely seriously. However it’s highly shareable and stirs up some useful debate.
You can read a 2021 update to this question?here.
There are many variables the study did not take into account according to commentators:
Still the article is a rare example of asking an important and tough question and trying to find the most relevant benchmarks.
Join 33 other paying subscribers for additional content and locked?archive?posts.
If you enjoy programming, datascience and WFH topics, you can subscribe to Datascience Learning Center?here. I cannot continue to write without tips, patronage and community support.
https://datasciencelearningcenter.substack.com/subscribe
Join 29 other paying subscribers. (the price of a cheap coffee)
--
10 个月nothing
Software Engineer | MEng in Chemical Engineering @ Lloyds Banking Group
1 年Wow Java still doing well ??
Data Excellence Lead at Woolworths New Zealand
2 年The language means nothing, it's a bizarre statement. Runtime vs storage?!!?
Credly Top Legacy Badge Earner | ISO/IEC FDIS 42001 | ISO/IEC 27001:2022 | NVIDIA | Google | IBM | Cisco Systems | Generative AI
2 年The programming focus was interesting. I was using python. Japanese SMEs often use JAVA as a large scale development. The reason is also subcontractors of the parent company. I have been using Python. HTML CSS also. Python is easier to use with simple code and short code. I think it is Swift that uses a lot of energy consumption. It freezes quickly when using mac OS. I have stopped using Swift. I am considering C# or C++ which is OS independent. Translated with www.DeepL.com/Translator (free version)
Experienced product manager and director, IT service leader, web and data consultant All opinions my own, not my employer's.
2 年Surely interpreted languages like Python or PERL make heavy use of C or C++ libraries?