magika icon indicating copy to clipboard operation
magika copied to clipboard

Any plans to create a Kotlin or Java package?

Open nkiesel opened this issue 3 months ago • 2 comments

Your website mentions that Java bindings could be added using JNI. Is anyone working on this already? otherwise, I might find some time to work on this (and also Kotlin bindings).

nkiesel avatar Nov 10 '25 21:11 nkiesel

We are not planning to release Java/Kotlin libraries at the moment: the tradeoff between time, demand an having someone in the core team that is passionate about those languages hasn't tilted yet in that direction.

That said, I see that a Java implementation has been published by researchers at the Karlsruhe Institute of Technology: https://github.com/ardoco/magika

I took a quick look, and it looks very sensible: it's using the latest magika model, it has tests, and the people behind it look trusted (hello @Gram21 and @dfuchss!).

That said, this is not an endorsement: exercise the usual caution, hic sunt leones :)

invernizzi avatar Nov 24 '25 11:11 invernizzi

Hi! Thanks for tagging and notifying us!

Indeed, we did implement a Java version of Magicka. For this, we used the ONNX runtime library for Java to load and execute the model. That said, we tried our best to go from the descriptions in the paper and with reverse engineering to map the parameters etc. We are quite confident that we did not do major mistakes, but there might be bugs or misunderstandings. So yes, exercise the usual caution, as stated!

Moreover, we do not have the exact same functionality as the original Magicka as we only need(ed) a library (so no CLI, but for this you can use Magicka itself). Some features might not exist as well. And we probably do not use the latest model anymore, I think (but updating should not be too much of a hassle if the model "interface" did not change). That said, feel free to either use this as a starting point if you want to make a feature-complete and well-maintained version of Magicka for Java.

Gram21 avatar Nov 24 '25 13:11 Gram21