.NET 7 Adds Native AOT
Written by Kay Ewbank   
Thursday, 26 May 2022

The third preview of .NET 7 has been released with support for Native AOT (Ahead-of-time) compilation. Now open source, .NET was created from a combination of .NET Framework and .NET Core, and this latest incarnation aims to improve observability, startup times, codegen, and GC regions in addition to native AOT compilation.

 

net2

The Native AOT project was moved into mainline development in the previous preview of .NET, with the promise of giving developers a way to create faster, lighter apps. .NET alrady offered AOT in the form of ReadyToRun for client and server apps, and Mono AOT for mobile and WASM. The idea is that code is generated at application build time rather than runtime. What Native AOT adds is platform native pre-compilation to .NET desktop client and server, with the executable file format parsing being fully handled by the underlying operating system.

The main advantage of Native AOT is that it provides better startup time and memory usage along with smaller size on disk. Applications can start running as soon as the operating system pages in them into memory. Native AOT isn't something to be used without good reason, as it has stricter requirements than general .NET Core/5+ applications and libraries. You can't emit new code at runtime or load new .NET assemblies such as plug-in modules at runtime. It is, however, useful in environments where startup time matters.

Other improvements in this release include more support for observability through the cloud native OpenTelemetry specification. It also provides improvements to startup time with Write-Xor-Execute enabled.

.NET 7 Preview 3 is available for download now.

net2

More Information

.NET 7 Preview 3

Related Articles

.NET Celebrates 20th Anniversary of Launch

Microsoft Releases .NET 6 And Visual Studio 2022

Developer Preview Of .NET 6 Released 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


pg_parquet - Postgres To Parquet Interoperability
28/11/2024

pg_parquet is a new extension by Crunchy Data that allows a PostgreSQL instance to work with Parquet files. With pg_duckdb, pg_analytics and pg_mooncake all of which can access Parquet files, is  [ ... ]



Use Javascriptmas To Hone Your Webdev Skills
08/12/2024

Every day until December 24th MDN, in partnership with Scrimba, is releasing a daily challenge, which as the name suggests requires you to practice your JavaScript skills. Each solution you submi [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 26 May 2022 )