Hacker News new | ask | show | jobs
by applfanboysbgon 20 days ago
I mean, one trade-off is obvious: you get the drawbacks of the runtime too. Any .NET program is opting you into tens of MBs of binary/lib size and RAM usage for what a C program could do in <1mb. This completely rules out using in the language in certain domains eg. embedded.
1 comments

.NET programs can be AOT compiled
I am well aware of that, given that I routinely ship such programs. Compiling ahead of time does not change the fact that the .NET runtime is orders of magnitude larger than a C runtime.
Funny enough, in their both latest versions. C# AOT has a smaller runtime than Go one