Re:Which Programming Languages Use the Least Electricity?
by tlamponi on Sunday October 18, 2020 @10:22AM
(#24818058)
We write server software, running 24/7 by hundreds of thousands of server, so even double the development time on a single machine would be easily offset hundreds to thousand folds by a more efficient executable.
But, you even need to go to C if you would like to achieve that, e.g., using rust gives you nice level of abstractions and is highly efficient.
Re:Which Programming Languages Use the Least Electricity?
by _ph_ on Sunday October 18, 2020 @11:17AM
(#24818453)
Right, there are many languages, which give you "good enough" efficiency but are much better suited for development and stability.
Re:Which Programming Languages Use the Least Electricity?
by ByteJockey on Sunday October 18, 2020 @10:06AM
(#24817972)
Sure, but for anything long running or potentially just long lived that gets run a lot, the chart would approach roughly this one.
Re:Which Programming Languages Use the Least Electricity?
by _ph_ on Sunday October 18, 2020 @10:18AM
(#24818037)
Yes, the longer the program runs, e.g. the kernel of a computer, the more the overall energy consumption approaches the ranking listet in the paper, as far as those benchmarks are meaningful. They are not very good about dynamic memory allocation in long-running programs though.
But that is only testing the run time of a program. What this paper does not cover, is for example the energy needed to compile the program and of course, the energy needed to write and debug the program. The whole reason not to write "everything" in C is, that there is a real-life tradeoff between having the fastest possible program which also would be the most efficient, and the effort to create it. Higher level and dynamic languages have been created to create correct programs with less effort. Mostly of expensive programmers, but development time obviously goes along with energy usage for the development machine, compiler runs, debugging effort.