Diffing is mostly just a slow way to achieve incremental update of data structures. Whenever I'm tempted to add diffing (most recently, in display lists for Servo), I think about how to make incremental updates fast instead.
-
-
Show this thread
-
To be clear, I'm not a React hater, and diffing has its use cases (like, y'know, in Git). But I do think that the consequences of diffing have to be carefully thought through before deploying it.
Show this thread
End of conversation
New conversation -
-
-
Huh, Svelte looks neat.
- 7 more replies
New conversation -
-
-
Why is the conclusion that there's something wrong with the framework, instead of something being wrong with the platform? If the DOM provided a way to efficiently supply large trees created functionally, without React having to do a diff, we'd use that API.
-
There is no reason why creating a DOM object should be any more expensive than creating a JS object. *That* is the problem we should be solving. You shouldn't have to "supply" large trees to the DOM in the first place: they should just be DOM objects from the beginning.
- 4 more replies
New conversation -
-
-
The main point of React is to be able to write UI = f(State), so you only think about states, O(n), rather than state transitions, O(n^2). Do you have an idea for achieving that without diffing?
-
At some point you have to bottom out and update the state. When you do that, your framework should automatically update the UI at the same time.
- 3 more replies
New conversation -
-
-
Diffing has a nice property of requiring very little bookkeeping initially and very little code to handle all state transitions. Code size and initial render matters so much more that we barely even look at update performance.
-
In fact our native frameworks favors doing everything from scratch instead of diffing. Which speaks to your point about diffing being bad but perhaps not in the direction you had imagined.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.