This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-24
Channels
- # announcements (5)
- # aws (24)
- # babashka (41)
- # beginners (130)
- # bristol-clojurians (2)
- # calva (39)
- # chlorine-clover (64)
- # cider (30)
- # clojure (202)
- # clojure-belgium (1)
- # clojure-dev (99)
- # clojure-europe (5)
- # clojure-hungary (4)
- # clojure-italy (10)
- # clojure-losangeles (8)
- # clojure-nl (11)
- # clojure-norway (6)
- # clojure-spec (7)
- # clojure-uk (12)
- # clojurescript (52)
- # core-typed (26)
- # cursive (19)
- # data-science (19)
- # datomic (19)
- # duct (10)
- # emacs (17)
- # fulcro (22)
- # graalvm (11)
- # jobs (3)
- # kaocha (28)
- # leiningen (6)
- # lumo (2)
- # malli (10)
- # nrepl (2)
- # off-topic (23)
- # pathom (2)
- # pedestal (7)
- # re-frame (3)
- # reagent (30)
- # reitit (2)
- # remote-jobs (2)
- # shadow-cljs (77)
- # sql (10)
- # test-check (22)
- # tools-deps (37)
- # vscode (1)
- # yada (3)
First result of testing with hato on JDK11 wasn't successful: https://github.com/borkdude/babashka/issues/220#issuecomment-590244660 Will take a look later to see what's causing the problem
what I usually do is cut out parts of the library until it works and then add parts back
ah I guess the stuff in middleware.clj is using dynamic requires and resolve, this is usually the culprit - I'll make a fork
yup, that's it:
$ ./bb "(require '[hato.client :as hc]) (-> (hc/get \"\") :body (subs 0 20))"
"\n<!--"
worked here on linux:
$ ./bb "(require '[hato.client :as hc]) (-> (hc/get \"\") :body (subs 0 20))"
"\n<!--"
@sogaiu Cool! I do get some CircleCI failures for this branch on linux:
https://circleci.com/gh/borkdude/babashka/4474?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
but happy to hear it's working locally for you. I've made a patch to clojure.lang.Reflector
for JDK11 but it seems that isn't overriding the built-in Clojure one for the linux build on CircleCI. The macOS one does work 😕
I might have to move the build to Github actions for JDK11, keep getting out of memory errors on Circle.... 😕
I'd love to! yes, I also need Windows for babashka, but I'm not running that on Circle now anyway.
ok, that’s good. Windows support might be a bigger task. How are you doing windows builds?
appveyor, but github actions also supports them, so if appveyor won't work for jdk11 I've still got one other option
Since I know very little about the topic, how hard would you guys think it would be to find a way to make a bb script into a native binary (through graal)? The purpose being allowing someone else to run the script without having bb installed
@hobosarefriends In that case I think you just want to compile your own GraalVM binary from Clojure code, without bb
but note that you will have to compile separately for macOS, linux and Windows to cater to different users
but yeah that makes sense, I'm gonna learn the normal way and then see if I can make something to skip that step.
@hobosarefriends I find jet to be the simplest example of my projects how to do graalvm
btw, I screwed up an xmx flag, this was the reason for the out of memory error on circle
Has someone already been frustrated enough to build a Github Actions workflow script in Babashka?
I'm almost there 🙈
Maybe this could help to find out: https://github.com/mfikes/coal-mine