~/talk

Automate More Code With Scalameta

Talkat LambdaConf 2019 · 2019-06-05..06-07· [developer-experience]
links:none on file
slides:none on file

Live coding shows scalameta as a concrete AST tool: quasiquotes unpacking and repacking of defs, params and modifiers, structural pattern matches on case classes, and manipulation of term/type names. The code generator used in Guardrail writes scala AST trees into sourceManaged so SBT compiles generated files; tests compile and run per PR. Examples include changing parameter lists, visibility, and packaging; the generation workflow proves practical and repeatable.

AI-written summary · about

  1. 0:00ScalaMeta introduction
  2. 2:03Quasi quotes for code gen
  3. 7:29AST unpacking and repacking
  4. 13:47Extracting function components
  5. 23:18Building abstractions from data
  6. 31:50ScalaMeta as value system
  7. 35:57Advantages over macros
  8. 40:02Testing generated code
  9. 41:49Live coding type class generator
~/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.