https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

saket

05/21/2020, 1:28 AM
Or does it only work with kotlin/native?
g

gildor

05/21/2020, 1:46 AM
Only with Kotlin/Native, no support of JVM
there are some tools for this in Kotlin/Native compiler, but they used only internally by compiler (because it’s JVM app which also has C/C++ parts), but there is no API for this
s

saket

05/21/2020, 2:14 AM
That is such a shame. JNI is so incredibly complex in comparison to cinterop.
d

dazza5000

05/21/2020, 2:18 AM
be thankful
g

gildor

05/21/2020, 4:21 AM
True, we need pure Kotlin implementation of Djinni, I like thi approach
Our team would be also interested to work on it
k

Kris Wong

05/21/2020, 12:54 PM
yeah, djinni essentially is cinterop for java
g

gildor

05/21/2020, 3:11 PM
Works for Kotlin also fine, but it would be a lot better with Kotlin sources generated
s

saket

05/21/2020, 4:41 PM
Ooh djinni looks interesting. Going to take a look.
k

Kris Wong

05/21/2020, 5:04 PM
the primary tradeoff is that it requires its own interface definition, but it also supports C++