This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-03
Channels
- # adventofcode (2)
- # announcements (1)
- # asami (35)
- # babashka (67)
- # beginners (97)
- # cherry (3)
- # clj-yaml (3)
- # cljsrn (9)
- # clojure (44)
- # clojure-dev (34)
- # clojure-europe (13)
- # clojure-gamedev (1)
- # clojure-norway (10)
- # clojure-uk (2)
- # clojurescript (24)
- # clr (1)
- # conjure (18)
- # cursive (4)
- # datalevin (3)
- # emacs (6)
- # graalvm (9)
- # graphql (1)
- # introduce-yourself (1)
- # malli (7)
- # nrepl (3)
- # portal (1)
- # quil (2)
- # reagent (1)
- # reitit (21)
- # releases (1)
- # reveal (11)
- # ring (2)
- # shadow-cljs (17)
- # sql (24)
- # vim (4)
TIL about guest language support in native-image
:
> Native Image supports JVM-based languages, e.g., Java, Scala, Clojure, Kotlin. The resulting image can, optionally, execute dynamic languages like JavaScript, Ruby, R or Python. Polyglot embeddings can also be compiled ahead-of-time. To inform native-image
of a guest language used by an application, specify --language:<languageId>
for each guest language (e.g., --language:js
).
> – from https://www.graalvm.org/22.0/reference-manual/native-image/
Has anyone here used this already?
tried this out naively with clerk (https://github.com/nextjournal/clerk/tree/native-image) but https://gist.github.com/mk/f6b043ada640904abe4d3ed215fd75b5 around com.oracle.truffle.js.runtime.JSRealm.random
.
I've played around with this, e.g. embedding JS in bb, it works. But what doesn't work well, or at least, at the time, was pre-warming a context so it would start faster