Re: [Interest] MSVC not-the-latest: are you using it? why?

2023-02-04 Thread Bob Babcock
Thiago Macieira  wrote in
news:5359579.29KlJPOoH8__16072.5475566991$1675548885$gmane$org@tjmaciei-m
obl5: 

>> They are binary-compatible. You can use MSVC 2022 with DLLs that were
>> built with MSVC 2019.
> 
> Expanding a bit more: there's one build of Qt for both compilers.
> Though I guess this isn't obvious to all users, like it seems not to
> have been for Bob. 

I knew about binary compatablilty, it was more a matter of: if Qt is using 
2019, I might as well do the same.  I have many scripts that assume only 
one MSVC version is in play, but most of those can probably be fixed by 
making a junction (symbolic link) so msvc2019_64 and msvc2022_64 point to 
the same files.

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] MSVC not-the-latest: are you using it? why?

2023-02-04 Thread Thiago Macieira
On Friday, 3 February 2023 23:23:23 PST Sze Howe Koh wrote:
> On Sat, Feb 4, 2023, 07:51 Bob Babcock  wrote:
> > Thiago Macieira  wrote in
> > news:2741742.BEx9A2HvPv__44352.1315975644$1674404321$gmane$org@tjmaciei-m
> > 
> > obl5:
> > > So, are you still
> > > sticking to older MSVC releases years after there's a new one? Why?
> > 
> > Because when I run the maintnance tool for 6.4.2, I see MSVC 2019, but not
> > 2022 (even after installing 2022).
> 
> They are binary-compatible. You can use MSVC 2022 with DLLs that were
> built with MSVC 2019.

Expanding a bit more: there's one build of Qt for both compilers. Though I 
guess this isn't obvious to all users, like it seems not to have been for Bob.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering


smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Interest Digest, Vol 137, Issue 4

2023-02-04 Thread Stefan Seefeld
Hi Roland,

thanks for your feedback !
I partially agree with your analysis. In particular, I'm not entirely sure
why the entire application logic needs to gravitate around a single event
loop. For user-input events this of course makes sense, as they are
naturally ordered and so conceptually we don't need concurrency to model
the related control-flow. (We do need asynchrony, though !)

My main puzzlement stems from the fact that the event loop is used in
places where I don't expect it, such as in the handling of state machines.
Of course, state changes may well be triggered by user input (or some other
events), but they don't have to, so it seems questionable why the entire
state machine architecture has to be founded on the event loop as well. It
could be independent, with some mix-in classes that allow state machines to
interact with the event loop, without forcing such a dependency on everyone.

But to get back to the smaller scope of my original question, users don't
even have to access the main event loop via the
`QApplication::processEvents()` function; they can just create their own
local `QEventLoop` instance and use that. (Of course, under the hood that
has to interact with the main event loop, which is why this only works in
the presence of a global `QApplication` instance, but that interaction is
luckily already hidden from the user.)

My question is: Is it OK to use my own local `QEventLoop` to drain events
to render state-change requests synchronous. And furthermore, if the answer
is "yes", is there a reason why such a facility isn't already offered by
the Qt API itself ?

I'd really like to hear what Qt developers have to say about this, and, as
you suggest, about the broader question of how to scale Qt applications to
modern many-core platforms. How would users write modern C++-2x
applications while using `co_await` ? There already are adapters for the
Python equivalent, using `QEventLoop` instances to manage events and
dispatch control flow to multiple threads (e.g.
https://github.com/CabbageDevelopment/qasync). It seems to me what I'm
asking for is something similar, if not much simpler).

Thanks,

-- 

  ...ich hab' noch einen Koffer in Berlin...
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest