科学计算中的速度, OCaml 和 Julia 的差异

Julia经过这些年的发展,不但发展速度,运算速度的提高也显著。
除了传统Fortran、C/C++之外,尝试在FP语言生态中引入方便的科学计算设施的,基于OCaml的Owl算一个。详细看这里
在他们正在写的一本书 << Owl Tutorial Book >>中,他们提到(PDF版本,Page 305),“We believe OCaml per se is a good candidate for developing such a general purpose numerical library for two important reasons: 1) we can write functional code as concise as that in Python with type-safety; 2) OCaml code often has much superior performance comparing to dynamic languages such as Python and Julia.”

他们没有提到具体的Benchmarking或者相关的参考资料。

有没有两个语言都使用过,而且也做过科学计算方面的朋友可以分享下,在目前,他们上面的结论 2)是否成立。

非常感谢!

1 个赞

后面的章节有benchmark的,不过没有给benchmark的代码。我反正不信能快多少。建议直接发邮件问作者。