Re:Four limitations of Rust's borrow checker
by pdimitar on Tuesday December 24, 2024 @01:33PM
(#42503834)
That's the main use-case of Erlang/Elixir anyway: eliminate concurrency / parallelism bugs by copying data in the dangerous places, and make sure not to use locks but message passing instead. These two alone have eliminated most of the bugs I've wrote in other languages.
So, same experience. And it taught me to be a better Golang and Rust programmer, too.
Re:Four limitations of Rust's borrow checker
by rikthevik on Tuesday December 24, 2024 @10:26PM
(#42506631)
This is why I think cross-training is so important and I should do more of it. Even something relatively minor, like doing the Advent of Code in elixir (nim last year) has made my python significantly easier to reason about. If you quit mutating state so much, you eliminate whole classes of bugs.
Re:Four limitations of Rust's borrow checker
by ngrilly on Wednesday December 25, 2024 @10:00AM
(#42509077)
That's also how I tend to program after having read Joe Armstrong's dissertation "Making reliable distributed systems in the presence of sodware errors" and having programmned in Go for a few years.
Because of the way we’ve set up the message passing and by ensuring that we don’t share other memory between threads we’ve virtually eliminated most classes of concurrency bugs.