Julia Tutorial
Julia is an open-source programming language, licensed under MIT, and free for everyone to use.
Julia is a high-performance dynamic high-level programming language for 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; the standard library is written in Julia itself.
- Calls many other mature high-performance foundational codes, such as linear algebra, random number generation, fast Fourier transform, and string processing.
- Rich type syntax for creating or describing objects.
- High performance, close to statically compiled languages, including user-defined types, etc.
- Designed for parallel and distributed computing.
- Lightweight coroutines.
- Elegant extensible type conversion/promotion.
- Supports Unicode, including but not limited to UTF-8.
- Can directly call C functions (without wrapping or relying on special APIs).
- Has shell-like process management capabilities.
- Has Lisp-like macros and other metaprogramming tools.
- Can beJupyter notebookused together.
Julia Language Uses
Julia's main function is for numerical computing.
First Julia Program
Next, let's write our first Julia program hello.jl (Julia file extension.jl), the code is as follows:
hello.jl File
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