Fork me on GitHub
#graalvm
<
2019-12-20
>
borkdude12:12:26

I've added clj-http.client/get to babashka, but GraalVM compilation takes significantly longer, I wonder if it will ever finish. If this isn't going to work, I'll take a look at clj-http-lite

borkdude12:12:54

I'm aborting the compilation, it seems like a no go

borkdude12:12:19

Seems to work quite nicely, compiles fast:

$ bb "(require '[clj-http.lite.client :as client]) (:status (client/get \"\"))"
200

viesti17:12:54

I wonder would https://github.com/schmee/java-http-clj work also, since Java 11 is now supported by Graal

borkdude18:12:54

hmm, interesting

borkdude19:12:46

it seems to include specs, not sure if that currently works well with graalvm, considering the lock thing

borkdude19:12:56

but it seems small enough to just copy the code

mikeb19:12:21

What's the lock problem with specs?

sogaiu20:12:02

may be you meant the reply to be attached to a different thread or be at the top-level?