Article View: rec.arts.sf.written
Article #705Re: “The end of software secrecy is almost upon
From: David Brown
Date: Tue, 27 Oct 2026 08:06
Date: Tue, 27 Oct 2026 08:06
44 lines
3846 bytes
3846 bytes
On 27/10/2026 04:44, Chris M. Thomasson wrote: > On 10/25/2026 2:45 AM, David Brown wrote: >> 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. There are, of course, languages and runtime systems that handle processes too. An obvious example is Python. But it does it using a significantly "thicker" abstraction layer, combined with a significant run-time system to manage it all. And as a programmer, you have to be aware that you can't access global data from different processes, in the way you can do from different threads - you can only use data that is explicitly shared, or of appropriate data structures (like the process-aware queues). Behind the scenes, there is a lot of work to pass and synchronise all this using named pipes, memmapped shared files, etc. While C++ programmers are used to there being a certain degree of "hidden work" (unlike in C, where work is much more explicit), this kind of thing is not at all a match for the C++ philosophy. And there are languages like Erlang that divide everything into micro-processes, and use the same mechanisms for controlling and passing data around regardless of whether this little processes are in the same thread, or different threads, different OS processes, or different computers. That works because there are very narrow and tightly controlled mechanisms for sharing data. Note that these are both languages that run on a VM, not compiled languages.
Technical Details
Message-ID:
<11bpm22$1a80h$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-mailReferences:
<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> <11bp6nj$16ku1$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: David Brown <david.brown@hesbynett.no> 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: Tue, 27 Oct 2026 09:06:26 +0100 Organization: A noiseless patient Spider Lines: 44 Message-ID: <11bpm22$1a80h$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> <11bp6nj$16ku1$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 08:06:27 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1384465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mdjl2AhBKG2cLmiZbHep/YUAwtmYYQ/o="; posting-host="e6aab6e4881312e149db0ba3ba45b112" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:zbWe8ensICJnULaRtQKXtGgAmx4= sha256:Z+wvpbtuvNmhIMzEPuqrx0UsZAcR+0RP00QU7vvJfsM= sha1:w1VGZ4bC5sMQoG2moye+ynCRPns= sha256:O5/j1pOJIyTDab/i50D8/IhiFwKNutbRVlNymYRnIHA= In-Reply-To: <11bp6nj$16ku1$1@dont-email.me> Content-Language: en-GB, nb-NO