Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by foldr on Friday June 03, 2022 @04:10PM
(#31613057)
This is the kind of edge case you can find in lots of languages, including Rust (which has plenty of past and present soundness bugs).
Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by preseinger on Sunday June 05, 2022 @01:57PM
(#31633323)
Data races are violations of the memory model; of course any code which produces data races cannot be understood as memory safe?
Re:Rust Is Hard, Or: The Misery of Mainstream Programming
by ngrilly on Sunday June 05, 2022 @03:45PM
(#31634215)
As far as I remember, some languages like Java are memory safe even if the code produces data races. That means you can't have a reference to a value supposed to be of type A being actually of type B.
Current implementation of slices and interfaces in Go is not memory safe in presence of data races:
https://blog.stalkr.net/2022/01/universal-go-exploit-using-d...