• Re: OT: Windows (Was: Re: Open Source does not mean easily re-compile-a

    From Muttley@dastardlyhq.com@21:1/5 to All on Sat Jan 4 11:40:18 2025
    On Sat, 04 Jan 2025 08:31:05 -0300
    Salvador Mirzo <smirzo@example.com> gabbled:
    Muttley@dastardlyhq.com writes:
    and include paths which were buried 2 or 3 levels down in some sub menu not >> to mention all the "project" BS which forced a certain structure on to your >> code filesystem layout which I didn't particularly want. Also the fact that >> console and GUI apps require a totally different project setup and boiler >plate
    code from the start is just mind boggling.

    They always try to make things pretty and easy to use, but you end up
    with that. I think the only way to tolerate that is to be born and
    raised in such thing. Modularization is likely the most important thing
    in programming and it's hard to minimally praise Microsoft on
    modularization. For instance, is there any Windows software that
    handles a TCP connection in an accept-fork-exec fashion?

    Win32 can't do fork so thats a no. Also IIRC sockets in windows arn't a
    simple file descriptor and can't be multiplexed, at least not with normal
    file descriptors so select() and poll() are essentially useless so IIRC you have to spawn a thread or use windows message or some such overcomplicated nonsense to wait on them. Hopeless.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Salvador Mirzo on Sat Jan 4 22:13:05 2025
    On Sat, 04 Jan 2025 08:31:05 -0300, Salvador Mirzo wrote:

    For instance, is there any Windows software that
    handles a TCP connection in an accept-fork-exec fashion?

    Almost certainly not. Because process creation is an expensive operation
    on Windows.

    Windows NT was masterminded by Dave Cutler, who was previously responsible
    for the VMS OS at his previous employer, DEC. He was a Unix-hater, part of
    a bunch of them at DEC. They would instinctively turn away from Unix ways
    of doing things, like forking multiple processes. So the systems they
    created did not encourage such techniques.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)