Earlier quoted context omitted.
> Like, actors can trivially deadlock/livelock, Oh my ... you never seen a proper Actor language, have you? Have a look at Erlang and Pony, for starters. It will open your mind. This in particular is great: https://www.ponylang.io/discover/what-makes-pony-different/#... > Pony doesn’t have locks nor atomic operations or anything like that. Instead, the type system ensures at compile time that your concurrent program…
Perhaps there is some confusion here between data races and race conditions. Rust and Pony prevent data races, but not race conditions.
Discovering a JDK Race Condition, and Debugging It in 30 Minutes with Fray
51–54 of 54 posts
Re: Discovering a JDK Race Condition, and Debugging It in 30 Minutes with Fray
#52Earlier quoted context omitted.
> Like, actors can trivially deadlock/livelock, Oh my ... you never seen a proper Actor language, have you? Have a look at Erlang and Pony, for starters. It will open your mind. This in particular is great: https://www.ponylang.io/discover/what-makes-pony-different/#... > Pony doesn’t have locks nor atomic operations or anything like that. Instead, the type system ensures at compile time that your concurrent program…
Does preventing data races (which is not particularly hard if you are willing to give up certain properties, e.g. just immutability alone solves it) that much of a win? You just made a bunch of concurrent algorithms un-implementable that would give much better performance for the benefit of.. having all the other unsolvable issues with concurrency? Like, all the same issues are trivially reproducible at a higher leve…
It's a huge win. Absolutely game changing.
> You just made a bunch of concurrent algorithms un-implementable
Exactly! That's a good thing! You think you need those buggy algorithms, you just don't, at least in 99% of cases.
Yes, you can still end up with inconsistencies when you perform actions without the necessary checks, but those cases that remain are extremely easy to find and fix (and even make completely impossible by design), when compared to the horrors of mutable state with locks.