3 ms·
> So, the question is, do functional languages automatically have the ability to take this instruction, and spread the data over multiple cores, or multiple pro
by dtech 6y ago
> So, the question is, do functional languages automatically have the ability to take this instruction, and spread the data over multiple cores, or multiple processors, in order to return the final answer, in a faster or more efficient process than a regular procedural language?
Generally not, because you need a decent seize dataset and/or operation duration before parallelization has an advantage
Capitalizing 1000 strings is not going to be faster in parallel, but 1 billion probably is. So it solving 10 ILP problems.
However, the advantage is that when you want to parallelize, the risk of bugs, race conditions or unintended ordering is much, much smaller in functional programming languages.