sci

ikitommi 2022-06-23T09:29:58.122249Z

sci 0.3.5 seems to have dropped default binding for str. noticed when bumping up deps on malli, so:

;; works on 0.3.4, not on 0.3.5
(require '[sci.core :as sci])
(sci/eval-string "(str/upper-case \"kikka\")")
Is this intentional? don’t see it on the https://github.com/babashka/sci/blob/master/CHANGELOG.md#v035. 🤔

ikitommi 2022-06-23T09:35:33.974049Z

I can easily change the transformation docs & tests to use something else, but would like to document this to Malli CHANGELOG too.

borkdude 2022-06-23T09:45:31.218889Z

Yes, it was intentional. Having the default str alias in the user namespace can be configured with:

{:aliases {'str 'clojure.string}}

borkdude 2022-06-23T09:45:42.854099Z

Not sure where I removed it anymore

borkdude 2022-06-23T09:46:38.645269Z

I think the default configuration of SCI should be unopiniated, which was basically the reason

ikitommi 2022-06-23T10:02:20.221719Z

That’s a good call. I first ported all examples to use the long form but the examples looked bad and added the alias into malli-sci default config. thanks!

👍 1
borkdude 2022-06-23T12:54:19.134679Z

Shaving off some size of the advanced compiled output: a 160kb win.

❤️ 1
🎉 2
borkdude 2022-06-23T12:59:57.102429Z

(but now self-hosted CLJS is unhappy..)

haywood 2022-06-23T13:43:14.928549Z

kinda wild, but using (or) with 20 clauses doesn’t work but 19 does in my SCI compiler

haywood 2022-06-23T13:43:52.014909Z

(or
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  ;nil
  true)
=> true

haywood 2022-06-23T13:44:04.815819Z

(or
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  nil
  true)
=> nil

borkdude 2022-06-23T13:44:35.449679Z

Is this JVM or CLJS?

haywood 2022-06-23T13:44:40.187869Z

jvm

borkdude 2022-06-23T13:44:53.688569Z

issue welcome

haywood 2022-06-23T13:45:12.820869Z

+1 let me confirm I can repro

borkdude 2022-06-23T13:48:04.686479Z

I can

haywood 2022-06-23T13:48:23.525239Z

oh nice, I’ll open an issue

borkdude 2022-06-23T13:58:06.704089Z

found the issue

💥 1
borkdude 2022-06-23T14:03:45.690859Z

Pushed the fix

borkdude 2022-06-23T14:03:53.864899Z

Did you solve your issue with clojure.test the other day?

haywood 2022-06-23T14:04:48.369349Z

yea! way to remember. ended up being a mixture of clojure.test parallelization pain

haywood 2022-06-23T14:05:07.844179Z

what I ended up with was a redefs.clj namespace, and a macro that does all the things necessary to make clojure.test run in isolation

haywood 2022-06-23T14:05:27.522759Z

it just took a bit of trial and error to get the magic recipe, thank you so much again!

haywood 2022-06-23T14:06:47.388309Z

will this be autodeployed? should I monitor this page https://clojars.org/org.babashka/sci

borkdude 2022-06-23T14:06:57.990609Z

you're not using git deps I assume?

haywood 2022-06-23T14:07:11.801129Z

leiningen

borkdude 2022-06-23T14:07:15.876589Z

I can do another mvn release

haywood 2022-06-23T14:07:28.210479Z

🙏🏻

borkdude 2022-06-23T14:09:11.771509Z

Will do in about 30 minutes

haywood 2022-06-23T14:09:18.976719Z

thank you!

ray 2022-06-23T14:35:17.934199Z

30 minutes? What happened to customer service? SMH

ray 2022-06-23T14:35:19.378689Z

🤡

haywood 2022-06-23T14:37:29.526459Z

Truly a remarkable individual, cant even come close to overstating it

💯 1
borkdude 2022-06-23T14:58:04.427949Z

0.3.32

2
😍 1
borkdude 2022-06-23T15:02:53.195969Z