Fork me on GitHub
#planck
<
2019-12-11
>
borkdude13:12:58

It's not really a problem, more an optimization

mfikes13:12:36

Spec is part of ClojureScript so isn’t usually put on the classpath

mfikes13:12:21

(It is internally shipped and loaded if requested)

mfikes13:12:36

Maybe via plk which is based on clj some extra things are on the classpath?

mfikes13:12:49

Yeah, perhaps a minimal classpath could be beneficial—there are JARs that will never really be used.

borkdude13:12:48

afaik clojure will always put clojure spec on the classpath

borkdude13:12:01

and clojure itself too

borkdude13:12:08

which is pointless for self-hosted CLJS

borkdude13:12:27

in the C code I saw a mention of blacklist, not sure if that was related

mfikes13:12:46

It's been a while since I've looked at that code

borkdude13:12:39

I probably saw / remembered that wrong, can't find it anymore

borkdude13:12:18

a simple solution would just be to ignore certain things from the classpath by a regex or something

borkdude13:12:20

a dirty hack:

{:deps {org.clojure/clojure {:local/root "."}}}

borkdude15:12:50

Tip from Alex:

{:aliases {:babashka {:classpath-overrides {org.clojure/clojure nil
                                            org.clojure/spec.alpha nil
                                            org.clojure/core.specs.alpha nil}}}}
$ clj -C:babashka -Spath
src:::