News for hackers. Stuff that matters.
Re:Introducing .NET IL Linker by judah on Wednesday August 30, 2017 @03:04PM (#15134963)
There's definitely a cost to all that coziness; it's all about tradeoffs. Garbage collection, bounds checks, APIs that trade memory efficiency for ease-of-use, to name a few.

It's not to say that C# will always be 10x memory usage, however, it will always be somewhat higher. Even with a linker, when you run a .NET app, it's not just loading your C# code, but also .NET code that you call into (linker helps keep this slim) and of course the Common Language Runtime C++ code that executes your app and manages its memory.

Re:Introducing .NET IL Linker by svick on Friday September 01, 2017 @05:33PM (#15152555)
> APIs that trade memory efficiency for ease-of-use

This is currently being worked on. With the addition of Span<T>, many APIs will soon have a version that does not allocate and instead use a buffer you pass in (which can be managed or unmanaged).