is there any known CDN that hosts somewhat up-to-date versions of SCI for use from JS?
I've only found this one https://www.jsdelivr.com/package/npm/@borkdude/sci but that's pretty far out of date
@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.
I've also deprecated the Java API (same reason)
so that's a no, just wondering 🙂 thanks!
That was a roundabout way of saying no indeed. :)
If there is heavy demand for this I may re-consider it, but so far I haven't had many requests
I was playing around a bit to see if I could do something like this https://gist.github.com/plexus/3e31e14d5074678f818227d7b9eb31aa
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.
cool :)
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
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
yeah, that's pretty cool. I think this can be a derivative project of sci that optimizes for this use case perhaps
yeah, exactly. 100% agree. Just wanted to try it out first before starting yet another project 🙂