From IL Weaving to Source Generators, the Realm story
summary
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
chapters (10)
- 0:00Introduction to code generation
- 1:23Understanding IL weaving
- 8:22Introduction to source generators
- 12:50Realm database features
- 16:37The role of IL weaving in Realm
- 20:24Drawbacks of IL weaving
- 23:41Transitioning to source generators
- 25:50Pros and cons of source generators
- 28:38The hybrid implementation
- 34:34Future plans and conclusion
related talks
50mFrom IL Weaving to Source Generators, the Realm story
01h 12mC# Source Generators in Action
54mExploring Source Generators
01h 02mRoslyn Source Generators Never send a human to do a machine's job
42mC# Code Generators: Writing Code That Writes Code
01h 00mLet's Code an incremental source generator with Roslyn
01h 15mLet’s Build an Incremental Source Generator With Roslyn
25m.NET Languages PM and Friends Talk About F#
