4 ms·
"If you want an optimized application for minimal hardware then surely HTML isn't an alternative anyway?" That was the question on linked article. These days H
by kbart 9y ago
"If you want an optimized application for minimal hardware then surely HTML isn't an alternative anyway?"
That was the question on linked article. These days HTML becomes viable even on low-end hardware, it's even standard on some appliances (i.e. home routers) and this question is very common.
"Not sure I agree that QT is harder to develop and maintain, it depends on what you are used to."
General census is that writing clean C++ (QML was still lacking the last time I used Qt, though it might have changed since then) is a bit harder than creating HTML page.
- tjoff 9y agoI think you are confused, home routers don't even render HTML but let the insanely powerful client do the actual work. Javascript isn't exactly known for maintainability and clean code either. I'd much prefer C++ for proper applications.
- kbart 9y agoYes, router was not the best example, it was to illustrate that writing HTML interface is already common, not necessarily GUI. But there are plenty of devices that use HTML for GUI as well, some new PoS terminals comes to mind[0]. 0. https://ingenico.us/smart-terminals/telium-tetra/payment-terminals/lane-series/lane-5000.html https://ingenico.us/smart-terminals/telium-tetra/payment-ter...
- ahartmetz 9y agoI did not find any video on YouTube showing it reacting to user input, go figure... Its CPU is underpowered for any UI that isn't highly optimized native code, and this looks like it's struggling to serve up the few pixels of its relatively low resolution display: https://youtu.be/hI-gYmwL9hQ?t=1m19s https://youtu.be/hI-gYmwL9hQ?t=1m19s However they had to use some kind of software rendering due to lack of GPU, and QML with software rendering isn't that fast either.
- kbart 9y agoI have played a little with it live. It uses mixed GUI of legacy graphic sub-system and HTML5. And yes, on HTML5 "apps" it's noticeably slow..
- tyfon 9y agoAnecdotally. When I play youtube videos in my browser I'm getting about 1/3 of the view time before the battery is out compared to using mpv with youtube-dl on my laptop. It's not just about being able to run it at all but run it efficiently. These days anything on the web feels really sluggish and I miss the days when optimisation was a priority. Also for me, I vastly prefer writing C++ code over html and the few times recently where I had to write webpages I used libwt[1] in C++. It's almost like using QT but for html. [1] https://www.webtoolkit.eu/wt https://www.webtoolkit.eu/wt
- majewsky 9y ago> writing clean C++ is a bit harder than creating HTML page False analogy. The counterpart of HTML in the Qt world is QML, not C++. C++ is the counterpart of JS (or whatever backend language the web application uses).
- IshKebab 9y agoThis is about running a web browser on the device. Home routers don't do that.