This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-30
Channels
- # announcements (8)
- # babashka (73)
- # beginners (126)
- # calva (8)
- # cider (5)
- # circleci (2)
- # clara (9)
- # clj-kondo (4)
- # cljdoc (18)
- # cljfx (49)
- # clojure (51)
- # clojure-australia (3)
- # clojure-europe (41)
- # clojure-france (1)
- # clojure-nl (5)
- # clojure-norway (1)
- # clojure-russia (1)
- # clojure-uk (16)
- # clojurescript (14)
- # conjure (4)
- # cursive (5)
- # data-science (7)
- # datascript (1)
- # datavis (1)
- # datomic (13)
- # defnpodcast (2)
- # emacs (4)
- # events (2)
- # figwheel-main (7)
- # graalvm (23)
- # hoplon (2)
- # jobs (1)
- # meander (15)
- # numerical-computing (1)
- # off-topic (35)
- # pedestal (5)
- # portkey (5)
- # re-frame (19)
- # reagent (9)
- # reitit (14)
- # releases (1)
- # shadow-cljs (28)
- # sql (4)
- # tools-deps (5)
- # xtdb (7)
$ rlwrap ./bb
Babashka v0.2.2-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.
user=> (require '[postal.core :as p])
nil
user=> (p/send-message {} {:from "" :to "" :body "hello"})
java.lang.NoClassDefFoundError [at <repl>:2:1]
I've already added [javax.activation/javax.activation-api "1.2.0"] but maybe I need some reflection configmaybe @U8KKDKPG8 with https://github.com/alekcz/pcp/blob/master/src/pcp/includes.clj#L13 I see it’s there, didn’t test it
@U04V15CAJ @U0FT7SRLP it's not working. I ended up have the core engine on JVM and the developer tool with Graalvm
I'm getting:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=utf-8 [at <repl>:2:1]
Looking at this page: https://stackoverflow.com/questions/21856211/javax-activation-unsupporteddatatypeexception-no-object-dch-for-mime-type-multi
I have added:
'-H:IncludeResources=.*mailcap\.default*'
'-H:IncludeResources=.*mimetypes\.default.*'
but it doesn't seem to helpbtw I haven't seen these resources been logged for a while with
"-H:Log=registerResource:"
Maybe this Quarkus extension could be wrapped in some Clojure code: https://github.com/quarkusio/quarkus/tree/master/extensions/mailer But that wouldn't be the same as postal
ok, I'll leave it at this for now, summary in https://github.com/borkdude/babashka/issues/599
does the -Dclojure.compiler.direct-linking=true
actually do anything with GraalVM 20.2.0? I've not noticed any difference in my own projects
Also tried compiling babashka with & without it and the compilation time was faster when I removed it
When I say "removed it" I mean I removed it in both project.clj and the -J-D
flag in the call to native-image that compiles the binary
It should have benefit on binary size and runtime speed at least, but in some cases also memory consumption during compilation
Gotcha. I double checked with a (medium-sized) cli app at my company and didn't notice a significant difference except for maybe a 1-2% runtime speed improvement. I also tried recompiling babashka: the compilation w/out flags used a bit less RAM, and the non-flag binary was 1.5MB smaller (69.MB vs 70.8MB). Not sure if there's a performance difference between the two babashka builds