News for hackers. Stuff that matters.
Re:The Reason Java Is Still Popular by kaba0 on Thursday September 22, 2022 @03:54PM (#32943842)
C++ is still the choice for truly performance-critical applications, period.
Re:The Reason Java Is Still Popular by adam_arthur on Thursday September 22, 2022 @04:14PM (#32944036)
Because of network effects, not because of the language itself. Thus dominance will fade over time.

There are many modern languages that are more ergonomic and just as fast.

Re:The Reason Java Is Still Popular by AnimalMuppet on Thursday September 22, 2022 @07:29PM (#32945987)
No, actually because of the language itself.

What matters most in high-performance computing? The algorithm, sure. What's in second place? Memory alignment.

Memory alignment determines whether or not I can use SIMD. It also determines how many cache misses I have.

Can I fight that battle using Rust? Maybe. Is it as convenient as in C++? Is any other language? as convenient as C++?

Re:The Reason Java Is Still Popular by steveklabnik on Thursday September 22, 2022 @07:50PM (#32946144)
Rust absolutely lets you control alignment, and use SIMD. I won’t claim to make a comparison to C++ here because I have never done that sort of work in it, but it is absolutely a thing.
Re:The Reason Java Is Still Popular by adam_arthur on Thursday September 22, 2022 @11:48PM (#32947810)
There are tons of modern languages that allow low level memory access, including Rust. Nobody chooses C++ due to it being more convenient than modern languages.