5 ms·
Because DOM manipulation in C++ sounds like a nightmare to me.
by jensvdh 11y ago
Because DOM manipulation in C++ sounds like a nightmare to me.
- omarforgotpwd 11y agoI was thinking more about Ruby, Python, or go
- geon 11y agoIf you want it to be fast, you probably shouldn't touch the dom.
- twistedpair 11y agoC++ speed in the browser... just be sure not to touch the browser.
- rspeer 11y agoTo the contrary, I think everyone should touch the DOM when they need the DOM. If this is going to be a platform for more than ads and shitty games, it will need to be able to use the browser's exquisitely engineered ability to do text rendering and layout. Just like Flash or the JS game platforms that are stupid hacks on top of the canvas element, if people have to implement text rendering without the DOM, it'll encourage putting poorly-rendered text in unusable layouts with squirrely scrollbars. We can do better.
- geon 11y agoI mean you would do it the react way and only manipulate an abstract representation of the dom.