Sujet : Re: Python recompile
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 09. Mar 2025, 10:28:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250309112807.0000489d@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Sun, 9 Mar 2025 02:30:37 -0000 (UTC)
Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Sun, 9 Mar 2025 01:26:26 +0200, Michael S wrote:
cygwin is very slow.
I’m sure it is. ;)
For me the speed and UI convinience are far more important than
better emulation of obscure POSIX features which is probably
important only for programs that I would not want to run
regardless.
Unfortunately select/poll are a key part of efficient event-driven
programming. In the 1990s (the heyday of Windows NT) they tried to
handle all of this with threads, only to discover that, unless you
were doing something heavily CPU-bound, the programming complexity
just wasn’t worth it.
select/poll is the one way to do event-driven programming.
There are other ways. In particular, under Windows you can
simultaneously wait for multiple objects with API that is called...
Surprise! WaitForMultipleObjects.
Yes, it does not work directly with anonymous files. But anonymous file
can be treated as a special version of named pipe and then it does work.
If it's not enough, I would guess that if one wants ultimate
scalability, one can force named pipes into working with I/O completion
ports, which is as scalable as one could wish.
But all that irrelevant.
What is relevant is that those things are used in sorts of POSIX
programs that I don't want to run either under cygwin or under msys2.
And for POSIX programs that I do want to run msys2 is simply better.