r/java • • Jun 10 '24

[deleted by user]

[removed]

613 Upvotes

594 comments sorted by

View all comments

Show parent comment

16

u/dxk3355 Jun 10 '24

Yeah my last workplace did a test and it did Kafka queue and web services just as fast as go or dotnet. You’ll never get c++ speeds but Java isn’t aiming for that too

3

u/MrRickSancezJr Jun 10 '24

Java's new low level stuff has been closing the gap in a lot of C++ benchmark tests on heavy duty stuff. I doubt we ever see memory packing outside of primitive arrays, but SIMDs are getting stupid wide anyways.

Im also keeping in mind that most of us have GPUs and even secondary integrated GPUs to do OpenCL/Cuda stuff.

Yes. All these tricks are really powered by C/C++, but I'm impressed how fast they've made the JVM. Especially while being oppressed by Microsoft and Apple.