logoalt Hacker News

Java is memory efficient [audio]

16 pointsby he0001last Sunday at 7:38 AM10 commentsview on HN

Comments

indoleringyesterday at 9:34 PM

For a definition of "efficient" that isn't shared by anyone else. This isn't a new rationale either, but a well known trade-off involved with JIT compilation and garbage collection. It's the reason Chrome "hogs" memory and Firefox is perceived as slow: they make different resource usage tradeoffs.

It will be interesting to see if the current memory crunch will impact this calculus going forward.

show 1 reply
yomismoaquiyesterday at 11:25 PM

- War is peace

- Ignorance is strength

- Java is memory efficient

njitbewyesterday at 9:41 PM

> But what's the point in leaving available memory on the table if using it makes your program run faster? Efficient use of that resource wouldn't be to leave it untapped but to use it to speed up the program.

What’s the point of having a host with available memory? In today’s clouds, couldn’t you just downsize the host, and save on cost?

pestatijelast Sunday at 11:05 AM

so its not memory efficient then...and nowadays the bottleneck is in memory access not cpu cycles, so the claim more memory use speeds up compute is very doubtful

show 1 reply
sakesuntoday at 1:10 AM

Java was designed to make manual memory management a non-concern. Yet, ironically, it's the runtime that require more explicit memory tuning than any others.

nitwit005yesterday at 10:07 PM

I agree with all the general principles, but the details of Java do matter here. There is a reason they're working hard on Project Valhalla: https://openjdk.org/projects/valhalla/