Julia Advanced Introduction
Julia Advanced is the next step beyond the intermediate course, going deeper into metaprogramming, types, measured performance, parallel and distributed work, robust packages, and scientific computing. Each lesson builds one deeper skill on top of skills from earlier courses.
A small function can greet a name
The function builds a greeting from its input.
function greet(name)
return "Hello, " * name
end
println(greet("Ada"))A small function can double a number
The function adds its input to itself.
function double(n)
return n + n
end
println(double(21))A small function can total a list
The function sums every number in its input list.
function total(numbers)
return sum(numbers)
end
println(total([1, 2, 3, 4]))Example
function greet(name)
return "Hello, " * name
end
function double(n)
return n + n
end
println(greet("Ada"))
println(double(21))Key points
- Metaprogramming depth: Later lessons build and change code as data, with more control than a first macro.
- Type depth: Later lessons look closer at how types guide code choices.
- Measured performance: Later lessons measure work with counts, not guesses, and keep totals exact.
- Parallel work: Later lessons share work across tasks and processes where the shape fits.
- Robust packages: Later lessons build tested, documented, and versioned packages for others to use.
- Scientific work: Later lessons solve equations, fit lines to data, and smooth signals from fixed data.
In this example, greet builds a greeting from Ada, double adds 21 to itself, and each println shows one result.
Note
This introduction adds no new skill by itself, and the next lessons add one skill at a time.
Try it Yourself
Edit the code, then press Run.
Running is simulated · JuliaHub
Exercise
What does this advanced step add, lesson by lesson?