4 ms·
Kotlin is a language that runs on JVM6.
by romanovcode 9y ago
Kotlin is a language that runs on JVM6.
- rhencke 9y agoThat's true, but don't forget Kotlin also compiles to plain JavaScript, and a native compiler is in the works too.
- throwaway91111 9y agoYea, but the benefits of any jvm language fall of a cliff without the jvm.
- pjmlp 9y agoWithout the libraries, performance or profiling tools that Java has, so it remains to be seen how much uptake it will have.
- imron 9y agoWell, without the libraries and profiling tools anyway ;-)
- cel1ne 9y agoKotlin is 100% java-compatible, you can mix source-files side-by-side in one project. You can easily call kotlin from java and java from kotlin. That means you have all the libraries, performance and profiling tools that java has.
- romanovcode 9y agoNowadays this means nothing because everything compiles to plain JavaScript.
- cptskippy 9y agoWill Kotlin on Android run on a JVM or ART? Or do I have a fundamental misunderstanding of things?
- pjmlp 9y agoOn Android it runs on ART. But Android tooling is heavy dependent on Java and Google even had to drop their Jack/Jill compiler replacement, because they weren't able to make it work properly with all the tooling that targets the JVM. So they pivoted to translating JVM bytecodes into ART ones (originally Dalvik ones, DEX) again. However even with the way Google has handled the Java story, the whole Android eco-system is heavyly dependent on it. They also pivoted the Brillo project with the promise of a set of C++ userspace frameworks, into Android Things using Java instead, including the ability to write device drivers in Java. Hence why thinking that Kotlin can manage without Java and its eco-system is kind of strange, even on Android. EDIT: Of course it runs on Dalvik as well when targeting pre-Lolipop devices.
- cptskippy 9y agoThanks! I don't do native development on Android <gasp!> so I only follow the comings and goings superficially.
- cel1ne 9y agoYes. You can mix Kotlin and Java in the same-project. Kotlin can call all Java-code and Java can call all Kotlin-code.