I'm still waiting for native delayed rendering solution with transactional and atomic DOM operations from browsermakers.
In one talk with a Mozilla guy from Vancouver we went over it and it came to "framework pushers in WHATWG will never agree to that as it obviates the need in Angular/React/others and their Shadow DOM peg leg workarounds"
I don't buy it. Wouldn't those frameworks hugely benefit from having atomic DOM operations? It seems like it would not only increase performance (almost for free), but could also potentially cut down on the amount of work their engines have to do to reduce the number of DOM manipulations they do.
>Wouldn't those frameworks hugely benefit from having atomic DOM operations?
They will, and it seems that this does not bode with authors whose employment/sponsorship/grants depends on solving that problem and providing their variant of peg leg solution for it
Is that true though? The shadow DOM diffing isn't the point of React. The point was to turn rendering into a function that takes application state and returns the view. The shadow DOM diffing stuff is just an implementation detail that made this model fast enough to be practical.
I would love to see a standardised `element.transformChildrenTo(newChildren)` or some such. Also, a built in elem` string handler function ` that can allow interpolation of other elements, arrays of elements, or objects for attributes.
That would allow you to do nearly all of what react does without any external libraries and a very small amount of code.
Yes, certainly they did, but it all ended up with 3 different standards, none of which was adopted by any browser. It was at around time browsermakers were holding non-stop talkshops over long promised native fragment/template loading that was never implemented (XMLDocument.Load() and others)
I always got that feeling, disappointed to see it's a reality.
I've been writing lots of things in plain old JavaScript for the last few years, and it's quite pleasant. With a little bit of attention to serialization constraints I manage not to hit any performance issues even for nasty things like lazy loaded tables.
We have SharedArrayBuffer (shared memory-ish) and Atomics (in latest Firefox) so we have multi-threading in JS (whether it's a good idea or not that's a completely different story) but we still don't have the ability for multiple threads to work with the DOM. We need a SharedDOM construct with Atomics. Well, just because multi-core, right? What am I missing?
We can't stop people from naming their projects/products the way they want. However, I think headlines in HN should be editoralized a bit to provide context, followed by the actual headline from the webpage.
In one talk with a Mozilla guy from Vancouver we went over it and it came to "framework pushers in WHATWG will never agree to that as it obviates the need in Angular/React/others and their Shadow DOM peg leg workarounds"