~/talk

Kotlin DSLs as a Single Source of Truth for Multiple Tasks

Talkat NDC Copenhagen 2025 · 2025-09-08..09-12· [java, developer-experience]
slides:none on file

Argues that Kotlin internal DSLs function as a single source of truth that can execute rules, generate live diagrams, docs and serializations, and run sanity tests. Shows a rules DSL that transpiles to Graphviz DOT for visualization, to Asciidoctor for documentation, and to YAML/JSON via Jackson; a 4‑condition example produces 2^4 = 16 cases and reveals unreachable rules, and brute‑force sanity tests remain fast up to about a dozen conditions. Demonstrates lambdas with receiver, DSL marker, infix/operator tricks and delegated property capture for identifiers, and notes executable‑code security and Kotlin parenthesis limitations.

AI-written summary · about

  1. 0:00Kotlin DSLs introduction
  2. 7:19DSL types and tradeoffs
  3. 12:41Imperative to DSL evolution
  4. 21:26Executing and extending DSLs
  5. 33:27Advanced DSL techniques
  6. 44:33Cross references in DSLs
  7. 52:27Conclusions
~/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.