logoalt Hacker News

gf000today at 9:39 AM2 repliesview on HN

Java is basically the "greenest" managed language out there, so not sure putting it into the same list for energy efficiency is warranted. Though of course energy efficiency is fundamentally linked to memory usage, not destructing/collecting dead objects will increase memory usage but increase efficiency.

https://www.sciencedirect.com/science/article/pii/S016764232...


Replies

katortoday at 10:16 AM

Reading your link IMHO in today's world I would set a basic rule, if you're touching >20% of a Java codebase you should refactor to Rust. With AI-Native development practices it's worth the SDE time to refactor, replace the underlying subsytem and reduce your fleet by 50% or more.

show 4 replies
rusktoday at 9:52 AM

Indeed, the Java mobile platform had power consciousness baked in 25 or so years ago.