Let's Code an incremental source generator with Roslyn - Stefan Pölz - NDC London 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • (Incremental) source generators allow us to trade in a bit of compile-time for better performance during run-time:
    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 could facilitate high-performance scenarios by, for example, 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. And finally, we shall check the technical quality of the resulting component through benchmarking and mutation testing.
    Check out our new channel:
    NDC Clips:
    ‪@ndcclips‬
    Check out more of our featured speakers and talks at
    ndcconferences...
    ndclondon.com/

ความคิดเห็น • 4

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน +3

    14:15 - Toolings
    15:05 - Versioning
    31:30 - ForAttributeWithMetadataName
    32:53 - ForAttributeWithMetadataName (Semantic Transform)

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    53:08 - Big thanks - I also didn't know about (Enum) (-1) issue you were facing

  • @ivandrofly
    @ivandrofly 11 หลายเดือนก่อน

    Thanks ;)

  • @ruichen1003
    @ruichen1003 8 หลายเดือนก่อน

    The template project is so complex, I wonder how to make them from scratch