๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: โ€œThe end of software secrecy is almost upon

#408
From: Dan Cross
Date: Tue, 27 Oct 2026 10:40
41 lines
3054 bytes
In article <20261027102255.00006052@yahoo.com>,
Michael S  <already5chosen@yahoo.com> wrote:
>On Tue, 27 Oct 2026 09:06:26 +0100
>David Brown <david.brown@hesbynett.no> wrote:
>> [snip]
>> 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.

Erlang uses the "actor" model to represent concurrency; state is
held by each actor, and actors communicate via message passing,
potentially changing state in response to messages.  This is a
model for _concurrency_, in which multiple independent threads
of execution are coordinated to some in a single system.

One may think of MPI-style systems this way, but there's a
subtle distinction.  The typical use case for something like MPI
is _parallel_ computation of a numerically intensive problem,
where "neighbors" nodes need to occasionally share state; this
is usually about _parallelism_; that is, simultaneity.  While a
concurrency primitive is _necessary_ to think about parallelism
(and MPI can be used in that fashion), the two are distinct
concepts that are often conflated.  To paraphrase Rob Pike on
it, concurrency is about dealing with multiple things at once,
while parallelism is about doing lots of things at the same
time.

	- Dan C.
Technical Details
Message-ID: <11bpv20$n77$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11bp6nj$16ku1$1@dont-email.me> <11bpm22$1a80h$1@dont-email.me> <20261027102255.00006052@yahoo.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: 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:40:00 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11bpv20$n77$1@reader2.panix.com>
References: <11amvre$15far$1@dont-email.me> <11bp6nj$16ku1$1@dont-email.me> <11bpm22$1a80h$1@dont-email.me> <20261027102255.00006052@yahoo.com>
Injection-Date: Tue, 27 Oct 2026 10:40:00 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="23783"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)