Let’s Build an Incremental Source Generator With Roslyn, by Stefan Pölz

Let’s Build an Incremental Source Generator With Roslyn, by Stefan Pölz

8.998 Lượt nghe
Let’s Build an Incremental Source Generator With Roslyn, by Stefan Pölz
This talk was part of the JetBrains .NET Days Online 2022 conference. Details: https://pages.jetbrains.com/dotnet-days-2022 Description: (Incremental) source generators allow us to trade in a bit of compile time for better performance during runtime: instead of resorting to general-purpose types and methods, we may utilize auto-generated variants optimized specifically for our user code. With these at our fingertips, we can facilitate high-performance scenarios by, for example, using a Reflection-free source. If nothing else, this Roslyn-based metaprogramming relieves authors of writing repetitive patterns over and over again. While source generators (compatible with the .NET 5 SDK) potentially cause a sluggish developer experience in huge projects and solutions, the programming model of incremental generators (added to the .NET 6 SDK) mitigates that risk. Come join me in a live coding session and witness the (test-driven) implementation of a fully operational incremental source generator. We will unveil (most of) the intricacies and benefits of incremental source generation along the way. Speaker: Stefan Pölz, Clean C# Coder – Test-driven .NET Developer Twitter: https://twitter.com/0x_F0 Code: https://github.com/Flash0ver/F0-Talks-SourceGenerators "C# Source Generators in Action" by Andrey Dyatlov: https://www.youtube.com/watch?v=052xutD86uI Original stream: https://www.youtube.com/watch?v=u4UmUOYqzlU #dotnet #JBDotNetDays