What are the Greenest Programing Languages????????

What are the Greenest Programing Languages???????

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:

No alt text provided for this image

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


  1. C
  2. Rust
  3. Java
  4. Swift
  5. Haskell
  6. C#
  7. Go
  8. Dart
  9. JavaScript
  10. TypeScript

“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.

?? ???? ?????? ???????? ?????????????????? ?????????????????????? ????????????????, ?????????? ???????????? ?????? ???????? ?????? ?????? ?????????? ?????????????????????????? ???????????????? ?????????????????????? ??????????????????.

Full text:?https://medium.com/codex/what-are-the-greenest-programming-languages-e738774b1957.

The original report with updated info:?https://sites.google.com/view/energy-efficiency-languages/.

Read the Paper

?? 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.

No alt text provided for this image

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:

No alt text provided for this image

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:

  • Skill of the engineers themselves.
  • Debugging energy
  • Lifecycle energy cost
  • Impact of JIT compilers of many languages

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)

Antonio Innocente

Software Engineer | MEng in Chemical Engineering @ Lloyds Banking Group

1 年

Wow Java still doing well ??

回复
Scott McKenzie

Data Excellence Lead at Woolworths New Zealand

2 年

The language means nothing, it's a bizarre statement. Runtime vs storage?!!?

回复
Takahide Maruoka

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)

Martin Morrey

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?

要查看或添加评论,请登录

Michael Spencer的更多文章

  • The Fundamental Lie of OpenAI's Mission

    The Fundamental Lie of OpenAI's Mission

    Welcome Back, Everyone from OpenAI to DeepSeek claims they are an AGI startup, but the way these AI startups are…

    13 条评论
  • Vibe Coding: Revolution or Regression Students and Non-coders?

    Vibe Coding: Revolution or Regression Students and Non-coders?

    Good Morning, As the vibe coding interface takes shape, I’ve been checking out a new startup coming out of stealth this…

    8 条评论
  • The Truth about DeepSeek's Integration in China and WeChat Explained

    The Truth about DeepSeek's Integration in China and WeChat Explained

    DeepSeek's rapid integration in China is a bigger story that is being told. It's not just the China Cloud leaders…

    4 条评论
  • How AI Datacenters Work

    How AI Datacenters Work

    Good Morning, Get the full inside scoop on key AI topics for less than $2 a week with a premium subscription to my…

    5 条评论
  • How Nvidia is down 30% from its Highs

    How Nvidia is down 30% from its Highs

    If like me, you are wondering why Nvidia is down more than 20% this year even when the demand is still raging for AI…

    7 条评论
  • What DeepSeek Means for AI Innovation

    What DeepSeek Means for AI Innovation

    Welcome to another article by Artificial Intelligence Report. LinkedIn has started to "downgrade" my work.

    16 条评论
  • What is Vibe Coding?

    What is Vibe Coding?

    Good Morning, Get access to my best and complete work for less than $2 a week with premium access. I’m noticing two…

    23 条评论
  • TSMC "kisses the Ring" in Trump Chip Fab Announcement

    TSMC "kisses the Ring" in Trump Chip Fab Announcement

    Good Morning, To get the best of my content, for less than $2 a week become a premium subscriber. In the history of the…

    9 条评论
  • GPT-4.5 is Not a Frontier Model

    GPT-4.5 is Not a Frontier Model

    To get my best content for less than $2 a week, subscribe here. Guys, we have to talk! OpenAI in the big picture is a…

    16 条评论
  • On why LLMs cannot truly reason

    On why LLMs cannot truly reason

    ?? In partnership with HubSpot ?? HubSpot Integrate tools on HubSpot The HubSpot Developer Platform allows thousands of…

    3 条评论

社区洞察

其他会员也浏览了