News for hackers. Stuff that matters.
Re:Native AOT Overview by fabian2k on Friday May 26, 2023 @09:23AM (#36083751)
You don't even need native AOT for that, you can already create self-contained binaries with .NET Core. Those have fewer restrictions than native AOT, they bundle the necessary runtime.
Re:Native AOT Overview by pjc50 on Friday May 26, 2023 @11:05AM (#36085153)
They have some annoying downsides: they unpack the runtime when you run them. This can cause problems like "virus scanner takes time looking at each .dll unpacked" and "fill up the disk they're unpacked into".

If they don't fix this by version 8 I might have to build my own CLR apphost solution :(

Re:Native AOT Overview by fabian2k on Friday May 26, 2023 @11:20AM (#36085332)
I don't think that is the case anymore. I think it also was platform-specific before and only applied to Linux. But I couldn't find the exact change with a quick search.
Re:Native AOT Overview by pjc50 on Friday May 26, 2023 @11:26AM (#36085405)
It's not the case for AOT, but it is for "self-contained", at least as of .NET 6.
Re:Native AOT Overview by fabian2k on Friday May 26, 2023 @11:48AM (#36085717)
It doesn't extract onto disk, I'm not sure if it is still doing some extraction into memory.
Re:Native AOT Overview by ripley12 on Friday May 26, 2023 @05:03PM (#36089480)
I believe this got fixed in .NET 5; now only native libraries need to be extracted and stored elsewhere on disk, and many applications can get by without native dependencies.

> When the app starts, the managed DLLs are extracted and loaded in memory, avoiding the extraction to a folder.

https://learn.microsoft.com/en-us/dotnet/core/deploying/sing...