This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-10
Channels
- # announcements (6)
- # babashka (38)
- # beginners (85)
- # biff (3)
- # calva (2)
- # cider (11)
- # clerk (14)
- # clj-kondo (6)
- # clj-on-windows (27)
- # clj-together (2)
- # cljsrn (18)
- # clojure (106)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-norway (9)
- # clojure-uk (2)
- # clr (2)
- # cryogen (1)
- # cursive (10)
- # datahike (3)
- # datavis (2)
- # datomic (15)
- # emacs (7)
- # graalvm (10)
- # graphql (20)
- # gratitude (1)
- # hyperfiddle (1)
- # improve-getting-started (23)
- # joyride (24)
- # london-clojurians (1)
- # lsp (22)
- # malli (4)
- # matcher-combinators (3)
- # membrane (13)
- # off-topic (1)
- # pathom (24)
- # polylith (9)
- # react (31)
- # reagent (9)
- # releases (1)
- # remote-jobs (1)
- # reveal (3)
- # shadow-cljs (50)
- # spacemacs (3)
- # specter (5)
- # xtdb (5)
As a general intuition check, should I forget about classpath as a runtime concern in GraalVM-compiled programs? For example, when reading from the filesystem, should I prefer calling slurp
directly over io/resource
? Does classpath serve any purpose at runtime?
@U04NMTEL6TX Classpath still works for io/resource but you have to explicity configure your build to keep resources around in your image
Another example, this time in babashka: https://github.com/babashka/babashka/blob/ead237eee335fc3bc4cdfc88e3fb4af821878b3c/resources/META-INF/native-image/babashka/babashka/native-image.properties#L5-L8
But if I don't know ahead of time where the config file would live (say it's a CLI option on the binary itself) then I would not be able to use resource
in this way, correct?
btw I found your Hello World GraalVM video extremely helpful, so thanks for that too.