Julia (编程语言)

✍ dations ◷ 2025-12-02 17:23:27 #Julia (编程语言)

Julia是一种高级通用动态编程语言,它最初是为了满足高性能数值分析和计算科学的需要而设计的,不需要编译器,速度快,也可用于客户端和服务器的Web用途、低级系统编程或用作规约语言。

Julia设计的独特之处包括,参数多态的类型系统,完全动态语言中的类型,以及它多分派的核心编程范型。它允许并发、并行和分布式计算,并直接调用C和Fortran库而不使用粘合代码。

Julia拥有垃圾回收机制,使用及早求值,包含了用于浮点计算、线性代数、随机数生成和正则表达式匹配的高效库。有许多库可以使用,其中一些(如用于快速傅里叶变换的库)已经预先捆绑在Julia里。

一群拥有各种语言丰富编程经验的Matlab高级用户,对现有的科学计算编程工具感到不满——这些软件对自己专长的领域表现得非常棒,但在其它领域却非常糟糕。他们想要的是一个开源的软件,它要像C语言一般快速而又拥有如同Ruby的动态性;要具有Lisp般真正的同像性而又有Matlab般熟悉的数学记号;要像Python般通用、像R般在统计分析上得心应手、像Perl般自然地处理字符串、像Matlab般具有强大的线性代数运算能力、像shell般胶水语言的能力,易于学习而又不让真正的黑客感到无聊;还有,它应该是交互式的,同时又是编译型的。

该项目大约于2009年中开始。

主要用于数值计算。


function mandel(z)    c = z    max = 80    for n = 1:max        if abs(z) > 2            return n-1        end        z = z^2 + c    end    return maxend

随机矩阵统计

function randmatstat(t)    n = 5    v = zeros(t)    w = zeros(t)    for i = 1:t        a = randn(n,n)        b = randn(n,n)        c = randn(n,n)        d = randn(n,n)        P =         Q =         v = trace((P.'*P)^4)        w = trace((Q.'*Q)^4)    end    std(v)/mean(v), std(w)/mean(w)end

参见

  • Matlab
  • GNU Octave
  • R语言
  • Mathematica
  • Sagemath

参考资料

  1. ^ LICENSE.md. GitHub. 
  2. ^ Contributors to JuliaLang/julia. GitHub. 
  3. ^ 3.0 3.1 3.2 3.3 3.4 3.5 3.6 Why We Created Julia. Julia website. February 2012 . 
  4. ^ v1.4.0. Github.com. 2020-03-21 . 
  5. ^ v1.4.0-rc2. Github.com. 2020-02-24 . 
  6. ^ Julia. Julia. NumFocus project. . Julia's Base library, largely written in Julia itself, also integrates mature, best-of-breed open source C and Fortran libraries for ... 
  7. ^ Fischer, Keno. Running julia on wasm. 2019-07-22 . 
  8. ^ Download Julia - Currently supported platforms. Julia. . 
  9. ^ The Julia Language: A fresh approach to technical computing. Termux/Android. Github. . 
  10. ^ 10.0 10.1 10.2 10.3 Home · The Julia Language. docs.julialang.org. (英语). 
  11. ^ Programming Language Network. GitHub. . 
  12. ^ JuliaCon 2016. JuliaCon. . He has co-designed the programming language Scheme, which has greatly influenced the design of Julia 
  13. ^ The Julia Language (official website). General Purpose Julia lets you write UIs, statically compile your code, or even deploy it on a webserver. 
  14. ^ Bryant, Avi. Matlab, R, and Julia: Languages for data analysis. O'Reilly Strata. 15 October 2012 . (原始内容存档于2013-05-24). 
  15. ^ Singh, Vicky. Julia Programming Language – A True Python Alternative. Technotification. 23 August 2015. 
  16. ^ Krill, Paul. New Julia language seeks to be the C for scientists. InfoWorld. 18 April 2012. 
  17. ^ Finley, Klint. Out in the Open: Man Creates One Programming Language to Rule Them All. Wired. 3 February 2014. 
  18. ^ Escher : With Escher you can build beautiful Web Uls entirely in Julia. Shasi.github.io. . (原始内容存档于2016-03-04). 
  19. ^ Getting Started with Node Julia · Node Julia. Node-julia.readme.io. . 
  20. ^ Moss, Robert. Using Julia as a Specification Language for the Next-Generation Airborne Collision Avoidance System. 26 June 2015 . (原始内容存档于1 July 2015). Airborne collision avoidance system 
  21. ^ Suspending Garbage Collection for Performance...good idea or bad idea?. Groups.google.com. . 
  22. ^ (now available with using FFTW in current versions; that dependency is one of many moved out of the standard library to a package because it is GPL licensed, and thus is not included in Julia 1.0 by default.) Remove the FFTW bindings from Base by ararslan · Pull Request #21956 · JuliaLang/julia. GitHub. (英语). 
  23. ^ Why We Created Julia 互联网档案馆的存档,存档日期2012-04-23.

