2 ms·
Just a few weeks ago, there was a question on /r/haskell that was basically "Hey, I wrote this code, and it is taking all my cores. Why is it doing so if it is
by marcosdumay 10y ago
Just a few weeks ago, there was a question on /r/haskell that was basically "Hey, I wrote this code, and it is taking all my cores. Why is it doing so if it is sequential?" And, of course, the answer was that, no, his code was not sequential, he just failed to understand how the compiler parallelized it.
My point being, until you've tried what we have today, and understood how powerful it is, you don't get to make a good point about it.
Anyway, yes, Amdahl's law is true. And no, it does not impose huge constrains on most practical problems, at least not for the next decade.
And by the way, yes, specialized hardware can be a great speed-up. And it's been designed with FP-like constraints since forever, because if programming parallel general purpose computers is hard, specializing hardware for parallel operation is orders of magnitude worse. Our high level FP languages aren't up to the task, that's true. But our high level imperative ones can't even theoretically get there.
- adwn 10y ago> a question on /r/haskell Can you post a link? > And, of course, the answer was that, no, his code was not sequential, he just failed to understand how the compiler parallelized it. Like I wrote before, it's not enough to find independent operations if scheduling and communication overhead eat up most of the gains. > And by the way, yes, specialized hardware can be a great speed-up. And it's been designed with FP-like constraints since forever What specialized hardware (for speed gains) has been programmed using functional languages "since forever"? Name two examples, please.