~/talk

The pillars of Metaprogramming in Elixir

Talkat ElixirConf EU 2021 · 2021-09-09..09-10· [compilers-and-language-design]
links:none on file
slides:none on file

Elixir metaprogramming rests on three concrete mechanisms: quoted literals, macros, and compile-time callbacks — the talk demonstrates how quoted ASTs (three-element tuples), var vs unquote hygiene, and code.eval_quoted work; shows using defmacro/using to inject functions cleanly; and implements a before_compile-based reflection to list Phoenix controller plugs so tests can assert plug usage rather than runtime behavior. Examples include Ecto schema reflection and a working controller-plug introspection that simplifies testing.

AI-written summary · about

  1. 0:00Start
  2. 17:00CODE INJECTION (THE BAD WAY)
  3. 18:44MACRO EXAMPLE
  4. 19:55CODE INJECTION (THE GOOD WAY)
  5. 27:31EXAMPLE II: PHOENIX.CONTROLLER
  6. 29:04TESTING (USAGE)
  7. 33:42SUMMARY
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.