🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.rust
Article #405

Re: “The end of software secrecy is almost upon

#405
From: Chris M. Thomasson
Date: Tue, 27 Oct 2026 03:44
84 lines
5552 bytes
On 10/25/2026 2:45 AM, David Brown wrote:
> On 25/10/2026 00:11, Michael S wrote:
>> On Sat, 24 Oct 2026 21:24:58 -0000 (UTC)
>> cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>
>>> In article <11bj08r$309uk$1@dont-email.me>,
>>> Peter Flass  <Peter@Iron-Spring.com> wrote:
>>>> On 10/24/26 09:41, Dan Cross wrote:
>>>>> In article <11bhppd$2lpkc$1@dont-email.me>,
>>>>> <boltar@caprica.universe> wrote:
>>>>>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC)
>>>>>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled:
>>>>>>> In article <11bf4d1$skul$1@dont-email.me>,
>>>>>>> <boltar@caprica.universe> wrote:
>>>>>>>> On Thu, 22 Oct 2026 16:22:30 -0000 (UTC)
>>>>>>>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled:
>>>>>>>>> In article <11bd7rg$2cvfs$1@dont-email.me>,
>>>>>>>>> <boltar@battlestar.co.uk> wrote:
>>>>>>>>>> You need an OS to do threading properly too. Theres a reason
>>>>>>>>>> green threads in java were a joke.
>>>>>>>>>
>>>>>>>>> Weird that you think you need a operating system for threads,
>>>>>>>>> yet you want C to standardize processes which also ... need an
>>>>>>>>> operating system.  I mean, POSIX already does an ok job of
>>>>>>>>> standardizing the sorts of process-y things you would expect
>>>>>>>>> from, you know, an operating system.
>>>>>>>>
>>>>>>>> I'm simply pointing out the inconsistency in having a threading
>>>>>>>> library but not a process library. Its perfectly possible to
>>>>>>>> simulate a multiprocess enviroment.
>>>>>>>
>>>>>>> So write a simulator in your language of choice.  You don't need
>>>>>>> the language to standardize a process model for that.
>>>>>>
>>>>>> Ditto threads. So why does C++ have a threading library?
>>>>>>
>>>>>> Take your time...
>>>>>
>>>>> What, pray tell, do you think that a _thread_ is?  And how is it
>>>>> different from a _process_?  For that matter, what do you think
>>>>> that a _process_ is?
>>>>>
>>>>> Please, take all the time you need to answer.
>>>>
>>>> Threads share resources such as address space, files, etc. A process
>>>> runs in its own address space. (at least these days, before virtual
>>>> memory, who knows?)
>>>
>>> Indeed, but I'm hoping Mr Boltar will chime in with his answers,
>>> so that we can understand why thinks that a language like C
>>> should introduce a *process* model, and how threads are similar.
>>>
>>>     - Dan C.
>>>
>>
>> First, he was talking about C++. Unlike me, he does not appear to care
>> about C.
>> Second, while in theory threads can be implemented by C++
>> compilers+language  support library, in practice I had never seen it
>> done. All I had seen is C++ threads implemented in library as thin
>> wrapper atop of the OS (or RT executive) implementation.
>> I can not see while the same can't be done for processes, with
>> API modeled on posix_spawn() or Windows CreateProcess().
>> It does not look like variety in this field is bigger than in case of
>> threads. More like it is smaller.
>>
> 
> No one is suggesting that the threads themselves are implemented in 
> pure, standard, portable C++.  You need an underlying OS or support of 
> some sort if you are going to have preemptable threads.  It's the same 
> principle as IO and file access.
> 
> But the difference between threads and processes is very simple from the 
> viewpoint of C and C++.  Suppose you have a global (i.e., external 
> linkage) variable :
> 
>      int x;
> 
> Two threads that have "int a = x;" see the same "x" (ignoring data races 
> and synchronisation).  Two processes see completely different "x".[...]

Bingo. So, trying to imply that system is something okay for multi 
process, well, good luck. Daft. C/C++ has no std way to deal with multi 
process. But, we can use C/C++ to program for it all day long. Interesting.
Technical Details
Message-ID: <11bp6nj$16ku1$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11bhppd$2lpkc$1@dont-email.me> <11bin3i$ma9$1@reader2.panix.com> <11bj08r$309uk$1@dont-email.me> <11bj7na$5bt$1@reader2.panix.com> <20261025011151.000038ef@yahoo.com> <11bkj49$3fber$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: “The end of software secrecy is almost upon
Date: Mon, 26 Oct 2026 20:44:49 -0700
Organization: A noiseless patient Spider
Lines: 84
Message-ID: <11bp6nj$16ku1$1@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <11bhppd$2lpkc$1@dont-email.me>
 <11bin3i$ma9$1@reader2.panix.com> <11bj08r$309uk$1@dont-email.me>
 <11bj7na$5bt$1@reader2.panix.com> <20261025011151.000038ef@yahoo.com>
 <11bkj49$3fber$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 27 Oct 2026 03:44:52 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1266625"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+8cJYVOTlfTSO8OpH0eWHcm8etHtvibFw="; posting-host="a6c988641c9f0a5278d89ebf0389e645"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Dq0Fs+swXL7VrUQ1xyZafGZIKbc= sha256:YhsSg33wUKHGRVnP34RQ/IvtXPZ+OtkoIsIbeyQfi7Q=
	sha1:p3kYKO+/v0ij8MqzhQ23LBFZL44= sha256:XVMH39f4nKcb/Cg9gEZ1F2sLeAHAQ7rkeR9XCUF+W68=
Content-Language: en-US
In-Reply-To: <11bkj49$3fber$1@dont-email.me>