4 ms·
> they can’t have data races How so? Asking out of curiosity.
by sergiomattei 3y ago
> they can’t have data races
How so? Asking out of curiosity.
- celeritascelery 3y agoBecause they don't share memory. The C interpreters share memory, so they could have data races, but the python code can't. Just like how the C interpreter can have memory unsafely but python can't (or shouldn't).
- gyrovagueGeist 3y agoYour 'application' that uses them can absolutely have data races (you also have to fight the GC on every interpreter not just one). I think what they mean is that a local object within an interpreter without a shared (replicated) state does not have data races. Once you start message passing of course this is no longer true. Which isn't really different than a similar pattern of isolation in threading or multiprocessing.