2 ms·
I’m not a Kotlin user, but this struck me as ambitious: > having the entire Java ecosystem available and, in the same point: > Compilation for so many platfo
by biztos 4y ago
I’m not a Kotlin user, but this struck me as ambitious:
> having the entire Java ecosystem available
and, in the same point:
> Compilation for so many platforms, directly to native executables
Does this mean you can compile pretty much any Java libraries to non-JVM executables?
- MrPowerGamerBR 4y agoNo, if you are targeting a different platform you can't use JVM libraries. If your target is JavaScript, you can use JavaScript dependencies (sort of: they won't have any type bindings so you will need to code then yourself) but you can't use any JVM libraries on it.
- slively 4y agoNo, if you use Kotlin native you do not get access to Java libs.
- ohgodplsno 4y agoAs other said, yep, you do not get the Java ecosystem if your target is native executables (or JS). there are alternatives like kotlinx-datetime, kotlinx-serialization, the kotlin stdlib. However, if you know you're going to stay on a JVMable target, feel free to not use Kotlin/Multiplatform, but regular JVM Kotlin libraries