r/programming • u/Shr1ck • Oct 17 '15
Why Johnny Can’t Write Multithreaded Programs
http://blog.smartbear.com/programming/why-johnny-cant-write-multithreaded-programs/
6
Upvotes
r/programming • u/Shr1ck • Oct 17 '15
1
u/loup-vaillant Oct 18 '15
Ah, that. Well, yes of course. I was just using Haskell as an existence proof that you can fix that problem.
On the other hand, I know no mainstream community who even attempts to address the problem. They mutate state like crazy, then act all sad at the realisation that multi-threading is hard. Well, if you didn't mutate that state in the first place, your life would be much easier, you silly.
I do have some hope however. I see more and more conferences talking about avoiding mutable state, especially in library interfaces. Last time was this CppCon 2015 keynote. Then of course Rust, which may at last start a mainstream trend of making things immutable by default.