3 ms·
As well as the JVM, there is Kotlin/Native, based on LLVM. This allows a Kotlin mobile app to run on JVM in Android and as a compiled binary on iOS. It can also
by mmahemoff 7y ago
As well as the JVM, there is Kotlin/Native, based on LLVM. This allows a Kotlin mobile app to run on JVM in Android and as a compiled binary on iOS. It can also target WebAssembly to run in a browser too.
- pjmlp 7y agoKotlin/Native suffers from not having neither the same sematics as Kotlin on the JVM, nor the large pool of available libraries or performance.
- juskrey 7y agoMost importantly, Kotlin Native has no proper multithreading, it only uses JS-style single thread
- rabenblut 7y agoThere's threading, just not as painless as in JVM https://touchlab.co/kotlin-native-stranger-threads-ep-1/ https://touchlab.co/kotlin-native-stranger-threads-ep-1/ We're even getting early support for multi-threaded coroutines https://github.com/Kotlin/kotlinx.coroutines/blob/native-mt/kotlin-native-sharing.md https://github.com/Kotlin/kotlinx.coroutines/blob/native-mt/...
- juskrey 7y agoOh, multithreaded coroutines will be really good news when working properly