~/talk

From IL Weaving to Source Generators, the Realm story

Talkat NDC London 2024 · 2024-01-29..02-02· [dotnet, compilers-and-language-design]
links:none on file
slides:none on file

Realm .NET moves from Intermediate Language weaving to Source Generators to make generated code readable, debuggable and part of the compile pipeline; migration (first SG release Nov 2022 after ~6 months work) replaces most weaving by generating accessor classes while keeping a tiny, targeted IL weaver because SGs are additive only. Tools used: ILSpy and SharpLab to inspect IL, Roslyn generators for generation. Result: shipped and working, added nullable support and fewer surprises, but full removal needs language features like partial properties and interceptors remain experimental.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Code generation in .NET
  3. 1:32IL weaving explained
  4. 6:05Inspecting IL code
  5. 9:21Source Generators in .NET
  6. 14:20Realm database
  7. 18:53Why code generation
  8. 19:14Realm’s IL weaving
  9. 23:50Drawbacks of IL weaving
  10. 28:10Transition to Source Generators
  11. 31:25Source Generators advantages
  12. 34:16Source Generators limitations
  13. 38:15Realm’s mixed approach
  14. 42:28Future of code generation
  15. 46:43Conclusion
~/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.