squint

Chris McCormick 2025-10-07T14:27:42.277449Z

I think I need to remove the debug logging from Eucalypt. Smallest build size is 8kb gzipped with logging removed:

../../docs/small.html  22.62 kB │ gzip: 7.97 kB

🎉 2
Chris McCormick 2025-10-07T14:29:18.969379Z

Wonder if I could use a macro to strip it out. 🤔

borkdude 2025-10-07T15:21:46.454619Z

you could use a macro yes

borkdude 2025-10-07T15:22:04.558619Z

probably

Chris McCormick 2025-10-11T07:04:16.313869Z

Lots of simplifying Eucalypt today. I'm getting ready to make r/render re-entrant so there can be multiple on the same page. Will add a failing test with two different r/render calls that conflict. I think this will make the code much cleaner and more functional too, with less global vars.

🎉 1
Chris McCormick 2025-10-11T01:27:42.309069Z

Are you using the logging at all? I think I might just rip it out since I am not actually using it. I generally just add logging when I need to debug and remove it again afterwards.

👍 1
borkdude 2025-10-07T19:14:00.188049Z

https://mastodon.social/@borkdude/115334438914065922

Harold 2025-10-07T19:15:26.860879Z

so thats now [true true true] and it wasn't before?

borkdude 2025-10-07T19:15:49.297989Z

yep, before it was false false false

Harold 2025-10-07T19:16:00.806109Z

fixing javascript, one clojure idea at a time

borkdude 2025-10-07T19:17:22.883249Z

the next idea is to make #{..} return a set that actually works with collection equality = I can't change object literals but I'd like to make a Map type which also works with that. Perhaps as a separate namespace

borkdude 2025-10-07T19:17:55.916409Z

or perhaps with an object literal notation like #map {:a 1} or so

borkdude 2025-10-07T19:19:11.082439Z

the main driver for this change was eucalypt which compares hiccup

Harold 2025-10-07T19:19:33.396819Z

Does squint currently turn #{} into https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set ?

borkdude 2025-10-07T19:19:38.705349Z

yes

Harold 2025-10-07T19:19:52.605269Z

🆒

Harold 2025-10-07T19:20:41.015769Z

and (= a b) into a==b ?

borkdude 2025-10-07T19:20:59.931589Z

well that's the part which just changed

Harold 2025-10-07T19:21:11.418079Z

I see, that makes sense.

borkdude 2025-10-07T19:21:51.497829Z

it now uses squint_core._EQ_ for this. when you write (identical? a b) it should do the same as a === b which was the behavior of = before

borkdude 2025-10-07T19:23:35.906639Z

yes

borkdude 2025-10-07T19:23:45.035349Z

the real meat is in dequal

Harold 2025-10-07T19:24:51.301379Z

got it 🙂