4 ms·
Depending on how far you want to stretch it Kotlin is cross-platform-ish. You can write Kotlin that compiles to both JVM and JS, and KotlinNative claims to be
by kllrnohj 8y ago
Depending on how far you want to stretch it Kotlin is cross-platform-ish.
You can write Kotlin that compiles to both JVM and JS, and KotlinNative claims to be able to then also compile that to native.
It's hard to do, and there's a major lack of abstractions even within the standard library, but technically possible. I could easily see a future where your business logic is portable kotlin and then you have platform-specific UI layers.
- mdgrech23 8y agoYea but you can't develop for iOS using Kotlin. That's a big advantage for React Native/Electron/Flutter and JS world as a whole.
- kllrnohj 8y agoYes, you can. Kotlin/Native targets iOS: https://kotlinlang.org/docs/reference/native-overview.html https://kotlinlang.org/docs/reference/native-overview.html And if you're going to consider JS as supporting iOS then KotlinJS works on iOS, too. So Kotlin is doubly runnable on iOS as either native code or JS.