News for hackers. Stuff that matters.
Re:You can now write React in Lua by wruza on Monday June 24, 2024 @05:58PM (#40781359)
Vue uses a similar (well, now ubiquitous) vdom technology, which can be used directly instead of templates, which simply transpile to it. I think this idea (afaiu) that vue has to do more work than react due to hierarchy etc isn’t correct. If there’s no dom bound to data.a[b].c, then nothing happens. If you think that vue templates still have to be regenerated, resliced and so on, then that also happens only once and results in a function which can be called to “render” vdom. https://codedamn.com/news/vuejs/exploring-vuejs-compiler-tem...

Sorry if I got you wrong. But it’s not the first time I think I see these wrong ideas about how “React is better”. I blame React itself, cause not only it redefined the terms, but also pushed this vague “compared to a regular detergent” agenda everywhere. It’s much less of a library than of pure religious movement with strawmen and fallacies.

Re:You can now write React in Lua by shadowgovt on Monday June 24, 2024 @08:30PM (#40782855)
Thank you for that. My apologies; said "Vue" meant "Svelte."

AFAICT, Svelte doesn't have a vdom? Maybe I'm just missing it.