scittle

zimablue 2025-12-10T19:42:17.496349Z

what's the relationship between scittle and vanilla cljs libraries? can scittle depend upon them, and if so is there performance-significant compilation that can be done to a cljs library which scittle could then :require ?

zimablue 2025-12-11T15:54:55.544749Z

it seems like if you wanted to use a pretty heavy project like membrane and other things, to build something heavy but allow a direct REPL through the browser to the clojurescript runtime without assuming a running Java process, you'd be better (only) served my self-hosted clojurescript then? but that seems pretty heavy to set up and also constricts your options (re advanced compilation but this is inevitable if also having a runtime REPL, but also yu might have to recreate bits of shadow-cljs (?))

timothypratley 2025-12-10T20:44:42.484069Z

Some ClojureScript libraries are provided as "plugins" for example see https://babashka.org/scittle/#reagent "plugins" are compiled to be required from scittle. There is a limited set of official plugins, scittle-kitchen expands this to include a wider set of ClojureScript libraries: https://timothypratley.github.io/scittle-kitchen/ Adding new libraries there is (usually) just a matter of adding them to the plugin-templates.edn file. You can also create your own build. Of course only complex libraries need to be precompiled (single/small namespaces might be better simply loaded uncompiled).

👍 2
timothypratley 2025-12-10T20:47:39.301449Z

Using https://github.com/pitch-io/uix from Scittle? Experiences? Suggestions?

🙏 1
timothypratley 2025-12-10T20:48:58.887429Z

I'm thinking about adding this to scittle-kitchen. AFAIK to use a library with SCI that relies on macros or custom syntax (like UIx custom element creation), the library author or a community member must provide a specific configuration map to teach SCI how to interpret those forms at runtime. I'm hoping someone already did that 😆

borkdude 2025-12-10T20:56:16.352069Z

Not that I know of