This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-18
Channels
- # adventofcode (12)
- # asami (2)
- # babashka (95)
- # beginners (17)
- # biff (5)
- # calva (1)
- # clojure (90)
- # clojure-europe (15)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (6)
- # clojuredesign-podcast (2)
- # clojurescript (34)
- # clr (1)
- # community-development (42)
- # cursive (11)
- # data-science (1)
- # datomic (13)
- # graalvm (5)
- # hoplon (2)
- # hyperfiddle (32)
- # off-topic (1)
- # pathom (6)
- # releases (1)
- # shadow-cljs (25)
- # squint (4)
- # xtdb (10)
If you're using graalvm, https://graalvm.typeform.com/survey and let's represent the Clojure community
✅ 6
Hi all! I'm trying to generate a native image with graalvm for a small PoC that uses cognitect aws api to invoke dynamodb ops...
native-image -jar target/migrator-0.0.1.jar \
--no-fallback \
--features=clj_easy.graal_build_time.InitClojureClasses
But it yields
Classes that should be initialized at run time got initialized during image building:
org.eclipse.jetty.http.HttpCompliance$1 was unintentionally initialized at build time. To see why org.eclipse.jetty.http.HttpCompliance$1 got initialized use --trace-class-initialization=org.eclipse.jetty.http.HttpCompliance$1
org.eclipse.jetty.http.HttpCompliance was unintentionally initialized at build time. To see why org.eclipse.jetty.http.HttpCompliance ...
Tracing the class initialization leads to at cognitect.http_client$create.invokeStatic(http_client.clj:333)
but unsure what to do about it. I've tried both pre-creating an http client for the ddb client and adding cognitect.http_client and cognitect.aws.http.cognitect to --initialize-at-run-time but seems to do nothing.
Any insight would be huge. 🙌you could have a look at pod-babashka-aws which native-compiled aws-api. it is now deprecated in favor of awyeah-api which works with babashka, so you don't even have to native-compile anymore
👀 1
@U04V15CAJ Thanks for this - interesting. Any thoughts on if I still need to native compile?
@U06B12XNWNM It depends what you want to do. If your "migrator" app can run in bb + awyeah-api then you could avoid native compilation.
🙌 1