Re:Which Programming Languages Use the Least Electricity?
by dvfjsdhgfv on Sunday October 18, 2020 @06:48AM
(#24816885)
Apart from the main subject of whether energy consumption tells us anything meaningful, Whenever I see such benchmarks withoud D and Nim, I feel like the readers will get a skewed view, and with each such benchmark this view will be reinforced. My gut feeling would be that these two languages would be between C and C++ (at least some other benchmarks place them there), but it would be good to have it confirmed.
[ Parent
| on HN ]
Re:Which Programming Languages Use the Least Electricity?
by a9h74j on Monday October 19, 2020 @02:43AM
(#24823848)
Yes, and another interesting benchmark could involve "how much energy and time to compile (or start up) equivalent programs written in different languages?" Based upon its design philosophy (fast compilation) I would expect D to rank quite well.
OTOH there could be a Jenkins paradox where faster compilation results in more compiler consumption (e.g., iterative development). As you say (and I see a comment above addressing this) what are we optimizing for?