[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about throw-on-input

From: Stefan Monnier
Subject: Re: Questions about throw-on-input
Date: Fri, 15 May 2020 14:55:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I think every one's been talking about sharing data so far, but what
> about the other part of the equation 'shared + mutable state = Bad'? Do
> you think it would be feasible to remove mutability by giving side
> threads only read-only access to all that global shared data?

Just restricting side threads to read-only access is not sufficient: the
"main thread" also can't mutate that read-only data (or at least not
while the side threads can read it) otherwise we're back to "bad".

I like immutability, tho.  And there's no doubt that it would have to be
part of the solution if we want to allow sharing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]