~/talk

Dynamic Runtime Code with Roslyn

Talkat NDC London 2019 · 2019-01-30..02-01· [c-sharp, compilers-and-language-design]
slides:none on file

Roslyn compiles C# into assemblies at runtime so frameworks generate and compile C# into in-memory assemblies and load concrete types on demand; examples include Lamar/Jasper generating route handlers and Refit-style HTTP clients, and Utf8Json using this for fast JSON parsing. This replaces slow reflection and fragile IL or awkward expression trees, yielding reduced allocations and GC pressure and much faster hot paths, but with a real cold-start cost (originally cold start ~4–5s before warmup—now reduced, often mitigated by background compilation). Generated code is previewable and debuggable, improving stack traces.

AI-written summary · about

  1. 0:00Introduction
  2. 0:48About me
  3. 1:30Tools
  4. 2:09MVC Core
  5. 4:50Reflection
  6. 10:27Adapters
  7. 12:33Hello World
  8. 16:54Research
  9. 18:39Lets get fancy
  10. 20:25Refid
  11. 21:43Demo
  12. 24:39Lamar Compiler
  13. 27:30Lamar Container
  14. 30:35Darth Vader
  15. 31:13Frameworks
  16. 37:17Generation X
  17. 38:36Fabu MVC
  18. 40:27Behaviors
  19. 45:22Jasper
  20. 48:19Generated Code
  21. 56:49HTTP Status Codes
~/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.