nbb

f2wHTttf 2024-10-17T01:36:02.777489Z

Out of curiosity, is there a specific list of blockers preventing the Babashka spec fork from working in nbb? Also has anyone tried using CLJS's spec implementation with nbb?

borkdude 2024-10-22T16:40:05.350979Z

@m8ydiw7o I'm working on getting spec working in SCI (thus in nbb too)

💖 1
borkdude 2024-10-22T16:40:35.701689Z

will perhaps have something to show for tomorrow

f2wHTttf 2024-10-26T22:36:50.750789Z

thank you!

borkdude 2024-10-23T19:01:06.818099Z

done, and released

f2wHTttf 2024-10-17T01:50:18.847309Z

CLJS spec doesn't work (unsurprisingly). Probably would need to use the CLJS compiler or shadow-cljs instead or stick with Malli on nbb.

borkdude 2024-10-17T09:11:11.742619Z

I've made a super simple spec clone once which worked in an early version of babashka. Perhaps it also works in nbb https://github.com/borkdude/spartan.spec

borkdude 2024-10-17T09:24:41.508849Z

Made some change to it and it seems to work:

$ ./cli.js -e '(nbb.core/load-file "/tmp/spec.cljs") (clojure.spec.alpha/def ::x int?) (clojure.spec.alpha/valid? ::x 1)'
true

🎉 1
borkdude 2024-10-17T09:25:47.395389Z

sorry, yelled too soon:

$ ./cli.js -e '(nbb.core/load-file "/tmp/spec.cljs") (clojure.spec.alpha/def ::x int?) (clojure.spec.alpha/valid? ::x "dude")'
true

😥 2