graalvm

greg 2024-04-02T02:55:18.631179Z

Here is a very simple example of creating uberjar and native image: https://github.com/rynkowsg/examples-clojure/tree/master/clj-deps-lein-uberjar-graalvm

borkdude 2024-04-02T07:44:08.970749Z

probably some leftover from early versions of graalvm in which this wasn't the default

greg 2024-04-02T12:46:46.643399Z

is it better to report unsupported elements at runtime?

borkdude 2024-04-02T12:47:22.790129Z

I would say don't worry about it until you're confronted with an issue

👍 1
greg 2024-04-02T02:59:52.668549Z

@borkdude here is a list of native image params I came up looking at Babashka primarily: https://github.com/rynkowsg/examples-clojure/blob/master/clj-deps-lein-uberjar-graalvm/scripts/compile-native.bash#L20 Would you recommend any other native image options worth using?

greg 2024-04-02T03:04:21.318219Z

I noticed you use --report-unsupported-elements-at-runtime but based on the description https://www.graalvm.org/22.0/reference-manual/native-image/Options/ this postpones errors from build time to runtime, so I skipped this one.