assoc + assoc! with ^object type hints now work on the playground:
https://squint-cljs.github.io/squint/?src=KGRlZiBteS1vYmogKGFzc29jIF5vYmplY3QgezphIDF9IDpiIDIpKQooYXNzb2MhIF5vYmplY3QgbXktb2JqIDphIDIgOmMgMyk%3D&repl=false
@borkdude suggested I post about Eucalypt on Show HN: https://news.ycombinator.com/item?id=45590740
I want to add a small slider-based calculator to a webpage on my website. sort of like the ohm demo. I'm using Eleventy to build the site. would using eucalypt and the string eval method from squint be a bad idea? the "business logic" is just some 170 of clojure so I really dont want to bring a big dep to make the component but also dont want to translate from clj to js 😛
you could also just translate your CLJS on the squint playground and copy paste it ;)
or you can use scittle alternatively which has reagent too
but if you want a small JS website, definitely go with npm create eucalypt myapp
thanks I'll take a look!
@slack.jcpsantiago co-incidentally I recently found someone using eleventy with squint: https://github.com/flmng0/tmthy.dev
We're too early.
The world is not ready for 10kb cljs frontends. 👽
Nice! Note that direct links are kind of punished on HN
Maybe it helps if you find it via search and then upvote: https://hn.algolia.com/?q=Show+HN%3A+I+LLM-coded+a+10kb+version+of+my+favorite+ClojureScript+React+wrapper
@slack.jcpsantiago if you do end up trying Eucalypt it would be good to hear the experience report whether you continue with it or not.
@borkdude that's cool thanks! @chris358 sure thing 👍 I'm not sure yet if where and how I'll implement what I need to do, I'm currently collecting options. Either do it inside our cljd app, or server-side with datastar or something like Eucalypt. I'll let you know.
any tips on getting the defclass macro to work nicely with clj-kondo? I tried the classic squint.core/defclass clojure.core/defrecord but it lacks knowledge of things like extends super etc
true, probably best to just configure clj-kondo to ignore stuff inside this macro
{:config-in-call {squint.core/defclass {:ignore true}}}