<@U3SK5B492>, i’ve been trying to put together sha...
# kotlin-native
n
@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
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
What I want is to basically have a native library written in Kotlin native, that I can invoke from KotlinJVM
I know it’s not 100% practical but just exploratory to see what it takes
o
Not sure if this variant of interop have much practical sense, so it is unsupported
m
being able to write shared libraries in general would be immensely useful though
🙏 1
o
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
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)