planck

Planck ClojureScript REPL
borkdude 2019-12-11T13:23:52.051800Z

I wonder how planck deals with this problem? https://clojurians.slack.com/archives/C6QH853H8/p1576069900418900

borkdude 2019-12-11T13:23:58.052100Z

It's not really a problem, more an optimization

mfikes 2019-12-11T13:39:36.053100Z

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

mfikes 2019-12-11T13:40:21.053900Z

(It is internally shipped and loaded if requested)

mfikes 2019-12-11T13:42:36.054400Z

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

mfikes 2019-12-11T13:46:49.055100Z

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

borkdude 2019-12-11T13:52:48.055400Z

afaik clojure will always put clojure spec on the classpath

borkdude 2019-12-11T13:53:01.055600Z

and clojure itself too

borkdude 2019-12-11T13:53:08.055900Z

which is pointless for self-hosted CLJS

borkdude 2019-12-11T13:53:27.056300Z

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

mfikes 2019-12-11T13:53:46.056600Z

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

borkdude 2019-12-11T13:56:39.057Z

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

borkdude 2019-12-11T13:57:18.057600Z

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

borkdude 2019-12-11T13:59:20.057900Z

a dirty hack:

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

borkdude 2019-12-11T15:45:50.058300Z

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:::