Fork me on GitHub
#data-science
<
2023-02-04
>
whilo02:02:56

@chris441 Hey. Thanks for your amazing work! Is libpython-clj native image compatible? I could not find references to it easily, so I suspect it is not.

chrisn19:02:11

I haven't tried this for a while but the answer is yes with caveats. You would have to generate the dynamic jna classes during the compilation phase and ensure they ended up in the native pathway. Second, you will need to find the appropriate JNA shared libraries from the JNA systems and get those into the loading pathway for the executable. I haven't directly tried this so YMMV but last time I checked I ascertained that it was possible with sufficient motivation.

whilo00:02:10

Ok, cool. Thanks for clarifying!

phronmophobic19:02:46

I recently created a minimal example of using JNA with native image, https://github.com/phronmophobic/jna-native-image. You can see the config for JNA https://github.com/phronmophobic/jna-native-image/tree/main/config. You might also need to add some config for the libpython-clj shared libraries if you want to include those.

phronmophobic19:02:35

If you're giving it a try and have questions, there's #CAJN79WNT

whilo00:02:30

Thanks, joined.

Daniel Slutsky22:02:47

Is anybody planning to attend the conj? https://2023.clojure-conj.org/ Maybe we could try to organize some informal data-science-related meeting/workshop/hackathon on the days before/after the conference?

Ben Lieberman23:02:46

I think I will be! Not bought tickets yet but this sounds like a great idea.

🙏 2
cdeln19:02:23

I plan to follow it on stream, happy to join anything remote friendly.

🙏 2