sci

teodorlu 2022-04-19T13:00:23.039929Z

out of curiosity. parse-long came to Clojure in 1.11. Will we get parse-long in Sci after a Clojurescript also provides the function? Then, add a line like

'juxt (copy-core-var juxt)
in https://github.com/babashka/sci/blob/a91f90eefc2466ed21a3bf4322d13a10de7f231d/src/sci/impl/namespaces.cljc#L1157?

borkdude 2022-04-19T13:01:46.846769Z

The problem here is that parse-long isn't available in every version of clojure, so we'd have to backport it since SCI supports clojure 1.9+. Alternatively you can just add it yourself in {:namespaces {'clojure.core {'parse-long ...}}}

👍 1
borkdude 2022-04-19T13:02:18.143979Z

Similar for clojure.math. This has been added in babashka

borkdude 2022-04-19T13:02:24.655339Z

but not in SCI

borkdude 2022-04-19T13:03:24.192679Z

One other concern is that everything added to namespaces will be part of the JS bundle so going forward I think I won't add anything new there if it wasn't already in 1.9-1.10 but provide ways to optionally include it

👍 1
borkdude 2022-04-19T13:03:35.837509Z

but parse-long seems small enough for that not to be a problem

borkdude 2022-04-19T13:09:28.171629Z

Maybe we can have an optional addon namespace which provides 1.11 features and one for clojure.math too

borkdude 2022-04-19T13:09:42.409089Z

so you can load those when you're on clojure 1.11

👍 1