@olonho, i’ve been trying to put together shared static libs to call from JNI, but i haven’t had a whole lot of luck getting the method signatures correct
o
olonho
05/15/2017, 2:54 PM
nish: not sure how JNI relates to Kotlin Native. If you want to write JNI methods in kotlin/native, it's unlikely a good idea. In general, you do not need to match signatures, just names, if use SymbolName or ExportForCppRuntime annotations
n
nish
05/15/2017, 2:55 PM
What I want is to basically have a native library written in Kotlin native, that I can invoke from KotlinJVM
nish
05/15/2017, 2:55 PM
I know it’s not 100% practical but just exploratory to see what it takes
o
olonho
05/15/2017, 3:28 PM
Not sure if this variant of interop have much practical sense, so it is unsupported
m
madisp
05/15/2017, 7:13 PM
being able to write shared libraries in general would be immensely useful though
🙏 1
o
olonho
05/16/2017, 4:40 AM
it could be made possible, with some tweaks in TLS variables generation and linking phase, however I am curious, how would you use shared library written in Kotlin/Native?
m
madisp
05/16/2017, 11:18 AM
there are a multitude of uses for shared libraries 🙂 most common are probably extending other languages (JNI, Ruby, Python) and various plugin systems (for instance VSTs for live audio processing)