• 0 Posts
  • 7 Comments
Joined 4 months ago
cake
Cake day: July 29th, 2024

help-circle
  • Semi auto properties and params collection are long overdue. Great to see them in there.

    System.Text.Json respecting nullability is also great. But may break some things if you didn’t realise you were relying on the old behaviour.

    LoggerMessage source gen using primary constructors fixes a minor pain.

    EF generating SQL at compile time is also pretty sweet. Better query performance from precompiled and better startup performance from not having to precompile at runtime.

    All in all it looks pretty good.







  • Actually jit languages can outperform compiled languages by using runtime analysis to perform tiered compilation and profile guided optimisations.

    C# has made some great strides in this regard.

    All the normal optimisations are applied when it is compiled to byte code. Like loop unrolling etc.

    Then once it detects the hot paths during execution it can apply even more based on how it is called. It can also do optimisations that aren’t possible at initial compile time.

    Dynamic PGO it’s called. It’s a really interesting topic.