On 10/29/2026 9:19 AM, bolt…@caprica.universe wrote:
> On Wed, 28 Oct 2026 14:04:02 -0700
> "Chris M. Thomasson" <chri…@gmail.com> gabbled:
>> On 10/28/2026 2:01 AM, bolt…@caprica.universe wrote:
>>> On Mon, 26 Oct 2026 13:03:25 -0700
>>> "Chris M. Thomasson" <chri…@gmail.com> gabbled:
>>>> On 10/26/2026 3:01 AM, bolt…@caprica.universe wrote:
>>>>> Creating a brand new process is fine if
>>>>> you don't need any complicated shared state such as when kicking off something
>>>>> on the command line or creating a pipe (something else win32 is shit at) but
>>>>> thats about it.
>>>>>
>>>>
>>>> Shared state? Just use memory mapped files. You don't need pipes/ sockets etc. You need to know how to properly sync things.
>>>
>>> Oh really? So you receive an incoming connection to a socket via an accept()
>>> call. In unix you can fork() at that point so the connecting client has a
>>> server process all to itself with all the state instantly copied from the
>>> parent process. HOw do you mimic that in windows? Start the server process
>>> from scratch and pass it a ton of state via the command line or using some
>>> roll-your-own shared memory nonsense? Give me a break. I guess in windows it
>>> spawns a thread leading to the issue of a single thread crashing bringing down
>>> the entire application - something multiprocess completely avoids.
>>>
>>
>> On Windows? Get used to
>>
>> https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf- winsock2-wsadup
>> licatesocketa
>>
>> DuplicateHandle
>
> Right, lets duplicate everything manually - so much easier than one system call.
> And thats just file descriptors.
>
Do we actually need everything, or just a subset?