|
|
|
|
|
by bbcbasic
3982 days ago
|
|
He says "Because Haskell code is so high level, it requires aggressive compiler optimizations to perform well." I think you are basically right. It is easier to make something correct in Haskell, it is easier to make something reasonably fast in Haskell too (generally) but in specific circumstances when you want max performance and care about the assembly or intermediate code output then it becomes easier in a low level language like C to do the performance optimization. Having said that the 10* effort is an investment if you get a reusable library and will pay off because the rest of your code is in Haskell not C! |
|
"So then why did I use Haskell? To make cover trees 10 times easier for programmers to use."
Default Haskell is certainly not geared toward numeric performance even though it certainly can be with the right libraries.