Главная
Study mode:
on
1
Outline
2
Resources
3
Intro to metaprogramming
4
Domain-specific language example
5
2 - Structure of Julia code
6
Symbols
7
Expressions
8
Operator precedence
9
3 - Expression trees
10
Solution to the `substitute!` exercise
11
Solution to `find_variables` exercise
12
4 - Macros
13
Macro hygiene
14
Defining a show macro
15
Macros for domain-specific languages: Variables
16
Macros with more than one argument
17
Code generation using eval
18
World-age errors
Description:
Dive into a comprehensive workshop on metaprogramming in Julia from JuliaCon 2021. Explore the fundamentals of metaprogramming, including its applications, best practices, and when to use it. Learn about Julia code structure, symbols, expressions, and operator precedence. Delve into expression trees, macros, and macro hygiene. Discover how to create domain-specific languages using macros, work with multiple macro arguments, and generate code using eval. Gain insights into world-age errors and their implications. Follow along with practical exercises and solutions, including the 'substitute!' and 'find_variables' challenges. Access accompanying notebooks on GitHub and engage in Q&A sessions by registering for JuliaCon. Perfect for intermediate to advanced Julia users looking to enhance their metaprogramming skills and understanding.

Introduction to Metaprogramming in Julia - JuliaCon 2021 Workshop

The Julia Programming Language
Add to list
0:00 / 0:00