this post was submitted on 13 Jul 2023
0 points (NaN% liked)

Java

1737 readers
1 users here now

For discussing Java, the JVM, languages that run on the JVM, and other related technologies.

founded 2 years ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] CollectiveOfCells@programming.dev 1 points 2 years ago (1 children)

When I worked for Amazon, someone had created a command line tool to be used in builds, but repeatedly starting up JVMs is painfully slow. I rewrote the app in C++ and it could be invoked 81 times vs one invocation of Java version.

If I need speed, I'll use C++. If I need developer productivity, I'll use Ruby.

[–] snowe@programming.dev 1 points 2 years ago

Why in the world would you rewrite it when you could take an hour and get it compiling with graalvm and it would be just as fast as c++?

[–] agressivelyPassive@feddit.de 1 points 2 years ago

So, Java is fast if you use it like C.