Brief Introduction to Julia Metaprogramming, Macros, and Generated Functions


#1

Hello Julia Community,

I am happy to share a IJulia notebook describing Julia Metaprogramming, Macros, and Generated functions for people new to Julia like myself.

the notebook and associated figures can be found here:

https://github.com/beenlanced/juliaMetaprogramming

Happy Coding,

Lance


#2

Just an idea: you could use https://github.com/JuliaTeX/TreeView.jl to visualize the expressions instead of having static .pngs.


#3

@tkoolen I am unfamiliar with the TreeView.jl, but always looking to learn. Appreciate the reference. I will have a look.


#4

Thanks for this, it is really useful for beginners! I’ve never done any macro magic in Julia, because it sounds super esoteric to me, but reading your notebook really clarified a lot of stuff. I probably won’t be able to create macros still, but the concepts ant their meaning and certainly clearer.


#5

Nice! That’s a good introduction for macros for newbies like me imho. :slight_smile: