Fork me on GitHub
#sci
<
2021-04-12
>
plexus11:04:02

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

plexus11:04:44

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

borkdude12:04:35

@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.

borkdude12:04:07

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

plexus12:04:16

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

borkdude12:04:39

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

borkdude12:04:04

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

plexus12:04:21

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

plexus12:04:07

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.

plexus12:04:49

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

plexus12:04:50

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

borkdude12:04:18

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

plexus12:04:49

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