Book review: Is parallel programming hard, and, if so, what can you do about it?
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
Book review: Is parallel programming hard, and, if so, what can you do about it?
Unofficial Hacker News client; not affiliated with Y Combinator.
hoistway · · focus · HN ↗
kccqzy · · focus · HN ↗
I don't want to devalue your experience, but I am surprised to hear that. Livelock is harder to debug. Silent data corruption caused by missing or wrong synchronization is way harder to debug.
afdbcreid · · focus · HN ↗
gpderetta · · focus · HN ↗
afdbcreid · · focus · HN ↗
gpderetta · · focus · HN ↗
kccqzy · · focus · HN ↗
stingraycharles · · focus · HN ↗
Reminds me of being a young and ambitious C++ programmer 25 years ago, discovering that when you have a map and do “return m[k]”, it is not, in fact, a read-only operation when k does not exist. After which I learned that const-correctness is not just a nice-to-have, especially in multithreaded applications.
But yeah deadlocks are hardly ever a difficult issue to diagnose. They may potentially be difficult to resolve, but at that point, it very much suggests that there’s an architecture / design issue.
gpderetta · · focus · HN ↗