17 karma · joined Nov 28, 2014 (11y ago) · 3 submissions
comment 11y ago · link · parent
To clarify, I did not write the code (mine is the C version), the results are from the paper. Read it, beat it and post results.
comment 11y ago · link · parent
a) Idiomatic Haskell takes ~25 minutes
b) Monadic Haskell takes 11 seconds
c) C++ takes 3 seconds
d) C takes 1 seconds (5x less memory than b))
If you look at all the micro-benchmarks, C uses far less memory than Java or Haskell and the memory is the bottleneck in the most cases.
This is the reason why HPC is FORTRAN, C and C++.
Reference: Computational Topology via Functional Programming: A Baseline Analysis