~/talk

Rebuilding Espec: Foundations In Metaprogramming,

Talkat The Big Elixir 2019 · 2019-11-07..11-08· [compilers-and-language-design]
links:none on file
slides:none on file

Rebuilds a small portion of ESpec by implementing concrete metaprogramming pieces: macros that define describe/context/it style DSL, using quote/unquote AST manipulation to inject code at compile time, and a before_compile hook plus Module.register_attribute(..., accumulate: true) to collect tests. Dynamically generated test functions run via a simple mix task test runner; assertions implement an assert/match/success/error interface and the demo repo proves the approach compiles, runs, and prints per-test success output.

AI-written summary · about

  1. 0:00Intro
  2. 0:26Kimchi
  3. 2:13Motivations
  4. 6:36Unquote
  5. 10:00Rules
  6. 11:24Macros
  7. 12:27Making our own framework
  8. 14:23Avoiding boilerplate
  9. 15:55Building lean essentials
  10. 20:08Using macro
  11. 21:05Compiletime hook
  12. 21:25Beforecompile hook
  13. 22:24Register attributes
  14. 24:49Macros atom
~/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.