This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-11
Channels
- # announcements (4)
- # babashka (4)
- # beginners (164)
- # calva (47)
- # cider (1)
- # cljs-dev (29)
- # cljsrn (3)
- # clojure (137)
- # clojure-europe (23)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (44)
- # clojurescript (35)
- # component (8)
- # conjure (119)
- # cursive (32)
- # datomic (12)
- # emacs (31)
- # figwheel-main (36)
- # graalvm (10)
- # jobs (2)
- # kaocha (1)
- # lein-figwheel (3)
- # meander (15)
- # mount (3)
- # off-topic (9)
- # pathom (8)
- # quil (4)
- # re-frame (13)
- # reagent (15)
- # remote-jobs (10)
- # shadow-cljs (128)
- # slack-help (2)
- # spacemacs (8)
- # test-check (6)
- # xtdb (6)
Hi, so I am currently trying to port some code to graalvm, sadly this code uses a lot of (resolve (symbol))
my guess its a no go for graalvm ?
Example of resolves that do work: https://github.com/borkdude/babashka/blob/master/src/babashka/main.clj#L41-L54
but the items are already in place, so Im thinking there is chance to tell graal to have them loaded
can you change the code to use a map lookup instead of resolve? - worth a try if resolve itself doesn't work
ok, not super advanced with clojure, but if I get it right, the proposition is to
(defn some-string [x] (x))
; replace this ...
((resolve (symbol "some-string")) "identity string")
; with this ...
(def function-map {:some-string some-string})
((:some-string function-map) "identity string")
?