37
you are viewing a single comment's thread
view the rest of the comments
[-] CollectiveOfCells@programming.dev 8 points 3 years ago

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 6 points 3 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++?

[-] JackbyDev@programming.dev 2 points 3 years ago

I've never tried Graal. Is it easy to use? Like, is it a dropin replacement for javac or what?

[-] snowe@programming.dev 2 points 3 years ago

It’s pretty easy to use. If you are using a lot of reflection you might have trouble, but if you’re using a standard large framework like spring, quarkus, or micronaut you’ll be fine. Quarkus makes it dead simple honestly. We deploy all of our Kotlin lambdas on AWS using Graal. It’s faster than node and much easier to write safe code.

load more comments (4 replies)
load more comments (9 replies)
this post was submitted on 13 Jul 2023
37 points (100.0% liked)

Java

2038 readers
1 users here now

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

founded 3 years ago
MODERATORS