~/talk

From IL Weaving to Source Generators, the Realm story

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [dotnet, compilers-and-language-design]
links:none on file
slides:none on file

Realm .NET moves from IL weaving to Source Generators after a six‑month effort and a November 2022 release that embeds the generator in the SDK; IL weaving originally injects get/set behavior into compiled DLLs, source generators emit readable C# at compile time, and the team keeps a tiny post‑compile weaver because generators are only additive until C# 13 adds partial properties. Result: debuggable generated code, faster feature work (nullability, new types), acceptable performance with plans for incremental generators, and no major user complaints.

AI-written summary · about

  1. 0:00Introduction to code generation
  2. 1:23Understanding IL weaving
  3. 8:22Introduction to source generators
  4. 12:50Realm database features
  5. 16:37The role of IL weaving in Realm
  6. 20:24Drawbacks of IL weaving
  7. 23:41Transitioning to source generators
  8. 25:50Pros and cons of source generators
  9. 28:38The hybrid implementation
  10. 34:34Future plans and conclusion
~/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.