Can Kotlin/Native be used for JVM bindings?
# kotlin-native
c
Can Kotlin/Native be used for JVM bindings?
o
What exactly is your question? Kotlin/Native can be used from JVM via JNI, also interop component can work to transparently interop with C libraries from Kotlin/JVM. As Kotlin/Native can be compiled to C library, in theory it is possible to combine those two. But not sure if it is a good idea.
m
Question is - why
cinterop -flavor=jvm
is not documented and not announced?
2
o
It is not yet considered production-ready, and is considered compiler’s implementation detail
m
Then I do not understand how "interop component can work to transparently interop with C libraries from Kotlin/JVM".
c
Hmz, interesting