Book review: Is parallel programming hard, and, if so, what can you do about it?

ahelwer.ca

66 points by ahelwer 3 days ago


cbm-vic-20 - 2 hours ago

Should have been titled "Is Parallel Programming What Can You Hard, And, If So, Do About It?"

bolangi - 15 minutes ago

The Raku language (formerly Perl 6) and its underlying VM has features to support parallel programming, concurrency and asynchrony, designed to make common cases relatively easy to code and avoid pitfalls.

Jonathan Worthington, the author of the VM and these features, has given an excellent presentation on the concepts and their implementation.

https://www.youtube.com/watch?v=JpqnNCx7wVY

anonymousDan - an hour ago

I would probably recommend the art of multiprocessor programming (herlihy and shavitz) as a good starting point for concurrent programming. There is also " A primer on memory consistency and cache coherence" (Nagarajan et al) if you want to get more into the interaction between memory consistency and coherence.

raheemm - 36 minutes ago

Even though I'm not a programmer I really enjoyed reading this book review.

criddell - 2 hours ago

This review seems to equate parallelism and concurrency as the same thing and they are not.

As I understand it, the parallelism is about task execution and concurrency is about task structure. Or, as Rob Pike said:

"Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once."

He said that in his Concurrency is not Parallelism talk.

thomasahle - 2 hours ago

Parallel programming is a great application for LLM correctness proofs in Lean.

You can't unit test your way out, but if you care about the code's correctness, today there's a way.

kazinator - 3 hours ago

Nope! Parallel programming is all yahoo, wee, look at that go!

Then comes the parallel debugging.

Pretty soon it's 15 years later, different person, yahoo-wee bro having long moved on.

- 3 hours ago
[deleted]
drnick1 - an hour ago

What can you do about it?

Ask Claude, which has read all the existing literature on parallel programming, to make the program faster.