4 ms·
Then I stand corrected and applaud the creators of Rust for haven taken these measures for writing thread safe code, because it is supereasy to get threading wr
by fetbaffe 6y ago
Then I stand corrected and applaud the creators of Rust for haven taken these measures for writing thread safe code, because it is supereasy to get threading wrong, even for the most experienced developer.
- thePunisher 6y agoBoth Java and C# are designed for memory-safety but not thread-safety; Rust is. Considering many of the software problems we face have some connection to thread-safety, Rust is the way to go.
- pjmlp 6y agoI would consider that the way to go is multi-processes instead, and secure every critical module on their own OS sandbox. Threading seemed a good idea that went wrong.
- littlestymaar 6y agoInterestingly enough, this was the raison d'être of the Rust project at the beginning, while zero-cost abstraction and memory-safety without GC (and the borrow-checker) weren't part if the initial goal. When Rust was first released as a research project it had green threads and a GC (interestingly close to Go actually), but it was already designed with data-race freedom in mind.