4 ms·
> I don't think you find any version of parallel programming that isn't hard. Using pure functional programming on an embarassingly parallel workload comes pre
by brazzy 7y ago
> I don't think you find any version of parallel programming that isn't hard.
Using pure functional programming on an embarassingly parallel workload comes pretty close.
- gpderetta 7y agotrivially parallel workload is trivial in pretty much any language though.
- brazzy 7y agoStill easy to mess up the coordination when you have mutable shared state.
- jcranmer 7y agoEmbarrassingly parallel workloads kinda don't have mutable shared state... that's why they're "embarrassing".
- brazzy 7y agoNo. "Embarassingly parallel" just means you don't need to share intermediate results. You still need to create all the parallel threads/processes/fibers/whatever, divide the work between them and collect or merge the results. And if you work in an environment where state is mutable and shared per default (i.e. your typical shared-memory multithreaded Java/C#/C++/Ruby program), then it's still very easy to mess up somewhere.