News for hackers. Stuff that matters.
Re:Nana: A modern C++ GUI library by ridiculous_fish on Saturday April 20, 2019 @11:11PM (#19710329)
No, HTML and CSS are document markup languages. They are actually quite bad at UIs.

For example, implement a table with more than a few hundred rows. UI toolkits don't even blink while HTML just falls over.

Re:Nana: A modern C++ GUI library by aphextron on Sunday April 21, 2019 @01:58AM (#19710731)
>No, HTML and CSS are document markup languages. They are actually quite bad at UIs.

This was true 10 years ago. Now frameworks like React are at or beyond the sophistication of anything native. Practically every other UI technology implements their interfaces in an XML-esque syntax that is far less expressive and flexible than HTML, which end up locking you in to a small constrained ecosystem. CSS has evolved as well, and with GPU acceleration out of the box and things like grid and flexbox all of the older issues are gone.

Re:Nana: A modern C++ GUI library by pjmlp on Sunday April 21, 2019 @04:32AM (#19711170)
Nah, HTML and CSS have lots to learn from iOS and Android layouts, QML and XAML.

Where is Blend for HTML/CSS?

React might be sofisticated, but having the performance of native GUIs, or the eco-system of companies selling UI components, is surely something that it will never have.

Re:Nana: A modern C++ GUI library by drb91 on Sunday April 21, 2019 @01:05AM (#19710622)
I think you’re right, but tables in scroll views are tricky in every context—if my understanding of the problem is correct, optimal rendering of this requires both an understanding of the backing data store and estimation of rows before loading. What about rendering via dynamic DOM interaction makes this fundamentally more difficult—is it something inherent to the DOM, or is it simply to do lack of effort to expose the necessary apis to do the same kind of work you can do natively to scroll through a table smoothly?