3 ms·
If you're interested to see a comparison of parallel programming in a number of functional languages check this repo out [0]. It includes multicore OCaml, paral
by eatonphil 5y ago
If you're interested to see a comparison of parallel programming in a number of functional languages check this repo out [0]. It includes multicore OCaml, parallel MLton (but not Poly/ML, which has been around and parallel longer), Haskell, Futhark, F#, Scala, and Rust.
Credit to Sam Westrick for turning me on to this [1].
[0] https://github.com/athas/raytracers https://github.com/athas/raytracers
[1] https://twitter.com/shwestrick/status/1480587660691480579 https://twitter.com/shwestrick/status/1480587660691480579
- Zababa 5y agoOne thing that I think is missing is the compilation time. Those can vary widely depending on the languages. Other than that it's a nice repo, thanks for sharing it!
- omniscient_oce 5y agoMulticore OCaml seems quite slow compared to the others. I wonder how many low hanging fruit there are in the backend to speed those numbers up a bit.
- jabl 5y agoI wondered the same, but it seems the multicore OCaml implementation of those benchmarks was last touched 2 years ago, and the top level README with the benchmark results was also last updated for the OCaml results around that same time. So maybe just rerunning those tests with the latest version would give better results?