Mgj
06/30/2020, 9:10 AMgildor
06/30/2020, 9:13 AMMgj
06/30/2020, 9:15 AMMgj
06/30/2020, 9:17 AMgildor
06/30/2020, 9:17 AMgildor
06/30/2020, 9:17 AMMgj
06/30/2020, 9:19 AMgildor
06/30/2020, 9:20 AMMgj
06/30/2020, 9:21 AMMgj
06/30/2020, 9:28 AMgildor
06/30/2020, 9:32 AMthere may be many other java librariesIf you going to use multiplatofrm you need platform libraries, so it should be pure-kotlin lib, or a kotlin lib which wraps platform libraries: https://kotlinlang.org/docs/reference/platform-specific-declarations.html
gildor
06/30/2020, 9:33 AMmore about kotlin multiplatform and java interopThere is not java interop in multiplatform How would you run JVM code on JS?
gildor
06/30/2020, 9:34 AMRx observables which im probably gonna try to replace with kotlin ObservablePropertyKotlin has coroutines and Flow, which is really good reaplacement for it
Mgj
06/30/2020, 9:34 AMgildor
06/30/2020, 9:34 AMMgj
06/30/2020, 9:34 AMgildor
06/30/2020, 9:35 AMgildor
06/30/2020, 9:35 AMgildor
06/30/2020, 9:35 AMthere may be many other java libraries i would like to be able to useYou have to get some Kotlin library, or use platform specific libraries, there is no magic which allows Kotlin use JVM dependencies on JS or vice versa
gildor
06/30/2020, 9:36 AMMgj
06/30/2020, 9:36 AMgildor
06/30/2020, 9:37 AMSame as i would with android or ios targetsWhat do you mean?
Mgj
06/30/2020, 9:37 AMgildor
06/30/2020, 9:38 AMgildor
06/30/2020, 9:38 AMMgj
06/30/2020, 9:38 AMMgj
06/30/2020, 9:39 AMgildor
06/30/2020, 9:39 AMMgj
06/30/2020, 9:39 AMgildor
06/30/2020, 9:39 AMgildor
06/30/2020, 9:40 AMMgj
06/30/2020, 9:40 AMArkadii Ivanov
06/30/2020, 9:41 AMArkadii Ivanov
06/30/2020, 9:42 AMandylamax
06/30/2020, 9:43 AMMgj
06/30/2020, 9:43 AMgildor
06/30/2020, 9:43 AMSure. You could do what android does and just have limited or no support for certain namespaces and throw an error if you try to use an unsupported namespaceWhich is exactly what KMP does, it allows to write thin wrapper on top of platform-specific APIs, without any non-existing impossible tranpilation magic
Mgj
06/30/2020, 9:44 AMMgj
06/30/2020, 9:44 AMgildor
06/30/2020, 9:45 AMgildor
06/30/2020, 9:45 AMgildor
06/30/2020, 9:46 AMArkadii Ivanov
06/30/2020, 9:46 AMgildor
06/30/2020, 9:47 AMMgj
06/30/2020, 9:47 AMgildor
06/30/2020, 9:48 AMIts not impossibleIt’s not impossible, but all attempts to run JVM bytecode on anything except JVM are not really successful And it anyway never was a goal or some promise from Kotlin
Mgj
06/30/2020, 9:48 AMandylamax
06/30/2020, 9:49 AMandylamax
06/30/2020, 9:49 AMMgj
06/30/2020, 9:49 AMandylamax
06/30/2020, 9:50 AMMgj
06/30/2020, 9:52 AMandylamax
06/30/2020, 9:52 AMgildor
06/30/2020, 10:01 AMkotlin/java interop issue with KMPThere is no interop issue with multiplatform, it does exactly what it designed, multiplatform doesn’t have any platform, so it cannot use any platform specific code
Mgj
06/30/2020, 10:02 AMMgj
06/30/2020, 10:06 AMgildor
06/30/2020, 10:13 AMkotlin is designed to have good interop with java. It even says so in the official docs@Mgj could you please point out on this part of the doc, I curious, maybe it’s really confusing, because of course originally Kotlin target only JVM, maybe it makes sense to make doc more clear UPD: Okay, I see, in Java Interop section, it indeed makes sense to update and mention that it possible only on JVM
Mgj
06/30/2020, 10:43 AMMgj
06/30/2020, 10:46 AMgildor
06/30/2020, 10:53 AMif the desire and intention is thereTo run jvm bytecode on js and native?
Mgj
06/30/2020, 10:54 AMgildor
06/30/2020, 10:56 AMdarkmoon_uk
07/01/2020, 1:24 PMdarkmoon_uk
07/01/2020, 1:25 PMMgj
07/01/2020, 1:30 PMgildor
07/01/2020, 3:07 PMdarkmoon_uk
07/02/2020, 1:36 PM