This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-12
Channels
- # announcements (1)
- # babashka (79)
- # beginners (165)
- # calva (29)
- # cider (20)
- # clara (3)
- # cljdoc (1)
- # cljs-dev (52)
- # clojure (42)
- # clojure-chicago (5)
- # clojure-europe (48)
- # clojure-germany (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-spec (10)
- # clojure-uk (19)
- # clojurescript (50)
- # clojureverse-ops (5)
- # conjure (8)
- # datomic (16)
- # depstar (2)
- # events (1)
- # figwheel-main (23)
- # fulcro (26)
- # girouette (41)
- # graalvm (9)
- # heroku (3)
- # honeysql (10)
- # jackdaw (20)
- # lambdaisland (6)
- # lein-figwheel (1)
- # lsp (34)
- # malli (7)
- # meander (3)
- # music (1)
- # off-topic (14)
- # polylith (7)
- # re-frame (14)
- # reitit (8)
- # reveal (15)
- # ring (3)
- # schema (1)
- # sci (15)
- # shadow-cljs (42)
- # spacemacs (1)
- # startup-in-a-month (12)
- # tools-deps (59)
- # vim (1)
- # xtdb (27)
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.
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.
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