~/talk

Runtime code generation techniques in real life scenarios

Talkat DotNext 2017 Moscow · 2017-11-12..11-13· [compilers-and-language-design]
slides:none on file

Shows concrete patterns: building fast delegates from Expression Trees to replace reflection, parsing spreadsheet-like formulas into expression lambdas, and generating object mappers that compile a Dictionary-to-POCO assignment with cast and null checks. Demonstrates source-level generation and debugging via Roslyn/CodeAnalisys (emit formatted C#, add DebuggableAttribute, step into generated code) and runtime IL rewriting with ILSpy-style instrumentation to inject logs and produce execution flow diagrams. Notes practical pitfalls like implicit conversion handling and async/Task<T> marshaling.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:51What is code generation
  3. 4:29When to generate code
  4. 7:21Using expressions for code generation
  5. 13:30Building a custom parser
  6. 21:05Mapping objects to dictionaries
  7. 34:04Advanced code generation with Roslyn
  8. 46:20High-level abstractions in Roslyn
  9. 51:20Why not use IL directly
  10. 57:06Runtime IL instrumentation demo
  11. 1:01:25Summary and key takeaways
~/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.