News for hackers. Stuff that matters.
Re:Which Programming Languages Use the Least Electricity? by diqwndwqiond on Sunday October 18, 2020 @07:00AM (#24816950)
not java.
Re:Which Programming Languages Use the Least Electricity? by imtringued on Sunday October 18, 2020 @07:32AM (#24817077)
Java is in the top 5 in the energy usage chart. It's only at the bottom of the memory usage chart (this was expected).
Re:Which Programming Languages Use the Least Electricity? by fnord123 on Sunday October 18, 2020 @08:52AM (#24817490)
It's super interesting how Java got into the top 5 in the energy usage chart since the JVM is JIT compiling the code and running the code. It's doing more work than the other compiled languages so its budget to come in using less watts is really strict (Pascal, Chapel, Ocaml, Haskell, ). It's something worth exploring further.

In fact in the updated version with Julia added[1] , Julia takes very long to do anything since the Julia warmup is so awful. But somehow even though Julia takes 2.57 times longer to compute results (357%) than Rust and 93x more memory for fannkuch-redux, it's using only 23% more energy. All the while doing tracing JIT and rewriting memory segments to set for execution.

[1] https://sites.google.com/view/energy-efficiency-languages/up...

Re:Which Programming Languages Use the Least Electricity? by throwaway189262 on Sunday October 18, 2020 @09:58PM (#24822747)
Java's JIT is fast and quite good. The only JIT language faster than Java (that I know of) is C#
Re:Which Programming Languages Use the Least Electricity? by chrisseaton on Sunday October 18, 2020 @07:42AM (#24817134)
What makes you say that? Java is better than almost all other languages here for energy efficiency.
Re:Which Programming Languages Use the Least Electricity? by diqwndwqiond on Sunday October 18, 2020 @09:39AM (#24817801)
It was a joke: "java bad".
Re:Which Programming Languages Use the Least Electricity? by chrisseaton on Sunday October 18, 2020 @10:33AM (#24818128)
But the evidence being presented here says that joke doesn't make sense in this context. If it's a joke it's an ignorant one.