37
Java is Very Fast, If You Don’t Create Many Objects
(blog.vanillajava.blog)
For discussing Java, the JVM, languages that run on the JVM, and other related technologies.
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.
Tbf he's also suggesting that Ruby is the most dev friendly language he could use, so I'm already a bit skeptical lol
I've never tried Graal. Is it easy to use? Like, is it a dropin replacement for javac or what?
And this is how people build the largest (in terms of the actual size of the binary on the disk) command line utilities in history.
...If you need both, you use Rust
You hand me till "Ruby" ROFL.
I'm not so sure if the JVM startup was the culprit in your situation. The Computer Language Benchmarks Game shows that even for short runtimes, the startup doesn't affect their performance numbers that much
That link just compares benchmarks with and without warmup, but not without startup. The JVM's startup can take upwards of 2 seconds, depending on the program.
Oh, I'm dumb. Thanks for clearing this up :)