Julia
Julia 1.13 for scientific computing: numbers and arrays, types and multiple dispatch, packages, fast code, parallel work and the numerical ecosystem.
38 lessons: 31 free with Pro answers and 7 with a free core.
Examples run with julia 1.13.1.
Who it is for
Scientists, engineers and numerical programmers.
What you will be able to do
- Install Julia with juliaup, run code in the REPL, scripts and notebooks, and keep a session current with Revise
- Write correct numerical code with integers, floating point, rationals and complex numbers
- Use arrays, views, broadcasting and reductions the way column-major Julia expects
- Model problems with structs, parametric types and methods that dispatch on every argument
- Build reproducible projects with modules, Pkg environments and committed manifests
- Test, debug, benchmark and profile code, and make it fast with type-stable functions
- Run work in parallel with tasks, threads, distributed workers and GPU kernels
- Call C, Fortran and Python from Julia, and ship tools as apps or compiled executables
- Solve linear systems, differential equations and optimisation problems with the Julia ecosystem
Revise and practise
- Practice: every exercise and quiz (38 quizzes)
Modules and lessons
What the labels mean
- Free lesson, Pro answers
- the whole lesson is free; the model answers to its interview questions open with a pass
- Free core, Pro depth
- the core of the lesson is free; its in-depth parts open with a pass
- Pro
- opens with a Pro, Premium or Ultimate pass
Minutes are reading time: “4 of 10 min free” means 4 minutes of the lesson are free.
What a pass opens in this track
14 in-depth parts and 83 interview answers. The same pass opens every other track and every Pro tool.
- Module 1
Getting started: what Julia is for, installing it and running code
Why scientists pick Julia, honest trade-offs, installing with juliaup, the REPL and scripts, notebooks, editors and the Revise workflow.
- What Julia is for, and when to choose it Free lesson, Pro answers: 15 minutes
- Install Julia with juliaup and manage versions Free lesson, Pro answers: 10 minutes
- The REPL, scripts and the @main entry point Free lesson, Pro answers: 10 minutes
- Notebooks, editors and the Revise workflow Free lesson, Pro answers: 10 minutes
- Module 2
Variables, numbers and arithmetic
Bindings, Unicode names, integer overflow and division, floating point as scientists meet it, rationals, complex numbers and maths functions.
- Variables, bindings and Unicode names Free lesson, Pro answers: 15 minutes
- Integers, overflow and integer division Free lesson, Pro answers: 10 minutes
- Floating point for scientists and engineers Free lesson, Pro answers: 10 minutes
- Rationals, complex numbers and maths functions Free lesson, Pro answers: 10 minutes
- Module 3
Control flow, functions and scope
Conditionals and loops, functions and their arguments, the scope rules behind Julia's most common beginner error, and functional style.
- Conditionals, loops and ranges Free lesson, Pro answers: 15 minutes
- Functions, arguments and keyword arguments Free lesson, Pro answers: 15 minutes
- Scope, closures and the soft-scope trap Free lesson, Pro answers: 15 minutes
- map, filter, reduce, generators and composition Free lesson, Pro answers: 15 minutes
- Module 4
Tuples, dictionaries, strings and text
Tuples and named tuples, dictionaries and sets (including the 1.13 hash change), UTF-8 strings with Indian scripts, and regular expressions.
- Tuples, named tuples and pairs Free lesson, Pro answers: 20 minutes
- Dictionaries and sets, and the 1.13 order change Free lesson, Pro answers: 20 minutes
- Strings, characters and Unicode in Julia Free lesson, Pro answers: 20 minutes
- Regular expressions and parsing instrument logs Free lesson, Pro answers: 20 minutes
- Module 5
Arrays, indexing and broadcasting
Vectors and matrices, column-major storage, copies versus views, broadcasting and fusion, reductions over dimensions, and a bridge for MATLAB, NumPy and R users.
- Arrays: vectors, matrices and column-major storage Free lesson, Pro answers: 15 minutes
- Indexing, slicing, copies and views Free lesson, Pro answers: 15 minutes
- Broadcasting, dot syntax and loop fusion Free lesson, Pro answers: 15 minutes
- Reductions, reshaping and the dims keyword Free lesson, Pro answers: 15 minutes
- Julia for MATLAB, NumPy and R users Free lesson, Pro answers: 15 minutes
- Module 6
The type system and multiple dispatch
Abstract and concrete types, structs and constructors (and 1.12 redefinition), methods and dispatch on all arguments, parametric types, promotion and custom numbers, iteration and array interfaces.
- The type system: abstract and concrete types Free lesson, Pro answers: 15 minutes
- Structs, constructors and redefining types (1.12+) Free lesson, Pro answers: 15 minutes
- Methods and multiple dispatch Free lesson, Pro answers: 15 minutes
- Parametric types and generic numeric code Free lesson, Pro answers: 15 minutes
- Conversion, promotion and custom number types Free lesson, Pro answers: 15 minutes
- Interfaces: iteration and custom arrays Free lesson, Pro answers: 15 minutes
- Module 7
Errors, nothing and missing
Exceptions and error messages across versions, and the difference between nothing, missing and NaN in real datasets.
- Exceptions and error handling Free lesson, Pro answers: 15 minutes
- nothing, missing and NaN: absent values in Julia Free core, Pro depth: 4 of 10 minutes free
- Module 8
Modules, packages and reproducible environments
Modules with export and public, Pkg environments and Manifests for reproducible science, writing and publishing packages, and the precompilation behind time-to-first-x.
- Modules, using, import, export and public Free lesson, Pro answers: 15 minutes
- Julia environments: Project.toml and Manifest.toml Free core, Pro depth: 6 of 15 minutes free
- Julia packages: create, test and publish Free core, Pro depth: 6 of 15 minutes free
- Precompilation and time-to-first-x (TTFX) Free core, Pro depth: 6 of 15 minutes free
- Module 9
Files, external programs and command-line tools
Reading and writing files and common data formats safely, running external programs without a shell, and building command-line tools.
- Files, streams and data formats Free lesson, Pro answers: 20 minutes
- External programs, pipelines and command-line tools Free core, Pro depth: 6 of 15 minutes free
- Module 10
Testing, debugging and profiling
Test.jl with the 1.12 and 1.13 additions, debugging with logging and introspection, and benchmarking and profiling without fooling yourself.
- Unit testing numerical code with Test Free lesson, Pro answers: 15 minutes
- Logging, stack traces and introspection Free core, Pro depth: 6 of 15 minutes free
- Benchmarking and profiling Julia code Free core, Pro depth: 6 of 15 minutes free
Related tools
Official documentation
- Julia 1.13 documentation (The Julia Project)
- Julia 1.13 release notes (NEWS) (The Julia Project)
- Download Julia (The Julia Project)
- Pkg documentation (The Julia Project)