DEV Community

Discussion on: Is Rust going to Replace Java?

Collapse
 
lambdafalcon profile image
falcon

No, it doesn't. Kotlin and Scala and other JVM languages use the JVM, they don't use Java. They can be compatible with Java and import Java libraries, but they don't need Java to work.

Thread Thread
 
gklijs profile image
Gerard Klijs

Yes, but without Java, there is no JVM. And especially Kotlin, you really need Java libraries for some things..

Thread Thread
 
lambdafalcon profile image
falcon

That's absolutely not true, the JVM is separate from Java.
And which Java libraries do you really need in Kotlin?

Thread Thread
 
gklijs profile image
Gerard Klijs

Yes and no, although it's possible in principe to have a 'Kotlin' KVM maintened by JetBrains. So far the JVM is closely tied to Java.
I have a hard time seeing what you could do in Kotlin without any Java interop. Concurrent collections, networking, most of the JVM ecosystem, it's all Java.

Thread Thread
 
lambdafalcon profile image
falcon

What do you mean? Kotlin compiles to Java Bytecode, it does not need Java libraries to work.

The JVM was developed for Java originally but has had features built in to facilitate developing other JVM languages.

About the ecosystem: MANY libraries and frameworks already have Kotlin versions, first in line Spring and Android. Kotlin has even been the preferred language for Android for years now.