This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-20
Channels
- # adventofcode (23)
- # announcements (4)
- # babashka (1)
- # beginners (37)
- # biff (2)
- # calva (1)
- # cider (19)
- # clj-kondo (11)
- # clojure (45)
- # clojure-bay-area (2)
- # clojure-europe (12)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (2)
- # clojurescript (8)
- # conjure (1)
- # cursive (17)
- # datomic (11)
- # garden (1)
- # graalvm (4)
- # hyperfiddle (21)
- # java (10)
- # jobs (3)
- # lsp (23)
- # off-topic (18)
- # polylith (2)
- # re-frame (4)
- # releases (1)
- # remote-jobs (3)
- # rewrite-clj (4)
- # squint (44)
- # uncomplicate (1)
- # xtdb (84)
I have a challenge compiling a 3rd party clojure code to native image, which inside (def)
s (that are build-time initialized) references classes with dynamically linked native JNI methods (which need to be run-time initialized).
I wonder if there is a way to solve it without rewriting the original code.
Would linking the JNI libraries statically help? According to this https://www.blog.akhil.cc/static-jni it should be possible, but it looks a bit shaky. Has anyone ever tried to make it work?
HumbleUI, some more details in https://github.com/HumbleUI/HumbleUI/issues/83