What's new in the .NET 11 runtime learn.microsoft.com · 254 points · 1 comments ...

@best30

What's new in the .NET 11 runtime learn.microsoft.com · 254 points · 1 comments · HN thread

TL;DR Microsoft's documentation of the .NET 11 runtime changes: higher minimum CPU baselines (x86-64-v2 and Arm64 with LSE on Windows), a preview Runtime Async model that replaces compiler-generated async state machines, and many JIT, WebAssembly, NativeAOT and diagnostics improvements. The story has 254 points, and its single comment only points to a moved discussion thread.

  • Minimum x86/x64 baseline rises from x86-64-v1 to x86-64-v2 on Apple, Linux and Windows; R2R targets move to x86-64-v3 on Windows and Linux. Older CPUs fail to start with a 'missing baseline instruction sets' message.
  • Windows Arm64 baseline now requires the LSE instruction set; Linux Arm64 (e.g. Raspberry Pi) is unchanged.
  • Runtime Async (Runtime Async V2) is a preview opt-in via runtime-async=on; it shortens live stack traces, from 13 frames to 5 in the article's example.
  • JIT gains include bounds-check elimination, constant-folding of string and span comparisons, and devirtualization of generic virtual methods; Comparer.Default is specialized in R2R images, with benchmarks up to 20×.
  • Async continuations can skip ExecutionContext capture when there is nothing to restore; on iOS/tvOS advisory file locking is now disabled by default.

Discussion The Hacker News thread has almost no discussion: the only comment is from a moderator (tomhow) saying the comments were moved to another thread at news.ycombinator.com/item?id=5. The mood on this page is neutral and informational, and no opinions about the content can be drawn from it.

Links from the comments

#dotnet #runtime #csharp #jit #async #webassembly