0
Where should a programmer use C++ instead of C#?
(lemmy.org)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
When you don't want to depend on .NET runtime. And if there are libraries you want to use that is available in C++, but not in C#.
There is an option for that in .NET.
Oh wow! Since when is this possible? I looked it up, it even works with Linux (and bunch of other OSes).
Microsoft has been working on AOT a lot for a few years now, for the last few dotnet versions. More and more became trimmable and compilable.
I think they added AOT with .NET 6 and they are supporting Linux ever since the .Net Framework, .NET Core split.