PDA

View Full Version : Languages energy-consumption



ReneMiner
22-05-2018, 00:48
Mostly programmers think of execution-speed or conserving memory but did you ever think of differences in energy-consumption when using a programming-language?

https://thenewstack.io/which-programming-languages-use-the-least-electricity/

Petr Schreiber
28-05-2018, 19:40
Hi Rene,

this is an interesting benchmark, thanks for sharing.

Interesting to see the dark side of functional languages illustrated like this.

Maybe I would appreciate more clarity regarding which C, C++ and Rust implementations were used.
Using just "gcc" for C/C++ is mkay, but specifying Rust just by version is a sign of a bit less scientific research.
Rust can use different compilers as backends and I am confident the results would vary a lot.


Petr

matthew
28-05-2018, 21:56
I would have thought that languages that are interpreted or that need a Virtual Machine / Framework would have higher energy requirements. But with modern processors doing so many things in the background regarding Caching and Optimisations, I'm not too sure any longer.