Re: [Development] Broken RNG on AMD Ryzen CPUs affect QTemporaryFile, Qt IFW

2020-02-19 Thread Boudewijn Rempt via Development
On woensdag 19 februari 2020 00:51:12 CET Thiago Macieira wrote:

> Also https://bugreports.qt.io/browse/QTBUG-70606, which is when I reported 
> the 
> problem to AMD, but we did not introduce a workaround since we didn't know it 
> was this widespread.

We for sure encountered it very, very often with our Krita users, until Dmitry 
patched it: https://codereview.qt-project.org/c/qt/qtbase/+/272837. 

-- 
https://www.valdyas.org | https://www.krita.org


___
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Qt 5 types under consideration for deprecation / removal in Qt 6

2019-06-08 Thread Boudewijn Rempt via Development
I kept out of this for the longest time, especially because people have been 
quoting my blog post, but I give up now.

On zaterdag 8 juni 2019 18:14:36 CEST Giuseppe D'Angelo via Development wrote:

> 
> Then, it comes a moment when "upstream" stuff has more and more 
> advantages -- more speed (algorithms), more flexibility (e.g. mutex 
> classes and utilities; shared_ptr; etc.), more static analysis 
> tooling, and so on, than the equivalent classes offered in Qt.

Qt's problem has been that it was started as "let's make c++ accessible to 
"java coding drones". So it wasn't a serious C++ library, so nobody using Qt 
cared about C++ (I still don't care about C++, I don't do C++ because it's 
awesome, but because I inherited a codebase that uses it), and everyone doing 
"proper" C++ looked down on those undereducated morons who were using Qt, 
instead of "proper" C++. And then Qt became one of the most-used C++ platforms. 
Mostly because Windows developers were even more often hit by the 
fire-and-motion tactics of Microsoft, and because of the web and other 
languages getting useful and all of that. So now C++ people have noticed Qt, 
and Qt people have noticed the C++ people, and the reaction is... Let's do more 
of the stupid stuff that's been in STL. Let's write documentation that's only 
accessible to CS majors, no, let's do better, let's have documentation only 
accessible to CS professors!

There is NO useful documentation for STL. Just look at how ivory-tower the 
documentation for std::unique_pointer is on cppreference. Good documentation 
tells me "what does this, why should I care, when should I use it, how should I 
use it". The cppreference documentation tells me "this is the right vocubulary 
to talk about this topic, and there are these weird cornercases".

> In other words, the advantages of keeping the Qt equivalents start to be 
> (seriously) questioned. We're therefore left with the question of what 
> to do with these equivalents.

Like always, like I'm always being told, but dammit, we're trying to do that, 
only we're not getting through gerrit, much, you should have upstreamed it. The 
stl should have become Qt-like, not Qt stl-like.

> * We could play the catch-up game, but that requires a development 
> investment that is simply not there any more, and is even questionable 
> (is it the job of people developing Qt to rewrite algorithms widely 
> available elsewhere?).

Qt never had the manpower to maintain its stuff, not even in the Nokia days.

> * We could just deprecate and tell people to migrate away. That's kind 
> of the whole point of this thread, and comes with all the annoyances, 
> and people reimplementing them downstream because they still want the 
> convenience of a qSort(vector) over std::sort(vector.begin(), vector.end()).

It's not about annoyances. It's about not having to rewrite code, spend time, 
without getting any tangible benefit in the hands of my users. The kind of 
memory savings Marc Mutz keeps hammering on about are totally, utterly, 
completely, devastatingly irrelevant for me. Qt churn doesn't get me any new 
users, or makes any of my current users happier than they were already.  

If you write a library, you only have one task: make sure your users can 
deliver functionality to their users faster, better, more reliably than if they 
would use another library. Making your users spend time porting, is wasting 
your users time and money.

-- 
https://www.valdyas.org | https://www.krita.org


___
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] HDR Support in Qt

2019-05-21 Thread Boudewijn Rempt via Development
On dinsdag 21 mei 2019 02:04:42 CEST Quinn Romanek via Development wrote:

> Is there any current support/plan to support HDR pixel formats within Qt?

Dmitry prepared a number of patches to make it possible to display HDR images 
in Qt:


Implement openGL surface color space selection in Angle 
https://codereview.qt-project.org/#/c/252177/

Implement color space selection for QSurfaceFormat 
https://codereview.qt-project.org/#/c/253242/

Implement color conversion for the backing store texture (conflicts with 
the work by Allan) https://codereview.qt-project.org/#/c/252179/

Return QScreen's HMONITOR handle via QPlatformNativeInterface 
https://codereview.qt-project.org/#/c/252181/

Implement a manual test for checking is HDR features work 
https://codereview.qt-project.org/#/c/252812/

-- 
https://www.krita.org

signature.asc
Description: This is a digitally signed message part.
___
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development


Re: [Development] Qt 6 Planning: Consideration of dropping support for UWP applications

2019-04-21 Thread Boudewijn Rempt via Development
On zondag 21 april 2019 10:43:37 CEST Allan Sandfeld Jensen wrote:

> It seems a lot of new Windows API is UWP specific. For instance for HDR 
> support I need to read the luminance level for SDR content in HDR mode, and I 
> could only find UWP API for that.

We had to patch Qt a lot to make HDR work properly, including getting the SDR 
luminance level. Those patches in in gerrit, as well as in Krita's repo. 

-- 
https://www.valdyas.org | https://www.krita.org


___
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development