Julia provides a very powerful macro system that lets include generated code in the body of your program. They are executed at compile time and enable you to operate on the source code's Abstract Syntax Tree (AST).
Macros and generated functions are a built-in language functionality, and hence no installation is required. However, in this recipe, we will be also measuring the code performance. For this purpose, the
BenchmarkTools.jlpackage will be used. In order to install it press the] key to start the Julia package manager and type: