News for hackers. Stuff that matters.
Re:Power to the People by crispinb on Thursday February 27, 2020 @07:25PM (#22439463)
I wonder what software stack choice brings to the table here. Are the differences between the power draws of services written in (equivalent scope & quality) Python/jvm/Rust/node of any measurable significance?

[Edited to emphasise empirical interest]

Re:Power to the People by dodobirdlord on Thursday February 27, 2020 @11:10PM (#22440454)
Interestingly, this has been studied.

https://greenlab.di.uminho.pt/wp-content/uploads/2017/10/sle...

There's a quicker writeup here if slogging through paper's isn't how you want to spend your time.

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

Re:Power to the People by crispinb on Friday February 28, 2020 @12:27AM (#22440723)
Nice, thanks. I've just glanced through and will have a proper read later. It would I guess be pretty complex to extend these kind of isolated tests to whole real-world installations.
Re:Power to the People by zitterbewegung on Thursday February 27, 2020 @08:03PM (#22439661)
In any language I can write efficient or inefficient code.

Practically you could make some kind of synthetic benchmark for each language but then you would have to look at the whole system holistically.

AMD epyc vs IBM Power vs RISC V vs ARM is going to be one set of things to test.

For instance a server that shows google.com vs a server run by Microsoft’s project Oxford doing image classification as a service and a server that runs Reddit are going to have so many variables it’s probably impossible or would require a dedicated engineer(s) to benchmark it.

So basically so many systems are so bespoke it would be really hard.

Re:Power to the People by dilap on Thursday February 27, 2020 @08:21PM (#22439746)
I mean, you do still have to run the software! Take basically any online service and do implementations in Python and Rust -- I guarantee you there'll be a huge differences in amount of power used.

Or just run the same thing written in Python and Rust and your laptop, and see which one drains the battery faster.

Re:Power to the People by wmf on Thursday February 27, 2020 @08:26PM (#22439775)
Generally energy is proportional to instructions executed so faster software is also more energy-efficient. So yeah, empirically, C/C++/Rust is going to be 10x more efficient than interpreted languages.