~/talk

Techniques for writing DSLs in Objective-C

Talkat UIKonf 2014 · 2014-05-14..05-16· [compilers-and-language-design]
links:none on file
slides:none on file

A practical walkthrough of building internal DSLs in Objective-C that actually ships: a readable state-machine DSL (initial state, event transitions, before/after callbacks) implemented with method chaining and dot syntax, blocks for callbacks and context, macros plus meta_macros.h to generate entry points, the constructor attribute to run registration at load time and __COUNTER__ macro to avoid duplicate symbols, categories for added syntax, scoped expressions to return values, and protocol-based typing to limit accepted argument types.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:57What is a DSL
  3. 9:44Why write a DSL
  4. 12:39When to create a DSL
  5. 13:02Objective-C techniques for DSLs
  6. 19:15DSL entry points and macros
  7. 21:21Using blocks in DSLs
  8. 22:46Other DSL techniques
  9. 25:18Type system and syntactic sugar
  10. 28:52Recap and conclusion
~/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.