.NET Native AOT

Comments discuss .NET and C#'s Native AOT compilation capabilities, including its ability to produce standalone native binaries without a runtime, fast startup times, lower memory usage, and historical evolution from Windows-only to cross-platform support.

➡️ Stable 0.7x Programming Languages
2,909
Comments
19
Years Active
5
Top Authors
#6176
Topic ID

Activity Over Time

2008
1
2009
12
2010
27
2011
34
2012
59
2013
71
2014
131
2015
135
2016
167
2017
193
2018
173
2019
178
2020
230
2021
279
2022
196
2023
307
2024
353
2025
354
2026
9

Keywords

COM MS ASP.NET world.cs CLI UNIX O2 LINQ GP WP8 aot net native native code runtime compiled compilation code memory windows

Sample Comments

wmf Sep 20, 2022 View on HN

Weren't .NET and its APIs originally Windows-only and they only became portable later? And doesn't .NET have AOT support?

C# recently came out with Native AOT (ahead of time) compilation that compiles your app to a binary that can run without the .NET runtime (!!), and has fast startup and lower memory overhead. There are a few drawbacks: many reflection and run-time code generation and loading features are unavailable, and LINQ expressions must be interpreted which makes them slow. But it's easy to work around those limitations for a greenfield infra project, and C# has great performance characteristics.

pjmlp Apr 14, 2016 View on HN

.NET also has AOT compilation, which HNers seem to keep forgetting about.

pjmlp May 16, 2015 View on HN

Curious to see how .NET Native would compare given it is using the same backend as VC++ .

pjmlp Mar 11, 2025 View on HN

Native AOT exists, and C# has many C++ like capabilities, so not at all.

mhomde Aug 21, 2015 View on HN

That's no longer true with Windows 10 where .Net Native compiles everything into native code directly

sedatk Jan 11, 2025 View on HN

.NET supports native AOT for a while now.

denfromufa Jan 30, 2017 View on HN

Have a look at CoreRT and Mono AOT

tommyage Aug 17, 2022 View on HN

C# can be natively compiled, doesn't it?

ryanjshaw Mar 21, 2024 View on HN

You're behind the times:> Publishing your app as Native AOT produces an app that's self-contained and that has been ahead-of-time (AOT) compiled to native code. Native AOT apps have faster startup time and smaller memory footprints. These apps can run on machines that don't have the .NET runtime installed.https:/