3 ms·
Is there still a point to this now that .NET 7 has NativeAOT and self contained EXEs? does this just give native trimming? Lack of macOS support seems like a no
by lukevp 4y ago
Is there still a point to this now that .NET 7 has NativeAOT and self contained EXEs? does this just give native trimming? Lack of macOS support seems like a non starter for a lot of cross platform cli tooling.
Regular .NET can’t do AOT for asp.net core. Can bflat? If so, that would be really helpful for example for lambdas. The cold start time is quite poor without AOT.
- pjmlp 4y agoNativeAOT doesn't do bare metal. As for the cold start you can use tiered JIT and Ready2Run, until full AOT becomes available.
- Deukhoofd 4y agoNativeAOT definetely can do bare metal, here's an example of a very basic EFI boot application: https://github.com/MichalStrehovsky/zerosharp/tree/master/efi-no-runtime https://github.com/MichalStrehovsky/zerosharp/tree/master/ef...
- pjmlp 4y agoExcept that isn't NativeAOT as it ships on the box using dotnet publish workflow, rather a curated workflow which requires special steps as shown on the efi-runtime example. My remark was regarding the support you get with dotnet publish for NativeAOT, which by the way still doesn't support the GUI/EF scenarios from .NET Native.
- MStrehovsky 4y agoZeroSharp is done by the same person as bflat (me). These ZeroSharp samples get broken all the time because they bend the MSBuild targets that ship with .NET to an extreme. Bflat is a more supportable route and has a couple extra customizations to the compiler specifically for these scenarios.