This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-27
Channels
- # announcements (8)
- # babashka (11)
- # beginners (34)
- # clerk (11)
- # clj-http (2)
- # clojure (5)
- # clojure-europe (9)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-poland (1)
- # clojure-sweden (5)
- # clojure-uk (9)
- # clojurescript (17)
- # core-typed (12)
- # cursive (4)
- # datahike (4)
- # datalevin (2)
- # datomic (7)
- # emacs (8)
- # events (8)
- # graphql (5)
- # gratitude (1)
- # hyperfiddle (19)
- # jobs-discuss (4)
- # leiningen (4)
- # lsp (21)
- # meander (2)
- # off-topic (9)
- # play-clj (1)
- # polylith (10)
- # releases (1)
- # sci (18)
- # vim (10)
I'd like to create Clerk notebooks with embedded, interactive Quil sketches (and develop them live). I was somewhat surprised to see that I couldn't find any prior art here. Is this even possible given the current state of clerk's cljs support via cherry?
Clerk’s cljs support is via SCI. I don’t know of anyone who has loaded CLJS Quil on the browser side, but it should be doable. 🙂
I just wrote a little p5-viewer
for clerk that uses nextjournal.clerk.render/with-dynamic-import
to load the p5.js library. That works, which is a nice step, but of course I'd much rather write quil code than p5.js code.
I suppose I need to produce a .js artifact of quil somehow.
I'd like to be able to publish static clerk notebooks to the web with embedded and interactive quil sketches, so JVM quil won't work.
For quil on the JVM, you can target SVG and emit to Clerk pretty easily. The downside is with interactivity/animation.
For those in the future wondering how to make quil work with clerk, you can see how I got this working at https://github.com/Ramblurr/nature-of-code