Comment by r_lee
19 hours ago
well that's any framework with vdom, the GC of web frameworks, so I'd imagine it's also a problem with vue etc..
I don't understand though why performance (I.e. using it properly) is not a consideration with these companies that are valued above $100 billion
like, do these poor pitiful big tech companies only have the resources to do so when they hit the 2 trillion mark or something?
The React paradigm is just error prone. It's not necessarily about how much you spend. Well paid engineers can still make mistakes that cause unnecesssary re-renders.
If you look at older desktop GUI frameworks designed in a performance-oriented era, none of them use the React paradigm, they use property binding. A good example of getting this right is JavaFX which lets you build up functional pipelines that map data to UI but in a way that ensures only what's genuinely changed gets recomputed. Dependencies between properties are tracked explicitly. It's very hard to put the UI into a loop.
Vue uses signals for reactivity now and has for years. Alien signals was discovered by a Vue contributor. Vue 3.6 (now in alpha/beta?) will ship a version that is essentially a Vue flavored Svelte with extreme fine grained reactivity based on a custom compiler step.
One of the reasons Vue has such a loyal community is because the framework continues to improve performance without forcing you to adopt new syntax every 18 months because the framework authors got bored.
> well that's any framework with vdom
Is it time for vanilla.js to shine again with Element.setHTML()?
https://developer.mozilla.org/en-US/docs/Web/API/Element/set...
It's a bit unfortunate that several calls to .setHTML() can't be batched so that several .setHTML() calls get executed together to minimize page redraws.
It's not a problem with vue or svelte because they are, ironically, reactive. React greedily rerenders.
It's also not a problem with the react compiler.
Nobody gets promoted for improving web app performance.
Yes, they do. OGs remember that Facebook circa 2012 had navigation take like 5-10 seconds.
Ben Horowitz recalled asking Zuck what his engineer onboarding process was when the latter complained to him about how it took them very long to make changes to code. He basically didn't have any.
yep. I think this is the root problem, not the frameworks themselves
If it's slow people also stick around for longer if they have something they must accomplish before leaving.
From: https://hpbn.co/primer-on-latency-and-bandwidth/#speed-is-a-...
> Faster sites lead to better user engagement.
> Faster sites lead to better user retention.
> Faster sites lead to higher conversions.
If it's true that nobody is getting promoted for improving web app performance, that seems like an opportunity. Build an org that rewards web app performance gains, and (in theory) enjoy more users and more money.
They have no real competitors, so anything that makes the user even stickier and more likely to spend money (LinkedIn Premium or whatever LinkedIn sells to businesses) takes priority over any improvements.