What Are the Greenest Programming Languages?(medium.com)
medium.com
What Are the Greenest Programming Languages?
https://medium.com/codex/what-are-the-greenest-programming-languages-e738774b1957
4 comments
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?"
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?"
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).
The original paper was already posted in HN back in November, in it has a great discussion: https://news.ycombinator.com/item?id=29263961
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.