News for hackers. Stuff that matters.
Re:What Are the Greenest Programming Languages? by raxxorrax on Tuesday February 22, 2022 @03:42AM (#30425453)
My thoughts were just full of 'No' when I read the headline. It is interesting though to try to evaluate language efficiency.

Surprised to see Go behind C# and also the huge jump from JS to Typescript for example. Also what happened to Python and Perl?

Of course this should not be taken too seriously.

> This parameter can no longer be ignored in the future or almost the present; besides, the fastest languages are generally also the most environmentally friendly.

That is a bit much I believe.

Re:What Are the Greenest Programming Languages? by alpaca128 on Wednesday February 23, 2022 @05:10AM (#30439588)
I wonder how you even manage to measure this in a way TypeScript looks so much worse than JavaScript (21.5 vs 4.45). After compilation it's literally the same language.

Edit: The culprit seems to be the compute-heavy benchmark `fannkuch-redux` which basically plays around with permutations. The problem I see with this is that TypeScript is generally used for very different applications, and in those it'll rarely be any different than JS. Same with Python, which you wouldn't use for data crunching without one of the well-known highly efficient libraries (which were not written in Python). So overall this asks the question "what are the greenest programming languages for benchmarks?"

Re:What Are the Greenest Programming Languages? by leathersoft on Tuesday February 22, 2022 @04:45AM (#30425880)
Very interesting, and definitely unusual, analysis of programming languages. I never had thought of programming languages in an ecological way, but after reading the post it makes total sense. Hopefully newer and more efficient languages will come up also bringing efficiency in the functional side (like electric cars, for instance).
Re:What Are the Greenest Programming Languages? by adrianomartins on Wednesday February 23, 2022 @03:40AM (#30439040)
The original paper was already posted in HN back in November, in it has a great discussion: https://news.ycombinator.com/item?id=29263961