Julia Tutorial

Julia is an open-source programming language licensed under the MIT License, and everyone can use it for free.

Julia is a high-performance dynamic high-level programming language oriented toward scientific computing.

Julia was originally designed to meet the needs of high-performance numerical analysis and computational science. It does not require an interpreter and is fast.

Julia was first released in 2012 and supports various platforms: macOS, Windows, Linux, FreeBSD, Android.


Julia Language Features

  • The core language is very small, and the standard library is written in the Julia language itself.
  • It calls many other mature high-performance underlying code libraries, such as linear algebra, random number generation, fast Fourier transforms, and string processing.
  • Rich type syntax for creating or describing objects.
  • High performance, close to statically compiled languages, including user-defined types and more.
  • Designed for parallel computing and distributed computing.
  • Lightweight coroutines.
  • Elegant and extensible type conversion/promotion.
  • Supports Unicode, including but not limited to UTF-8.
  • Can directly call C functions (without wrappers or special APIs).
  • Has shell-like process management capabilities.
  • Has Lisp-like macros and other metaprogramming tools.
  • Can be used withJupyter notebooktogether.

Julia Language Uses

Julia's main function is for numerical computing.


First Julia Program

Next, let's write our first Julia program hello.jl (the Julia file extension.jl), the code is as follows:

hello.jl File

println("Hello World!")

To execute Julia language code, you can use thejulia hello.jlcommand.

Executing the above code outputs:

$ julia hello.jl
Hello, World!

Reference Links

Julia official website:https://julialang.org/

Julia Chinese manual:https://docs.juliacn.com/latest/

Other Extensions