5 ms·
spinning up threads and context switching, just like the cost for everyone else?
by rootw0rm 7y ago
spinning up threads and context switching, just like the cost for everyone else?
- chii 7y agoThe Haskell version is provably going to work without issue when parrellelized (due to monoid laws), but I doubt the concurrency primitives in C is as trivially usable, and I expect no sane person would want to write that version.
- keldaris 7y agoWhy? This is not a hard problem and there's nothing wrong with parallelism in C. I'd much rather work on parallelizing the C code than deal with any amount of Haskell. I suspect there are more people who would agree with me than the total amount of people happy to write Haskell.
- sasasassy 7y agoOpenMP IS trivially usable.
- cormacrelf 7y agoThere's nothing stopping you from following the monoid laws in C. There is also nothing stopping you from breaking the monoid laws in Haskell.