Repository navigation
Description
Thank you for responding to our .NET Native AOT survey (#40430)! We had over 1,400 responses. We are in the process of analyzing results and will soon start to reach out for specific follow-up. Nearly a quarter of the respondents provided their contact information. Thank you! Given the large number of responses, we will not be able to follow-up with everyone. We included some of our analysis and follow-up questions below, let’s keep the discussion happening on this thread.
Here are the raw aggregated results.
Which of the following languages do you primarily use to complete day to day work?
- F# showed up in a number of places in the survey, what kind of F# applications would you like to use with Native AOT?
- Which characteristic or feature of another language/platform would you like to see in a Native AOT solution for .NET.
What have you done in CoreRT (experimental project)?
- Please tell us your success or failure story if you’ve used CoreRT. We are very interested in specific stories of CoreRT’s strengths and limitations, both ones you overcame and did not.
- Were you able to get an application functionally working to your satisfaction, but didn’t deploy it in production for other reasons? If so, what were those reasons?
- What platforms (eg. x86, x64, game consoles, mobile) are you looking to target?
Overall, how satisfied or dissatisfied are you with CoreRT?

Shout out to the dotnet/corert contributors that completed the survey – thank you for your contributions.
What, if anything, do you find frustrating or unappealing about CoreRT?

Lack of official support came through loud and clear. In addition, there was significant feedback around the lack of onboarding process and the complexity of dealing with Reflection.
Follow-up questions:
- For the aspects of CoreRT that you found most challenging, how much would they need to improve for you to recommend CoreRT to someone else? Please be as specific as possible.
- Is there a comparison to another technology you could make along the lines of “I wish CoreRT was like Rust (for example) in this specific way” that would make you want to use CoreRT more?
Why do you use a native AOT technology?
- We hear from users that some of these characteristics are 100% required and others are more nice-to-have. It would be great to see ordered listed of these characteristics (with a clear call out of the must-have ones) so that we can see clustering of high-value characteristics. Feel free to add characteristics that were not listed in the survey that are important to you.
- If you build native libraries with native AOT, is there a specific set of calling languages that you support / cater to?
Does the lack of officially supported native AOT option prevent you from using .NET more?
Because of the missing native AOT option, what environment(s) do you use instead?
If you had/have AOT as an option, which workload(s) would you want to use?

The survey contained a rich set of insight into GUI and Games development – thank you!
Follow-up questions:
- Please tell us more about the cloud scenarios you are targeting. If you are using Docker, do you value small container images? How do you achieve that? If you create cloud infrastructure components, do have specific requirements beyond what one would expect for a web application/service?
- For the games scenarios, do you just need Native AOT, or are there other parts of .NET that you would want improved to satisfy the requirements you have?
- For embedded scenarios, what are the specifications for the hardware you are targeting? Are these low resource/constrained environments?
Which GUI(s) do you work with?
Which of these tasks are a part of your production debugging workflow?
Which of the following best describes your primary role or work environment at your organization?
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone









Activity
Dotnet-GitSync-Bot commentedon Aug 28, 2020
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Symbai commentedon Aug 28, 2020
No JIT and obfuscation on the last places. I wonder if this will boost readytorun or GAC approach rather than a true native solution I personally has hoped for? At least GUI and WPF on the upper places, so there is a chance for AOT with WPF and not AOT with console / MAUI / Xamarin.Forms only.
I'm really curios what we will get in the end and how the community reacts to it. It turned out there are many different wishes and views on AOT. So please keep us informed about this topic. And huge thanks for giving us the result of this survey ❤
SingleAccretion commentedon Aug 28, 2020
One thing that I feel would improve the AOT story (and make using CoreRT much easier) for .NET a lot is a way to tell whether your app/library is AOT-friendly and is guaranteed to not blow up at runtime on some random
Type.GetType. The linker attributes are a huge step towards that and it feels important to me that we market them not just as "make your library Blazor-friendly", but "make your library Blazor-and-CoreRT-and-iOS-friendly".vcsjones commentedon Aug 28, 2020
Thank you very much for publishing these results! I do have a request, which is perhaps the data could be shared as a public (read only) Excel Office 365 document, complete with all of the charts. I'm not really asking for raw response data, just enough table data that was used to make the charts in the first place.
The reason I ask is because I am struggling to read the text in the images. My vision is Pretty Darn Bad and I use a lot of zooming, large fonts, and accessibility controls to read. Maybe this screenshot will illustrate the image text against the large text of the GitHub post that I can read well.
This isn't anything I can't deal with right now, so no worries, but perhaps something to consider for the next time (and I hope there is a next time!)
jeffschwMSFT commentedon Aug 28, 2020
Something may have been lost when I cut&pasted. Trying that chart again.
srxqds commentedon Aug 29, 2020
we are embedding mono runtime, so we hope the mono aot can be continuous iteration and optimization
atotalnoob commentedon Aug 29, 2020
I value smaller docker runtimes, a lot. Being able to compile to native would remove a very large portion of our current docker images.
davidfowl commentedon Aug 29, 2020
Trimming without AOT would remove a very large portion of your current docker images.
prajaybasu commentedon Aug 29, 2020
Most scenarios that would benefit from smaller docker images also benefit from faster startup. So that's a compromise compared to CoreRT.
Also, the AOT generated code in R2R is equivalent to Quick JIT, right? Wouldn't R2R generating Tier 1 code be closer to "real" AOT?
reflectronic commentedon Aug 29, 2020
Crossgen does generate "Tier 1" code. However, there are certain limitations on optimizations that can be made (for example, methods cannot be inlined between assemblies). Thus, while it still has most optimizations on, it is considered "Tier 0" in the sense that it can be recompiled later for better performance. Crossgen2 improves many of those types of scenarios (see the version bubbles design document).
22 remaining items
sgf commentedon Oct 2, 2020
im not lost complete interest in C#
C# is still my main language. Just because I have been trying to use C# instead of C/C++, and C# can’t do it. This is frustrating. Therefore, in the Native scenario, I strongly hope to find a replacement for C#.
d The language is good in some aspects, but I still can’t like it. As I mentioned above, the style of D language and class library style is not very similar to C#.
Until I recently know Beef, a lot of code was ported directly from C# code. There is even more than 80%+ compatibility in syntax.
sgf commentedon Oct 2, 2020
I have tried any Dlang plugin(for VSCode,for VS).all of them.
They are not complete enough. And it is not stable enough. Only basic functions.
I have some experience using golang. As early as 2015, golang's development tools have done a good job(LiteIDE,VSCODE). But now is 2020. I have waited for several years, and Dlang's tools still cannot reach the level of golang tools five years ago.
Perksey commentedon Oct 2, 2020
Let's not forget this is a C# thread people :P
pjmlp commentedon Oct 7, 2020
It surely is, but Microsoft needs to be made aware that excuses of what AOT actually means, leaving .NET Native in a limbo state and not offering proper alternatives means that we probably will look elsewhere for our AOT deployment scenarios.
It isn't 2000 any longer, there are plenty of languages to chose from with proper native AOT support, not just pseudo AOT like R2R.
HurricanKai commentedon Oct 7, 2020
R2R isn't advertised or meant as AOT solution, and as you can tell from the results above, > 60% respondents are interested in AOT because of startup times. And that's what R2R is, AOT for startup.
Of course it's unfortunate that right now there is no supported full AOT solution, but this is what the Survey is for, to check whether there is significant interest in AOT. So not sure what all these complaints are about.
pjmlp commentedon Oct 7, 2020
Then just make NGEN cross platform and be done with it.
Perksey commentedon Oct 7, 2020
DQRC69420 commentedon Oct 13, 2020
Honestly? I see them still making that same mistake today with the GC.
Dont get me wrong I ADORE the GC and how optimized it is.
But for certain applications its just not optimized ENOUGH.
They could have given us an option to deallocate objects in a seperate heap safely and manually like how it was done in Rust for example.
But instead they're funding projects like Verona...where the main goal is to create a language that has Rust-like abilities!
So according to microsoft, safe manual memory management is something you totally shouldnt use, but its also necessary.
That begs the question: why arent we using it when WE need it? Because I've seen many many requests for a safe manual management tool. Even here.
Some want a Heap-object you can put your allocated stuff in like a collection where you can also deallocate/remove them, some want an Allocator-object that hides the object from the GC and lets you deallocate whatever you've attached to the allocator,
and some people even want to replace the GC with another GC!
The demand is clearly there and I cant imagine what I'd do if C# was able to one day not only allow safe manual memory management but also aot!
All sorts of programs would be doable.
And hey, when the GC becomes so optimized that it even outperforms good manual management, then they can remove the tool if they want.
But as long as GC cannot cover a wide variety of usecases there should be an option to do manual memory management(MMM) imo.
Project snowflake was a good start and we shouldnt have to fight the GC just because we prioritize performance. Instead we should work with the GC.
Maybe I'm just dreaming too much idk, but I can only imagine what kinda stuff I'd work on if MMM + aot made it into the main .Net versions.
PathogenDavid commentedon Oct 13, 2020
While I do agree a manual memory management escape hatch is an idea worth exploring, Rust's memory management model heavily relies on the concept of borrowing. Adding borrowing to an ecosystem that wasn't designed with it in mind is non-trivial. @jaredpar (the C# compiler team lead) blogged about adding it to C# here: https://blog.paranoidcoding.com/2019/12/02/borrowing.html