sci

https://github.com/babashka/SCI - also see #babashka and #nbb
plexus 2021-04-12T11:59:02.001400Z

is there any known CDN that hosts somewhat up-to-date versions of SCI for use from JS?

plexus 2021-04-12T11:59:44.001800Z

I've only found this one https://www.jsdelivr.com/package/npm/@borkdude/sci but that's pretty far out of date

borkdude 2021-04-12T12:02:35.003Z

@plexus I haven't been maintaining the npm version since I think it's a pain in the ass to pass configuration from JS to the Clojure interface. I think most people end up wrapping sci from a cljs project and then exposing it to JS if needed.

borkdude 2021-04-12T12:03:07.003500Z

I've also deprecated the Java API (same reason)

plexus 2021-04-12T12:03:16.003700Z

so that's a no, just wondering 🙂 thanks!

borkdude 2021-04-12T12:04:39.004Z

That was a roundabout way of saying no indeed. :)

borkdude 2021-04-12T12:05:04.004400Z

If there is heavy demand for this I may re-consider it, but so far I haven't had many requests

plexus 2021-04-12T12:08:21.004900Z

I was playing around a bit to see if I could do something like this https://gist.github.com/plexus/3e31e14d5074678f818227d7b9eb31aa

plexus 2021-04-12T12:08:23.005Z

plexus 2021-04-12T12:09:07.006Z

Wanted to see how far I could get without wrapping it in a separate cljs project, although clearly that's the way forward if I want to continue with this.

borkdude 2021-04-12T12:10:23.007200Z

cool :)

plexus 2021-04-12T12:10:49.007700Z

I was listening over the weekend to a podcast about creative coding, and they were talking about the loss of "view source", with everything being compiled now. I think especially for these kind of sketches it would be pretty cool to have something that you can just drop into a <script> tag and then just stick clj(s) into your source

plexus 2021-04-12T12:11:50.009Z

in this case also partially inspired by https://www.dwitter.net/ , they set up a bunch of variables like x is the canvas context, t is current time, and so forth, so you can really concisely put these things together

borkdude 2021-04-12T12:12:18.009600Z

yeah, that's pretty cool. I think this can be a derivative project of sci that optimizes for this use case perhaps

plexus 2021-04-12T12:12:49.010200Z

yeah, exactly. 100% agree. Just wanted to try it out first before starting yet another project 🙂