News for hackers. Stuff that matters.
Re:Is ReactJS really fast? by curun1r on Monday June 01, 2015 @01:56PM (#9640728)
> Observables+DOM elements is a leaky abstraction

The DOM itself is also a leaky abstraction. Render cycles are so prohibitively slow that we've started maintaining a parallel DOM and implementing diffing algorithms in JavaScript. As brilliant as that may be, it's also crazy that it's come to that.

This is a problem that should be solved in the browser. HTML5 should add a simple API to transactionally update the DOM and only render after all changes are committed. This would prevent every single framework from having to implement this logic.

Re:Is ReactJS really fast? by mikaraento on Monday June 01, 2015 @07:30PM (#9642917)
The DOM _is_ only rendered after your JavaScript is finished running - as long as you don't ask for properties that can only be known By rendering it out.
Re:Is ReactJS really fast? by yid on Monday June 01, 2015 @09:27PM (#9643290)
It's not "crazy", it's basically just double buffering, a technique that has been around for a very long time.
Re:Is ReactJS really fast? by michaelchisari on Monday June 01, 2015 @04:03PM (#9641736)
Seeing as how ES6/7, HTML5 and CSS3 specs haven't been afraid to incorporate ideas that started in external libraries, I do hope we see this baked directly into the browser at some point.
Re:Is ReactJS really fast? by aflinik on Tuesday June 02, 2015 @04:24AM (#9644583)
I remember React devs saying they always remember about that, so the whole library is designed to be easily detachable from the DOM, or whatever renderer you might be using. They're also kind of proving that now with ReactNative, and knowing what's coming in the next React versions it's gonna be even better.

Nice thing about React is that even after you remove the Virtual DOM it still encourages a really good model of programming and makes it effortless to build your app.

Re:Is ReactJS really fast? by sanderjd on Monday June 01, 2015 @07:00PM (#9642820)
For what it's worth, transactional DOM update is a fantastic idea that I hadn't heard before your comment. Are you familiar with anyone actively exploring such a thing?