by io_eric · 10mo ago · 0 comments
A dedicated compiler allows us to trace dependencies between state variables and DOM nodes at compile-time, generating direct imperative update code. To achieve similar ergonomics in a C++ library, you'd effectively have to rely on runtime tracking (like a distinct Signal graph or VDOM), which adds overhead.
All the best with it!
P.S. It would also be interesting to see how far it's possible to go with constexpr etc.