squint

2024-07-30T13:55:10.046219Z

Back in the day, Unix was considered "portable" because the code could be easily adapted to different underlying platforms. Maybe there is a similar way to build squint apps, and "port" them to clojurescript. I have a squint React app with a "store" which is a kind of hacky version of https://github.com/lilactown/pyramid . It's based on immutablejs, whose data structures are quite like clojurescript's. Once my app is mature, I could see "porting" it to clojurescript+pyramid+helix without feeling overwhelmed. Right now though, "it's just javascript" is where I want to be mentally.

borkdude 2024-07-30T14:01:32.779459Z

I have one project which works both for CLJS and squint, using reader conditionals, perhaps that helps: https://github.com/nextjournal/clojure-mode

borkdude 2024-07-30T14:02:13.634629Z

it's compiled via squint which is made available on npm for JS users, while you can also use it as a CLJS dependency

2024-07-30T15:04:10.201379Z

That's cool!

borkdude 2024-07-30T15:05:31.545419Z

and what's even more cool: the squint playground uses this very project to let you edit Clojure source :)

martinklepsch 2024-08-07T10:48:52.012019Z

I’ve been using Jotai with good success - pretty simple but effective and integrates nicely with React.