Julia,强大的科学计算与统计语言

目录 技术

Julia是2012年新推出来的一种用来进行科学计算与统计的语言,国外目前对Julia普遍看好。据说,Julia推出来的动机就是提供一种能够同时替代Matlab、R、Python的解决办法。

We want a language that’s open source, with a liberal license. We want the speed of C with the dynamism of Ruby. We want a language that’s homoiconic, with true macros like Lisp, but with obvious, familiar mathematical notation like Matlab. We want something as usable for general programming as Python, as easy for statistics as R, as natural for string processing as Perl, as powerful for linear algebra as Matlab, as good at gluing programs together as the shell. Something that is dirt simple to learn, yet keeps the most serious hackers happy. We want it interactive and we want it compiled.

(Did we mention it should be as fast as C?)

Julia目前的发展速度惊人,已经出现了各式各样的packages。

这里是一张主流语言和程序的运算速度对比:

 FortranJuliaPythonRMatlab
gcc 4.8.10.22.7.33.0.2R2012a
fib0.260.9130.37411.361992
parse_int5.031.613.9559.41463.16
quicksort1.111.1431.98524.29101.84
mandel0.860.8514.19106.9764.58
pi_sum0.8116.3315.421.29
rand_mat_stat0.641.6613.5210.846.61
rand_mat_mul0.961.013.413.981.1
OctaveMathematicaJavaScriptGo
3.6.48V8 3.7.12.22go1
fib3211.8164.462.181.03
parse_int7109.8529.542.434.79
quicksort1132.0435.743.511.25
mandel316.956.073.492.36
pi_sum237.411.320.841.41
rand_mat_stat14.984.523.288.12
rand_mat_mul3.411.1614.68.51