.NET has a pretty good AOT compiler since .NET 8
https://learn.microsoft.com/en-us/dotnet/core/deploying/nati...