Julia (编程语言)

✍ dations ◷ 2025-08-02 01:02:06 #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.

外部链接

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

相关

  • 丨部,是为汉字索引中的部首之一,康熙字典214个部首中的第二个(一划的则为第二个)。就繁体和简体中文中,丨部归于一划部首。丨部只以中间为部字。且无其他部首可用者将部首归为丨
  • 出水出水(Sweating),在西餐中,指用一点油或是奶油以小火加热蔬菜,而且频繁的搅拌及翻动,确保由蔬菜中渗出的水分都蒸发了。出水会让蔬菜比较嫩,甚至有时会有半透明的外观。一般若要在液
  • 惠勒县惠勒县 (Wheeler County, Georgia)是美国乔治亚州东南部的一个县。面积777平方公里。根据美国2000年人口普查,共有人口6,179人。县治阿拉莫 (Alamo)。成立于1912年8月14日。
  • Alveolata囊泡虫总门(学名:Alveolata)是一大类原生生物.囊泡虫类可分为4个门, 在形态上具有非常大的多样性,但根据细胞内的超微结构与基因具有密切亲缘关系:帕金虫属(Perkinsus)可能属于
  • 大岗山超峰寺坐标:22°31′N 120°12′E / 22.51°N 120.20°E / 22.51; 120.20大岗山超峰寺,位于台湾高雄市阿莲区,是佛教名寺,主奉观音菩萨、善财和龙女,原由浙江普陀山奉迎来台的观音菩萨
  • 麝喙兽麝喙兽属(学名:Moschorhinus)是已灭绝合弓纲的一属,属于兽孔目的兽头亚目,是种四足肉食性动物,生存于二叠纪晚期到三叠纪早期的南非。模式种是M. kitchingi,是由南非古动物学家罗伯
  • 福晋那拉氏福晋叶赫那拉氏,后世文献改称为侧妃叶赫那拉氏。皇太极之福晋,生皇太极第五子硕塞。来自于皇太极母亲孟古哲哲的家族。《爱新觉罗宗谱·星源集庆》对她的生世记载简略,仅知其父
  • 溴代丙酮溴丙酮是一种有机化合物,分子式为CH3COCH2Br。由溴和丙酮在催化量的酸下反应生成。此物质最早在19世纪被N. Sokolowsky发现。它在第一次世界大战中被用作一种刺激剂,英国代号B
  • 1948年托马斯·曼特尔事件阴谋论曼特尔幽浮事件(英语:Mantell UFO incident)是早期最广为人知的不明飞行物事件之一。发生在1948年1月7日,美国空军上尉汤玛斯·曼特尔(英语:Thomas Francis Mantell Jr.)疑似于追踪
  • 人工岛人工岛是人工建造而非自然形成的岛屿,一般在小岛和暗礁基础上建造,是填海造陆的一种。人工岛的大小不一,由扩大现存的小岛、建筑物或暗礁,或合并数个自然小岛建造而成;有时是独立