Re:The world could run on older hardware if software optimiz...
by monkeyelite on Wednesday May 14, 2025 @06:01PM
(#43989659)
Yes. And why is that?
Re:The world could run on older hardware if software optimiz...
by Aurornis on Wednesday May 14, 2025 @06:35PM
(#43989892)
Interpreted languages and garbage collection.
Bounds checking barely registers as a factor.
Re:The world could run on older hardware if software optimiz...
by monkeyelite on Wednesday May 14, 2025 @09:40PM
(#43991013)
You can write Java that uses arrays that are allocated once - will it have loops as fast as C? Why not?
And furthermore I don’t suspect you’re proposing we should be using C + bounds checking (that’s already a Gcc flag?). But rather bounds checking is one of many safety features.
The whole pitch of Java is exactly what OP said - let’s just pay 10-30% cost to get these nice portability and memory benefits over C++, and it didn’t work that way especially as memory speeds have diverged from CPU.
Java and Python are not on the same body of water, let alone the same boat.
You can see some comparisons here:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...