Hello everyone, I wanted to present a very special...
# feed
u
Hello everyone, I wanted to present a very special new project to you. It's very young for now, but well, my desktop application is very closely linked to the Java ecosystem. I particularly use the Lucene search engine, and that has always prevented me from bringing it to iOS and Android (because Lucene requires Java 21, so even on Android it breaks). And finally, to fix this, I thought I could compile Lucene into a native library via GraalVM, and when I saw that it worked, I thought I could make it a Gradle plugin. So basically, it's very simple: we declare a common facade in Kotlin JVM, and the plugin makes it accessible to iOS and Android, compiles it natively, and creates the binding automatically. So, if you are also linked to the Java ecosystem but still want to bring your apps to iOS, this might interest you, here is the repo: github.com/NucleusFramework/NucleusJvmAccess (the plugin is not yet available on the Gradle portal, I am waiting for validation)
🚀 10
I have done some benchmarks for those who are interested because the plugin also allows using a real JVM hotspot, and believe me, you are not ready github.com/NucleusFramework/NucleusJvmAccess/blob/…/BENCHMARKS.md
s
What kind of wizardry is it that you always come up with stuff like that? 🧙‍♂️😬
❤️ 1
This lib is black magic. 😄
😅 1
u
I just realized that I haven't done a benchmark comparing Kotlin Native vs GraalVM Native Image on iOS 😱
a
It is an interesting project. I think that compiling to so/dll is also useful outside of mobile development. When you need to just use your JVM library in native application.
u
Are you talking about Kotlin Native, or even about apps in other languages?
a
Mostly apps in other languages. But Kotlin Native looks good anyway because you need C interop layer to call something from other languages anyway.
u
I don't care about other languages 🙃
➕ 3
s
Kotlin is the one and only language I care about. K❤️
❤️ 2