~/talk

DSLs, Code Generation, and New Domains for Ruby

Talkat RubyConf 2009 · 2009-11-19..11-21· [ruby, developer-experience]
speakerdeck:vjoel
slides:none on file

Claims that internal DSLs can generate native code for embedded and numerical work and shows two working toolchains: aren (four DSLs, ERB‑based templating, used to generate UML/ECOR and production code for BMWs) and red shift (DSL for hybrid automata that code‑generates a C extension, uses a 4th‑order Runge‑Kutta integrator, builds in <1s then loads in ~0.25s, performance near Simulink). Also describes cgen (automated C struct, accessors, marshalling, inheritance) and unmet needs: an animation DSL and an efficient packet‑handler DSL.

AI-written summary · about

  1. 0:00Intro
  2. 2:46Metamodel builder
  3. 4:59Metamodel usage
  4. 5:33Model builder #1: instantiate the classes
  5. 6:06Model builder #2: use the DSL
  6. 7:04Model builder notes
  7. 8:03Template DSL
  8. 12:13Hybrid systems
  9. 14:48What's hybrid about these?
  10. 20:23So, how does a programmer get involved in this?
  11. 23:34What's happening?
  12. 24:20DSL techniques
  13. 24:52Code generation techniques
  14. 29:15Cgen output fragment
  15. 30:05RedShift advert...
  16. 32:19Wanted: 2 DSLs w/Code gen
  17. 33:27Packet DSL
~/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.