squint

borkdude 2025-10-26T12:46:29.437849Z

I now ported Reagami to CLJS so it can run on the scittle playground from source: https://babashka.org/sci.configs/?gist=568945514e5061273ee1eb26f2c699ed

ray 2025-10-26T18:32:06.466159Z

Quick question - is there a scittle equivalent for squint? Does it even make sense? I’d like it to have a smaller deliverable and without the explicit compilation step.

ray 2025-10-26T18:34:02.646799Z

Maybe it’s nonsense cos the only deliverables are the code files. Maybe better interop then 🤷🏻‍♂️

🤯 1
Chris McCormick 2025-10-27T10:25:52.372469Z

One thing I was thinking about (maybe for cljs-josh) was a vite-like thing that takes your Scittle's index.html and converts/compiles it with Squint into a smaller distributable. I am sure it would be full of gnarly edge cases but maybe fine for small things. That way you can use the Scittle fast dev process and make it small at the end.

Chris McCormick 2025-10-27T10:26:35.626369Z

This is where the "import strings from global" thing in Scittle could come in handy. You would use global script tags during development and then when it compiles it pulls the same thing in from node_modules.

Chris McCormick 2025-10-27T10:26:40.164389Z

No code changes required.

borkdude 2025-10-27T10:26:40.454419Z

I think this would be better done with the squint compiler packaged as a scittle thing

borkdude 2025-10-27T10:26:53.250289Z

since there will be incompatibilities

Chris McCormick 2025-10-27T10:26:58.394329Z

Yeah that makes sense

Chris McCormick 2025-10-27T10:27:16.538389Z

squintle squint

borkdude 2025-10-27T10:27:41.002999Z

e.g. on the squint playground I could make a "eject page" thing or so. you could even just copy/paste the squint compiled code

borkdude 2025-10-27T10:28:00.982229Z

but then there will still be imports of esm.sh libraries

borkdude 2025-10-27T10:28:06.343239Z

that could be optimized further

borkdude 2025-10-27T10:28:22.946799Z

maybe "eject vite project" or so would be convenient too. I don't know

👍 1
borkdude 2025-10-27T10:28:28.599959Z

it depends on what you're optimizing for

ray 2025-10-27T11:12:25.304039Z

I didn’t mean to start something 🤭

borkdude 2025-10-26T18:43:53.933909Z

The squint playground is an example of what squintle could be: https://squint-cljs.github.io/squint/ It's only a couple of lines of code to evaluate code from script tags. However, including the squint compiler isn't small probably

borkdude 2025-10-26T18:45:46.417659Z

well maybe it's not too bad though, the playground includes codemirror which is huge

borkdude 2025-10-26T18:46:48.278399Z

but it certainly won't be as small as it can be if you include the squint compiler. you could make a squint scittle that eventually generates the optimized page without compiler probably

ray 2025-10-26T18:51:14.010259Z

Ok thanks for clarifying and glad I didn’t miss the memo lol