hoplon 2023-10-26

big news, borkdude just ported Javelin to scittle & nbb: https://twitter.com/borkdude/status/1717619707392491753

🍻 5
👏 2

That was amazing, I asked some questions and then he told me it was already done 😅

🤯 2

I'm kind of a hoplon noob, but I've heard about it for the first time probably already 10 years ago. How is performance compared to, say, React?

👀 1

measured in parentheses per second?

😂 2

hehehe, yeah, how do people actually measure these things :)

tl;dr • problem react solves is needing to necessarily empty out all dom nodes before you add them all back, like if you're syncing an array with a set of elements (like an array to a bunch of todo <li> • hoplon solves differently by promoting fine-grained subscriptions to cells. DOM nodes are pooled and reused, no diffing other than clj = inside javelin

it's basically immediate mode (React) vs. retained mode (Hoplon+Javelin, DOM), in UI speak

1