4 ms·
What Are the Greenest Programming Languages?
- adrianomartins 5y agoThe original paper was already posted in HN back in November, in it has a great discussion: https://news.ycombinator.com/item?id=29263961 https://news.ycombinator.com/item?id=29263961
- alpaca128 5y agoI 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?"
- raxxorrax 5y agoMy 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.
- leathersoft 5y agoVery 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).