外部链接

  • 官方网站(英文)
  • 源代码(英文)
  • 中文社区(简体中文)
  • 中文文档(简体中文)

相关

  • 马丁乌斯·贝杰林克马丁努斯·威廉·拜耶林克(荷兰语:Martinus Willem Beijerinck,1851年3月16日-1931年1月1日),荷兰微生物学家和植物学家。他出生在阿姆斯特丹。拜耶林克就读于荷兰莱顿大学,并成为
  • 瘟疫公司《瘟疫公司》(英语:Plague Inc.)是一款由Ndemic Creations独自开发,适用于iOS、Android和Windows Phone平台的战略游戏。玩家在游戏中需要将一种病毒传遍整个世界,然后将所有人消
  • 语言变体语言变体(英语:Language Variety),是指语言在系统和在条理上相互区分的各种形式。而方言是散文风格、语言风格更广泛的概念。从不同角度定义的方言:
  • 安东尼·鲍森安东尼·“东尼”·詹姆士·鲍森,OC,OOnt,CH,FRS,FRSC(英语:Anthony 'Tony' James Pawson,1952年10月18日-2013年8月7日),英裔加拿大科学家,他的研究带来了对信号转导的革命性理解,这是细
  • 淋巴腺鼠疫腺鼠疫,又称淋巴腺鼠疫,是三种鼠疫之一,是由鼠疫杆菌(Yersinia pestis)所致的传染病。鼠疫通常先在鼠类或其他啮齿类动物中流行,然后再通过鼠、跳蚤叮咬传给人;当发展成肺炎性鼠疫
  • abbr class=abbr title=R44: 密闭加热有爆炸危险R44/abbr警示性质标准词(英语:Risk Phrases,简写:R-phrases)是于《欧联指导标准67/548/EEC 附录III: 有关危险物品与其储备的特殊风险性质》里定义。该列表被集中并再出版于指导标准2001/
  • 培根菜式“烟肉”(bacon)演变自古高地德语中的“bacho”(意为臀部、火腿或熏腹部肉),亦近于古法语中的“bacon”。烟肉由猪的腹部肉(俗称五花肉)或背部肉制成,依切法不同而具有不等的脂肪含
  • 快速增强在气象学上,快速增强(英语:Rapid intensification)是指某热带气旋在短时间内剧烈增强的现象。美国国家飓风中心将“快速增强”界定为热带气旋的最大持续风速在24小时内,增加最少3
  • 大卫·格里菲斯大卫·卢埃林·沃克·格里菲斯(英语:David Llewelyn Wark Griffith,1875年1月22日-1948年7月23日),美国电影导演,代表作是备受争议的《一个国家的诞生》(1915年)以及随后的《忍无可忍
  • 石天梯石天梯 神父(Rev. Francis F.Schexnayder , M.M.)美国路易西安那州人,生于1935年12月9日。卒于2012年12月11日上午10点55分,在苑里天主堂蒙主恩召,享年78岁。