Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #4929

About Rust programming language..

From Horizon68 <horizon@horizon.com>
Newsgroups comp.programming.threads
Subject About Rust programming language..
Date 2019-02-11 13:03 -0800
Organization A noiseless patient Spider
Message-ID <q3snvi$rhu$5@dont-email.me> (permalink)

Show all headers | View raw


Hello..


About Rust programming language..

I have just read the following about Rust programming language:

"What I’m going to discuss here is the choice made in Rust to disallow 
having multiple mutable aliases to the same data (or a mutable alias 
when there are active immutable aliases), even from the same thread.
This is essentially the “Read-Write lock” (RWLock) pattern, except it’s 
not being used in a threaded context, and the “locks” are done via 
static analysis (compile time “borrow checking”)."

Read more here:

https://manishearth.github.io/blog/2015/05/17/the-problem-with-shared-mutability/

So as you are noticing that to avoid race conditions etc. Rust is
using the Read-Write lock (RWLock) pattern , but i think this is not a 
fine-grained parallelism, so with the Read-Write lock (RWLock) pattern
of Rust you are loosing fine-grained parallelism that gives
much more parallelism.


Thank you,
Amine Moulay Ramdane.

Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

About Rust programming language.. Horizon68 <horizon@horizon.com> - 2019-02-11 13:03 -0800

csiph-web