This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-11
Channels
- # announcements (6)
- # babashka (61)
- # beginners (85)
- # calva (21)
- # cider (6)
- # clara (9)
- # clj-http (1)
- # clj-kondo (35)
- # cljfx (6)
- # clojure (91)
- # clojure-australia (11)
- # clojure-europe (23)
- # clojure-italy (7)
- # clojure-losangeles (2)
- # clojure-nl (27)
- # clojure-uk (107)
- # clojurescript (4)
- # community-development (1)
- # cursive (69)
- # emacs (12)
- # fulcro (29)
- # graalvm (25)
- # honeysql (10)
- # hugsql (3)
- # integrant (13)
- # jobs (4)
- # kaocha (3)
- # keechma (1)
- # lambdaisland (3)
- # leiningen (2)
- # meander (17)
- # mount (3)
- # observability (1)
- # off-topic (86)
- # pathom (3)
- # polylith (2)
- # practicalli (14)
- # reitit (14)
- # shadow-cljs (61)
- # startup-in-a-month (1)
- # tools-deps (9)
- # vim (54)
- # xtdb (16)
Nothing advanced in this GraalVM presentation, but it gives a good overview of benefits of using GraalVM as your regular JDK and then effects of native-image. https://youtu.be/NXyACuQuIHI
Small note: the enterprise edition has better performance than the community edition (which should it turn have better performance than other JVMs, at least that is their goal)
Anyone have experience with Github Action + lein-native? I'm trying to compile a native-image with the --static
flag. But I get the following error:
com.oracle.svm.core.util.UserError$UserException: Must specify main entry point class when building EXECUTABLE native image. Use '-H:Class=<fully-qualified-class-name>'.
The MacOS build also seems to fail. lein-native
builds seem to work (linux non-static and windows).
The build (with error): https://github.com/kwrooijen/hiccup-cli/runs/1882255111?check_suite_focus=true
My GH Action yml: https://github.com/kwrooijen/hiccup-cli/blob/master/.github/workflows/release.yml
project.clj / graalvm config: https://github.com/kwrooijen/hiccup-cli/blob/master/project.clj
If anyone has an idea that would be great. I can move away from lein-native
if I have to but it would be nice if I could keep using it.
it looks like you need an else branch with -H:Class=<fully-qualified-class-name>
at https://github.com/kwrooijen/hiccup-cli/blob/master/project.clj#L2
the error is saying you have to have a main if you're building an executable
This is why I never use tools to compile with native-image. Why wrap a tool with another tool which only complicates things, in my opinion.