Introduction to Metaprogramming in Julia - JuliaCon 2021 Workshop
The Julia Programming Language via YouTube
Overview
Syllabus
Outline.
Resources.
Intro to metaprogramming.
Domain-specific language example.
2 - Structure of Julia code.
Symbols.
Expressions.
Operator precedence.
3 - Expression trees.
Solution to the `substitute!` exercise.
Solution to `find_variables` exercise.
4 - Macros.
Macro hygiene.
Defining a show macro.
Macros for domain-specific languages: Variables.
Macros with more than one argument.
Code generation using eval.
World-age errors.
Taught by
The Julia Programming Language