This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-10
Channels
- # announcements (1)
- # babashka (44)
- # beginners (188)
- # calva (37)
- # chlorine-clover (28)
- # cider (12)
- # clj-kondo (40)
- # clojars (1)
- # clojure (323)
- # clojure-austin (7)
- # clojure-europe (20)
- # clojure-italy (4)
- # clojure-nl (16)
- # clojure-spec (7)
- # clojure-uk (37)
- # clojuredesign-podcast (1)
- # clojurescript (30)
- # cryogen (2)
- # cursive (30)
- # data-science (1)
- # datomic (26)
- # emacs (1)
- # events (1)
- # figwheel-main (13)
- # fulcro (89)
- # garden (1)
- # graalvm (20)
- # graphql (8)
- # jobs (1)
- # jobs-discuss (1)
- # joker (6)
- # kaocha (125)
- # lambdaisland (1)
- # meander (42)
- # off-topic (18)
- # pathom (3)
- # pedestal (6)
- # shadow-cljs (55)
- # spacemacs (21)
- # sql (18)
- # tools-deps (8)
- # uncomplicate (2)
- # vim (1)
- # yada (3)
(ok the 20.0.0 version worked on 20.1.0-dev 20200225_0946 build... but not on newer one on mac...)
@retrogradeorbit Thanks for testing. If there are svm.jar versions for 20.1.0-dev available on maven, I'd be happy to make a pre-release for that
Hi folks! I'm playing around with graalVM for compiling a native image but could use some help with getting past some reflection issues.
The project is a command line utility that takes a url to a podcast rss feed and downloads the episodes. i used a library called feedparser-clj
which works great but has also caused reflection issues. I managed to get past a few problems by creating a reflection.json file and dumping the missing class / method / library into it > recompiling > trying the lib > finding another missing reference (I'm not sure if I'm using the right terms. I'm using native-image
with lein. Here's a snippet of what I'm working with, if anyone has any tips!
@tees Maybe a better idea is to just fork the lib, fix the reflection issues, use that in your native-image and PR the fixes back to the repo. This way it makes it better for everyone in the ecosystem long term.
@borkdude Perhaps, yes. I'm still a bit new to Clojure so I might be a ways off from doing that (successfully). Still, you make a good point.
@tees The way to start with this is to put (set! *warn-on-reflection* true)
in the namespace and then fix the issues one by one by adding type hints
I have to run to the gym (I wasn't expecting such a quick response, thanks @borkdude -- and thanks for all the resources you've put up online, I was creeping them all last night 😅 ). I'll think about your point and go from there.
https://circleci.com/gh/epiccastle/spire/692 <- 20.1.0-dev-20200229_0326 does work with clj-reflector-graal-java11-fix 20.0.0 patch