DEV Community

Discussion on: Is Rust going to Replace Java?

Collapse
 
gklijs profile image
Gerard Klijs

“Technologies such as Rust and Go function the same way as Java but they are written in shorter code."
This is not true, it's much fairer to say it's all 3 different beasts, with their own strengths, once you want more than hello world.

I'm not very familiar with Go, so this might not be totally fair. But Go seems the best language for programs around networking, which don't need a lot of additional dependencies.

Java is mostly great for it's vast ecosystem, and Spring Boot. With it's easily to hook on almost any database, and expose is as you want, even 'official' with GraphQL lately. Also don't forget all the tools around it's JVM runtime for performance / safety etc.

Rust is nice when performamce is important, and when you want to reduce some categories of errors. The price to pay is that you need more time to program. Compared to Java and Go the core language is tiny. Even for random getting numbers you need a library. The ecosystem does get better. But when you want to connect to databases, or when dealing with formats like Avro its not as smooth as Java. And using Protobuf is possible, but not as smooth as with Go.

Some others mentioned already, probably no language will totally replace another language. I can imagine some things on the backend, I did in the past with Java, can be done with Rust now. But to be fair at the moment it would not be my first choice.

It's still good to know multiple languages, and there relative strengths through.