~/talk

Embracing Ruby magic: Statically analyzing DSLs

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, developer-experience]
slides:none on file

Ruby LSP now exposes an add-on API that lets gems teach the server how to understand declaration DSLs and call-site DSLs rather than hardcoding every framework, with an indexing enhancements surface that uses add_method/add_module/add_class to publish dynamic declarations discovered during a single AST traversal via a dispatcher and listeners for performance. Example behavior implemented: belongs_to creates reader and writer signatures in the index and validate symbols resolve to method definitions for command‑click go to definition. A working MCP server prototype surfaces that combined index to LLMs.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:31Defining static analysis and DSLs
  3. 7:47Challenges in static analysis of DSLs
  4. 10:20Ruby LSP overview and features
  5. 12:27Add-on API for DSL integration
  6. 17:24Architecture of Ruby LSP
  7. 18:06Handling declaration DSLs
  8. 21:35Handling call site DSLs
  9. 26:12Community add-ons and MCP server
  10. 28:01Future ideas for Ruby type checking
  11. 30:28Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.