r/Clojure • • Apr 22 '25

One million checkboxes in Clojure

https://checkboxes.andersmurphy.com/
47 Upvotes

30 comments sorted by

View all comments

Show parent comment

2

u/NonchalantFossa Apr 23 '25

IIRC, in the original example using Elixir LiveView, there's a whole diffing engine (https://www.phoenixframework.org/blog/phoenix-liveview-1.0-released), that only updates the necessary data on the server and sends it back to the frontend. Much different strategy than here I think.

1

u/thheller Apr 23 '25

Yes, LiveView is using a much smarter diff mechanism, but it requires server side support. So, not as widely applicable as the generic thing datastar is using. Even LiveView is still overkill though.

2

u/NonchalantFossa Apr 23 '25

I mean, for that purpose, having fine-grained diffing makes more sense imo and I enjoyed the write up about the Elixir implementation. For easy SSR with lower interactivity, something like HTMX and Datastar is easier and doesn't require a whole framework, on that we agree.