This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-04
Channels
- # announcements (1)
- # architecture (16)
- # asami (30)
- # babashka (1)
- # beginners (17)
- # calva (4)
- # clj-kondo (4)
- # clojure (32)
- # clojure-austin (2)
- # clojure-dev (16)
- # clojure-europe (33)
- # clojure-mexico (1)
- # clojurescript (40)
- # data-science (9)
- # emacs (33)
- # fulcro (1)
- # jackdaw (4)
- # malli (25)
- # off-topic (34)
- # pathom (23)
- # react (16)
- # reagent (8)
- # releases (5)
- # vim (46)
@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.
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.
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.
If you're giving it a try and have questions, there's #CAJN79WNT
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?
I think I will be! Not bought tickets yet but this sounds like a great idea.