Fork me on GitHub
#clojure-spec
<
2021-01-04
>
Karol Wójcik11:01:05

Hello! Is it possible to disable load of clojure.spec.alpha completely?

hkjels11:01:58

clojure.spec.alpha is not part of Clojure, so what do you mean by “disable load”?

delaguardo12:01:40

it is not possible.

Karol Wójcik13:01:23

@U0B1SDL67 it seems java11 dynamically loads clojure.spec.alpha which results in error: https://clojurians.slack.com/archives/C03S1KBA2/p1609747607299900

delaguardo13:01:01

strange, clojure.walk is not requiring clojure.spec.alpha

Karol Wójcik13:01:26

For me the strangest thing is that even after removing clojure.walk dynamic class load requires spec.alpha which results in different error. Never seen it before.

delaguardo13:01:41

but spec.alpha is require clojure.walk …

Alex Miller (Clojure team)14:01:06

spec depends on clojure, and clojure depends on spec. so there is actually a cycle here conceptually.

Karol Wójcik14:01:12

@U064X3EF3 tried to set -Dclojure.spec.skip-macros=true without results. Here is the example: https://github.com/ekoontz/holy-lambda/blob/repro-spec/examples/hello-lambda/project.clj Wondering why Clojure compiler macroexpands on runtime

Karol Wójcik16:01:25

Will try to provide minimal repro during weekend.

Alex Miller (Clojure team)14:01:24

See -Dclojure.spec.skip-macros=true https://clojure.org/guides/faq#skip_macros for turning off macro checking