Article View: rec.arts.sf.written
Article #704Re: “The end of software secrecy is almost upon
From: Michael S
Date: Tue, 27 Oct 2026 08:22
Date: Tue, 27 Oct 2026 08:22
59 lines
4330 bytes
4330 bytes
On Tue, 27 Oct 2026 09:06:26 +0100 David Brown <david.brown@hesbynett.no> wrote: > 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. > What you wrote about Erlang resembles MPI, which of course is readily available for many compiled or jitted languages, including Fortran, C and C++. I tried to utilize MPI 20 years ago, but the thinking behind it is to different from mine, so I ran away in horror.
Technical Details
Message-ID:
<20261027102255.00006052@yahoo.com>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> <11bpm22$1a80h$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: Michael S <already5chosen@yahoo.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: Tue, 27 Oct 2026 10:22:55 +0200 Organization: A noiseless patient Spider Lines: 59 Message-ID: <20261027102255.00006052@yahoo.com> 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> <11bpm22$1a80h$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Date: Tue, 27 Oct 2026 08:22:58 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1407202"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Prgcy+wW4weqUt0qO/PXCZKhpVZBmlVs="; posting-host="8efa9109d06590231713727ed89af78c" Cancel-Lock: sha1:Im2aAVMoObqpirvoRnG9b9zCXU0= sha256:JVMP7FYDcN5IXUztQHmkbHLVjlV8M2muN0zTjg640PQ= sha1:b+DIqXI3ybN0UHGNFUC+UiMCClg= sha256:mGsxb3vU4yyR+BrzJk81YYw/Mquw23p/PGgtyEq7emg= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)