Julia (编程语言)

✍ dations ◷ 2025-08-22 19:11:43 #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.

外部链接

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

相关

  • 消化道溃疡消化性溃疡(英语:peptic ulcer disease,简称PUD),又称胃及十二指肠溃疡。这是指胃、小肠前段(十二指肠)或幽门,有时也包含了食道下端的黏膜损伤(溃疡)。在胃发生的溃疡称作胃溃疡(英语:s
  • 印尼语印度尼西亚语(印尼语:Bahasa Indonesia),简称印尼语,即印尼化的马来语廖内方言,是印度尼西亚的官方语言。属马来-波利尼西亚语族。全世界大约有4280万人使用这种语言,还有1.55亿人
  • 动物哲学《动物哲学》(全称:Philosophie zoologique ou exposition des considérations relatives à l'histoire naturelle des animaux,意为:动物哲学:有关动物博物学思考的阐述),或译《
  • 古虫动物门古虫动物亚门(学名:Vetulicolia),旧称古虫动物门,是一类已经完全灭绝的脊索动物,在分类学上可能属于后口动物的基部,包括十几个来自寒武纪的化石种。古虫动物亚门是由中国西北大学
  • 詹姆斯·德怀特·丹纳詹姆斯·德怀特·丹纳(英语:James Dwight Dana,1813年2月12日-1895年4月14日),美国地质学,矿物学和动物学家,曾在南太平洋、美国西北部和欧洲等地考察研究,主要研究山脉的形成、火山
  • 农艺学农学,狭义上专指农艺学(英语:Agronomy)是研究与农作物生产相关领域的科学,包括作物生长发育规律及其与外界环境条件的关系、病虫害防治、土壤与营养、种植制度、遗传育种等领域。
  • Henrietta Leavitt亨丽爱塔·斯万·勒维特(英语:Henrietta Swan Leavitt,1868年7月4日-1921年12月12日)是一位美国天文学家,毕业于拉德克利夫学院。1893年起,她在哈佛大学天文台担任计算员,负责监视感
  • Hypatia希帕提娅(古希腊语:Ὑπατία,生于约350年-370年之间,死于415年3月),又译作海芭夏、海帕西娅,著名的希腊化古埃及新柏拉图主义学者,是当时名重一时、广受欢迎的女性哲学家、数学家
  • 丹麦议会政治主题丹麦议会(丹麦语:Folketinget,丹麦语发音: ,直译为人民庭)是丹麦的立法机关,共有179席,175席来自丹麦本土,2席来自格陵兰,2席来自法罗群岛,最近一次选举是在2015年。平日开会
  • span class=nowrapLuClsub3/sub/span氯化镥是一种无机化合物,化学式为LuCl3。它可以形成潮解性的白色单斜晶体。氯化镥有着YCl3 (AlCl3)层状结构,包含八面体的Lu3+。氯化镥可由氧化镥和四氯化碳在500-700°C反应