This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-06
Channels
- # announcements (69)
- # aws-lambda (3)
- # babashka (45)
- # beginners (28)
- # calva (4)
- # clara (7)
- # clojure (23)
- # clojure-spec (5)
- # clojure-uk (18)
- # clojurescript (57)
- # clojutre (1)
- # cursive (20)
- # datomic (31)
- # emacs (5)
- # figwheel-main (3)
- # fulcro (16)
- # graalvm (7)
- # luminus (4)
- # nrepl (9)
- # off-topic (50)
- # re-frame (8)
- # reitit (2)
- # rewrite-clj (10)
- # shadow-cljs (88)
- # spacemacs (1)
- # sql (6)
- # vim (2)
Hello, the documentation says that “Polyglot embeddings can also be compiled ahead-of-time” but it’s not clear to me how this can be achieved. Any pointers?
@stathissideris i'm not sure what they mean exactly by "Polyglot embeddings", but a phrase similar to the one you quoted appears in this section: https://www.graalvm.org/docs/reference-manual/embed/#build-native-images-from-polyglot-applications -- i think that's what you are already doing though in your instructions to taylorwood's clj.native-image, as i see "--language:js"
in your deps.edn.
@sogaiu thanks, but I’m loading the js code as a resource and eval’ing it at runtime, so I suspect it’s not being compiled ahead of time
right -- i think the official docs are vague as to whether you really can compile the guest language program ahead-of-time. the phrase "polyglot embedding" is not very well-defined imho -- perhaps it can mean the guest runtime and not the guest program?
yeah, I’m uncertain about it as well
I also asked in the graalvm gitter but no response yet