Fork me on GitHub
#hoplon
<
2023-10-09
>
mynomoto18:10:46

Hello, I will do a release soon, update the demos/docs to the latest version because of new inference warnings and will finally announce the recent changes on #C06MAR553. I was hoping to get something written about how we got where we are at but this will delay the announcement so I think that should be done later.

🍿 1
mynomoto18:10:29

Ideas I'm thinking about, related to Hoplon: • Adding a new provider that used the browser apis directly so people could not complain about using goog or jquery. • Allowing multiple providers to be used in the same app (if someone knows if that would be a bad idea please tell me 😅 ). My first idea is having different namespaces for different providers instead of using the current multimethod approach. • Documenting/allowing using Hoplon to get small bits of interactivity as described in https://code.thheller.com/blog/shadow-cljs/2023/07/13/the-lost-arts-of-cljs-frontend.html and other posts in that series. Let me know if someone has other use cases or ideas.

chromalchemy13:10:16

I + hi-lighting the small bits approach. This is probably one of Hoplons relative strengths: not demanding a heavier or more complex stack and bundle, while still being idiomatic cljs (not React semantics, or Squint clj->js transpile, or htmx hypermedia patterns, or more intimate dom api + shadow-cljs knowledge….?) I guess the hardest part for me is maybe understanding and wrangling with the various build and packaging approaches (unless that’s all strictly shadow-cljs territory)

mynomoto13:10:04

Thank you for chiming in. I agree that Hoplon seems a nice fit for bits of interactivity and I will try to find if what already exists works and create a demo project.

chromalchemy23:10:15

Adzerk had a post a long time ago about emdedd hoplon in a regular page. Not sure if that’s relevant

alandipert17:10:01

A cell macro rewrite not coupled to clj and with a debug output mode. The clj coupled part is the primary scittle blocker afaik

alandipert17:10:01

All the other ideas are great too, rock on 👍

borkdude09:10:16

If you are interested in smaller bundle sizes, I recommend making loading clojure.spec optional

borkdude09:10:35

since loading it pulls in clojure.spec to production code which isn't optimal

borkdude11:10:59

The shadow-cljs build report will show you how many kb are added because of loading these namespaces

mynomoto12:10:59

This is a great idea and should be simple to do 👏