julia (programming language) - wikipedia, the free encyclopedia

3
Julia Paradigm(s) multi-  paradi gm: procedural , mul ti pl e dispatch, functional, meta Appeared in 2012 Designe d b y Jeff Bezanson, Stefan Karpinski, Viral B. Shah, Alan Edelman (MIT Group Leader) Stable release 0.1.2 (March 7, 2013 ) T yping disciplin e dynami c with optional type annotations and type inference Influenced by MATLAB, Scheme, Lisp, ML, Cecil, Dylan, PyPy, Ruby OS Linux, OS X, FreeBSD, Windows License MIT License Usual file name extensions .jl Website  j ul i al ang.org (http:/ /www.julialang.org) Julia (programming language) From Wikipedia, the free encyclopedia Julia is a high-level dynamic programming language designed to address the requirements of high-performance numerical and scientific computing while also being effective for general purpose programming. [1][2][3] Julia is written in C, C++, and Scheme using the LLVM compiler framework, while most of Julia's standard library is implemented in Julia itself. [4] Development of Julia began in 2009 and an open-source version was publicized in February 2012. [5][6] Unusual aspects of Julia's design are the inclusion of an expressive type system in a fully dynamic programming language and multiple dispatch being its core pr  og r am m ing paradigm. The most notable aspect of the Julia implementation is its performance, which often comes within a factor of two of fully optimized C code, putting it in the performance realm of compiled languages. [4 ] Julia Studio is an integrated development environment for Julia. [7] Contents 1 Language Features 1.1 Metaprogramming 2 Packages 3 See also 4 References 5 External links Language Features Metaprogramming Julia, like one of its inspirations Lisp, is a homoiconic language, making complex code generation and transformations possible. A relatively simple example of the latter is an assert macro that will raise an error if an expression is false: macro assert(ex) :($ex ? nothing : error("Assertion failed: ", $(string(ex)))) end Notice that while the argument to a function are typically variables, the arguments to macros are expressions. Given an expression, e.g. @assert 1==0 the macro generates the new expression 1==0 ? nothing : error("Assertion failed: ", "1==0")

Upload: beta2009

Post on 14-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Julia (Programming Language) - Wikipedia, The Free Encyclopedia

7/29/2019 Julia (Programming Language) - Wikipedia, The Free Encyclopedia

http://slidepdf.com/reader/full/julia-programming-language-wikipedia-the-free-encyclopedia 1/3

Julia

Paradigm(s) multi- paradigm: procedural, multiple

dispatch, functional, meta

Appeared in 2012

Designed by Jeff Bezanson, Stefan Karpinski, Viral

B. Shah, Alan Edelman (MIT Group

Leader)

Stable

release

0.1.2 (March 7, 2013)

Typing

discipline

dynamic with optional type

annotations and type inference

Influenced

by

MATLAB, Scheme, Lisp, ML, Cecil,

Dylan, PyPy, Ruby

OS Linux, OS X, FreeBSD, Windows

License MIT License

Usual

filename

extensions

.jl

Website  julialang.org

(http://www.julialang.org)

ulia (programming language)m Wikipedia, the free encyclopedia

ia is a high-level dynamic programming language designed to

dress the requirements of high-performance numerical and scientific

mputing while also being effective for general purpose

gramming.[1][2][3] Julia is written in C, C++, and Scheme using the

VM compiler framework, while most of Julia's standard library is

plemented in Julia itself.[4]

Development of Julia began in 2009 andopen-source version was publicized in February 2012.[5][6]

usual aspects of Julia's design are the inclusion of an expressive

e system in a fully dynamic programming language and multiple

patch being its core pr ogr amming paradigm. The most notable

ect of the Julia implementation is its performance, which often

mes within a factor of two of fully optimized C code, putting it in

performance realm of compiled languages.[4]

a Studio is an integrated development environment for Julia.[7]

Contents

1 Language Features

1.1 Metaprogramming

2 Packages

3 See also

4 References

5 External links

anguage Features

etaprogramming

a, like one of its inspirations Lisp, is a homoiconic language,

king complex code generation and transformations possible. A relatively simple example of the latter is an assert macro

t will raise an error if an expression is false:

ro assert(ex)

:($ex ? nothing : error("Assertion failed: ", $(string(ex))))

d

tice that while the argument to a function are typically variables, the arguments to macros are expressions. Given an

pression, e.g.

sert 1==0

macro generates the new expression

0 ? nothing : error("Assertion failed: ", "1==0")

Page 2: Julia (Programming Language) - Wikipedia, The Free Encyclopedia

7/29/2019 Julia (Programming Language) - Wikipedia, The Free Encyclopedia

http://slidepdf.com/reader/full/julia-programming-language-wikipedia-the-free-encyclopedia 2/3

ere the original expression has been spliced into the condition slot of the ternary operator and has been converted to a

ng for the error message. Now if the original expression evaluates as true, nothing happens, where if the expression

luates as false, an error is raised.

ackages

he Julia packaging system each package is a Git repository that can be stored in any publicly accessible location. A

ster package listing that includes package dependency information is maintained in METADATA.jl,[8] enabling easy

allation from the Julia prompt:

ia> Pkg.add("PackageName")

kages are typically written in Julia but can include both binaries and code written in other languages, which can be

omatically compiled at package install time by the package manager.

ee also

DylanFortran

Fortress

Mathematica

 NumPy

SciPy

Ruby

eferences1. ^ "The Julia Language" (http://julialang.org/) (official website).

2. ^ Bryant, Avi (Oct 2012). "Matlab, R, and Julia: Languages for data analysis" (http://strata.oreilly.com/2012/10/matlab-r-

 julia-languages-for-data-analysis.html). O'Reilly Strata. Retrieved 7 February 2013.

3. ^ Krill, Paul. "New Julia language seeks to be the C for scientists" (http://www.infoworld.com/d/application-

development/new-julia-language-seeks-be-the-c-scientists-190818). InfoWorld. Retrieved 7 February 2013.

4. ^ a b "Julia: A Fast Dynamic Language for Technical Computing" (http://julialang.org/images/julia-dynamic-2012-tr.pdf)

(PDF). 2012.

5. ^ "Why We Created Julia" (http://julialang.org/blog/2012/02/why-we-created-julia/) (World Wide Web log). Feb 2012.

Retrieved 7 February 2013.

6. ^ Mark, Gibbs (2013‐1‐9).  Pure and Julia are cool languages worth checking out 

(http://www.networkworld.com/columnists/2013/010913-gearhead.html). "Gear head".  Network World (column). Retrieved

7 February 2013.

7. ^ "Julia Studio" (http://forio.com/julia/) (official website).

8. ^ "METADATA.jl" (central package listing for Julia)

xternal links

Official website (http://julialang.org)

"The Official Julia Manual" (http://docs.julialang.org/en/latest/manual/).

rieved from "http://en.wikipedia.org/w/index.php?title=Julia_(programming_language)&oldid=573365105"

tegories: 2012 software Data-centric programming languages Dynamically typed programming languages

ee software projects Free statistical software High-level programming languages Linux numerical analysis software

bject-oriented programming languages Free data analysis software Free data visualization software

Page 3: Julia (Programming Language) - Wikipedia, The Free Encyclopedia

7/29/2019 Julia (Programming Language) - Wikipedia, The Free Encyclopedia

http://slidepdf.com/reader/full/julia-programming-language-wikipedia-the-free-encyclopedia 3/3

umerical programming languages Numerical linear algebra OS X software Windows software Parallel computing

This page was last modified on 17 September 2013 at 17:58.

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using

this site, you agree to the Terms of Use and Privacy Policy.

Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.