News for hackers. Stuff that matters.
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @09:17AM (#17204977)
yeah, after working in the web world and being depressed by javascript apps that consume 100% CPU doing nothing to render a page of ads, I love to go back to Qt and spend 5 minutes writing a high performance app that does amazing things.

It's really incredible how the world of software developed by adults differs from the software developed by kids.

Re:Released and Certified: Qt Safe Renderer by Waterluvian on Friday June 01, 2018 @09:43AM (#17205206)
That's just so out of touch with reality. People with that attitude scare me because they lock us into the "one true solution" rather than the one that actually makes the company successful. Nobody pretends that JS/electron apps are supafast, but don't pretend like they don't have tremendous benefits too.
Re:Released and Certified: Qt Safe Renderer by gameswithgo on Friday June 01, 2018 @09:51AM (#17205270)
there are many true solutions, electron is not one of them though.

>but don't pretend like they don't have tremendous benefits too.

Javascript+html+css is not a global optimum in the solution space of "making cross platform GUI apps", its just the best solution that exists right now (if you are afraid of C++), and that is too bad.

We could have simpler, better performing ways if we bothered to do things that aren't web related more often.

Re:Released and Certified: Qt Safe Renderer by MrP on Friday June 01, 2018 @10:27AM (#17205573)
People being afraid of C++ is not as big a problem as people not being afraid of C++
Re:Released and Certified: Qt Safe Renderer by jancsika on Friday June 01, 2018 @07:38PM (#17211500)
> (if you are afraid of C++)

Iterating front-end development with Javascript+html+css is simpler and quicker than doing the same with C++ because you don't have to recompile for each iteration. In some cases I don't even need to restart the app.

Also, I have been able to debug in a few nasty cases by getting users to switch out a js/html file and restart the app. That's impossible to do with C++ given the same time/effort constraints.

Those are just two fairly small but measurable examples. There are also drawbacks to having not chosen Qt for the front-end. But those data points and more were part of a rather complicated cost-benefit analysis of what was available to make a cross platform GUI app in a reasonable amount of time.

I don't see what a search for a "true" toolkit has to do with such an analysis. I don't see what caricatures of one camp or another as unduly emotional has to do with such an analysis. What am I missing?

Re:Released and Certified: Qt Safe Renderer by sho_hn on Friday June 01, 2018 @09:22PM (#17212028)
You should do some Qt frontend development some time. A lot of is done in QML and doesn't need recompilation, and can be hot-reloaded at runtime. It's a false dichotomy, Qt offers these benefits to a great extend when used well.
Re:Released and Certified: Qt Safe Renderer by Too on Saturday June 02, 2018 @03:04AM (#17213191)
Qt QML is javascript...
Re:Released and Certified: Qt Safe Renderer by chrisco255 on Friday June 01, 2018 @10:05AM (#17205416)
But time and money is a real constraint for projects. It's hard enough writing native Android, native iOS, and a web app to boot without also having to write native Mac, Linux, and Windows and dealing with all the cross platform UI quirks on Qt.
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @11:47AM (#17206457)
Qt handles cross-platform better than any other framework.
Re:Released and Certified: Qt Safe Renderer by EStudley on Friday June 01, 2018 @11:06AM (#17205942)
Wait, what? How are you going to write a native app with less quirks than Qt? VTK? That's a little disingenuous.
Re:Released and Certified: Qt Safe Renderer by chrisco255 on Friday June 01, 2018 @11:53AM (#17206547)
This is in reference to using Electron so you don't have to both write a web app and a native desktop app using Qt (in addition to native mobile, where performance issues are much more noticeable).
Re:Released and Certified: Qt Safe Renderer by kbutler on Monday June 04, 2018 @08:10AM (#17226990)
...and electron apps have no UI quirks and no performance issues on mobile.
Re:Released and Certified: Qt Safe Renderer by royjacobs on Friday June 01, 2018 @10:36AM (#17205647)
The whole point of Qt is that you don't have cross-platform UI quirks.
Re:Released and Certified: Qt Safe Renderer by chrisco255 on Friday June 01, 2018 @11:55AM (#17206581)
You still have quirks. Qt helps for the bulk of the work, sure, but OSX, Windows, and Linux all have unique quirks that have to be dealt with.
Re:Released and Certified: Qt Safe Renderer by pknopf on Friday June 01, 2018 @03:13PM (#17208940)
Any OS-quirks you experience with Qt are likely the nature of cross-development (path separators, toolbars, sys-trays), stuff that you'd likely experience with any framework.

Qt's cross-platform support is amazing.

Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @10:01AM (#17205379)
what, exactly does electron get us over native apps? Be specific. I've used them, they look and feel like most other apps, but tend to be slower and more buggy.
Re:Released and Certified: Qt Safe Renderer by rsynnott on Friday June 01, 2018 @10:38AM (#17205669)
Keeps the price of DRAM high, thus stimulating the semiconductor industry.
Re:Released and Certified: Qt Safe Renderer by shawnz on Friday June 01, 2018 @10:21AM (#17205520)
A faster turnaround time for updates and bug fixes, enabled by removing the minutiae of developing cross-platform apps.

Now tell me, what do native apps get you over Electron apps? Demonstrably happier customers? Or just the personal satisfaction of knowing your app is a "global optimum" or whatever?

Re:Released and Certified: Qt Safe Renderer by pknopf on Friday June 01, 2018 @03:15PM (#17208959)
> A faster turnaround time for updates and bug fixes, enabled by removing the minutiae of developing cross-platform apps.

I'd say what you are arguing is "my team is better at JavaScript than Qml/JavaScript/C++", which is fine. It really boils down to what the team is most comfortable writing in.

That aside, Qt definitely wins when compared to Electron.

Re:Released and Certified: Qt Safe Renderer by heeen2 on Friday June 01, 2018 @10:38AM (#17205675)
Less memory. Less disk space. When a critical bug is found in the electron runtime, you'll have to trust all those packaged electron versions get updated in time.
Re:Released and Certified: Qt Safe Renderer by snuxoll on Friday June 01, 2018 @10:46AM (#17205736)
Let's be fair here, if you're running on anything but Linux you're hoping every application updates their bundled Qt frameworks when there's a bug found in it too.
Re:Released and Certified: Qt Safe Renderer by asfdsfggtfd on Friday June 01, 2018 @11:27AM (#17206180)
But why would I be running anything other than Linux...
Re:Released and Certified: Qt Safe Renderer by jcelerier on Friday June 01, 2018 @01:12PM (#17207564)
> A faster turnaround time for updates and bug fixes, enabled by removing the minutiae of developing cross-platform apps.

what makes you say that ? I develop a C++/Qt app and fix bugs and add new features without any problems and without having to care to mac / windows / linux specific stuff.

Re:Released and Certified: Qt Safe Renderer by Keyframe on Friday June 01, 2018 @10:35AM (#17205645)
Battery life, more free RAM...
Re:Released and Certified: Qt Safe Renderer by jhoechtl on Friday June 01, 2018 @10:19AM (#17205509)
For one cross platform.
Re:Released and Certified: Qt Safe Renderer by Keyframe on Friday June 01, 2018 @11:03AM (#17205904)
You kind of get that with qt as well. How about mobile?
Re:Released and Certified: Qt Safe Renderer by pjmlp on Friday June 01, 2018 @11:10AM (#17206005)
If they had any big benift for the users, everyone would be doing MSHTML and XUL apps nowadays.
Re:Released and Certified: Qt Safe Renderer by aroman on Friday June 01, 2018 @09:26AM (#17205045)
Your last sentence is needlessly condescending :/
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @09:35AM (#17205130)
No, it's not. It's an accurate assessment of the current state of the web world: web frameworks that last a year before they get abandoned by their creators. jwz wrote a nice blog post about it: https://www.jwz.org/doc/cadt.html
Re:Released and Certified: Qt Safe Renderer by hood_syntax on Friday June 01, 2018 @09:41AM (#17205178)
Why do people link this dude here when you get redirected to that picture every time...
Re:Released and Certified: Qt Safe Renderer by shawnz on Friday June 01, 2018 @09:52AM (#17205290)
Yes, how ironic to criticize childlike developers and then defer to jwz
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @10:11AM (#17205454)
A guy who has maintained a secure screensaver for 20+ years. Who aptly describes how fucked up our system is. Who built the technology your browser apps are based on.
Re:Released and Certified: Qt Safe Renderer by iiiggglll on Friday June 01, 2018 @11:10AM (#17206003)
Not that he's wrong about open-source abandonware, but that's rather an overstatement. No significant amount of his code remains in any modern browser, and when the engine that eventually became WebKit and later Blink (and which now powers the majority of end-user web client browsing today) was first announced as based off KHTML and not Mozilla tech, he wrote a self-congratulatory blog post[0] that started off with "Summary: I was right", even though it had nothing to do with him or his work. Not to mention KHTML was done using C++, something he was always against (no mention of "I was right" on that part, I see). He's done some good work here and there but he really gets carried away with his blowhard opinionating at times, and I think people should turn a more critical eye towards that sort of thing.

[0] https://www.jwz.org/blog/2003/01/more-khtml/

Re:Released and Certified: Qt Safe Renderer by Mononokay on Friday June 01, 2018 @10:36AM (#17205655)
The link works for me.
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @10:56AM (#17205808)
You're probably using an ad blocker
Re:Released and Certified: Qt Safe Renderer by icebraining on Friday June 01, 2018 @10:15AM (#17205482)
Are they being abandoned by their creators, or just superseded in popularity by others?
Re:Released and Certified: Qt Safe Renderer by pknopf on Friday June 01, 2018 @03:20PM (#17209012)
Both are equally as bad.
Re:Released and Certified: Qt Safe Renderer by shawnz on Friday June 01, 2018 @09:36AM (#17205139)
It's OK, the parent will be paying the price when they're still writing native x86 code in 20 years time.
Re:Released and Certified: Qt Safe Renderer by pjc50 on Friday June 01, 2018 @09:57AM (#17205338)
shrug Nothing wrong with native code, and sometimes nothing else will get the job done. Besides, my retirement plan is to be the dinosaur brought out to fix all those 32-bit-time bugs in 2038.
Re:Released and Certified: Qt Safe Renderer by pkaye on Friday June 01, 2018 @05:22PM (#17210468)
Low level knowledge is useful at times. I rewrote a small amount of code on a project at work using SIMD instruction to reduce execution time by 60%. This is on something executes in tens of minutes so the time savings are quite noticeable.
Re:Released and Certified: Qt Safe Renderer by dekhn on Friday June 01, 2018 @10:06AM (#17205422)
most of my code is in Python (there are Qt bindings). That said, I'm interested in webassembly, and can also write javascript. I just don't think that browsers or javascript-based apps present a preferred alternative to native apps developed by teams who consider long-term API stability and getting the right regulatory boxes checked.
Re:Released and Certified: Qt Safe Renderer by ahartmetz on Friday June 01, 2018 @10:36AM (#17205653)
The free performance lunch from ever faster hardware is over and that is saving native code for applications. The few percent hardware improvement each year is easily eaten by growing requirements.
Re:Released and Certified: Qt Safe Renderer by raphinou on Friday June 01, 2018 @09:38AM (#17205155)
I'm not a C++ dev, but this looks interesting you're into C++ web development: https://www.webtoolkit.eu/wt
Re:Released and Certified: Qt Safe Renderer by tyfon on Friday June 01, 2018 @09:46AM (#17205230)
I've been using this for a few internal "worklists" for customer service. It works great and I didn't have to learn JS.

It's not quite like Qt but it tries to follow the same style. The quality is not quite up to par with Qt either but it was definitively good enough for the internal projects.

Re:Released and Certified: Qt Safe Renderer by bpizzi on Friday June 01, 2018 @10:50AM (#17205770)
'It's really incredible how the world of software developed by adults differs from the software developed by kids.'

Well, if I may... What actually tells adults and children developers apart is their swift ability to bring nuances (like in 'pros n cons') on the table when choosing the more efficient techno for a given problem. Yes, Qt has great pros. No, Qt is obviously not The Silver Bullet.

Re:Released and Certified: Qt Safe Renderer by pjmlp on Friday June 01, 2018 @11:07AM (#17205966)
I am already happy when doing Swing.

The customisations one needs to implement are far easier.

I still hope a mix of WebComponents and WebAssembly will fix the eco-system.

Re:Released and Certified: Qt Safe Renderer by dagw on Friday June 01, 2018 @11:06AM (#17205946)
It's really incredible how the world of software developed by adults differs from the software developed by kids.

Obviously, but that is entirely orthogonal to the language used.

Re:Released and Certified: Qt Safe Renderer by PerryCox on Friday June 01, 2018 @03:17PM (#17208983)
> It's really incredible how the world of software developed by adults differs from the software developed by kids.

I don't really agree with this sentiment. JavaScript has become one of the better languages to work in these days. I'd much rather work in JavaScript than C++ any day.

Re:Released and Certified: Qt Safe Renderer by tzahola on Friday June 01, 2018 @11:03AM (#17205902)
I like your attitude, but I’m afraid your comment will be downvoted to death pretty soon.
Re:Released and Certified: Qt Safe Renderer by rovek on Friday June 01, 2018 @09:56AM (#17205329)
It's telling of the "adult" community that this level of blatant assholery is always downvoted to oblivion unless it's coming from the C++ super race.