News for hackers. Stuff that matters.
Re:.NET 8 Standalone 50% Smaller On Linux by pragmatic on Saturday November 11, 2023 @10:50AM (#38231358)
From my experience golang uses less memory than a .net app.

I haven’t done a recent comparison so if someone had tested this lately and has different results I’d love to see it.

Re:.NET 8 Standalone 50% Smaller On Linux by metaltyphoon on Saturday November 11, 2023 @03:28PM (#38234185)
When C# is AOT compiled, the memory footprint is roughly the same.
Re:.NET 8 Standalone 50% Smaller On Linux by banashark on Monday November 13, 2023 @02:57PM (#38254534)
Do you have any reference for this?

I'm very curious to see how they managed to pull this off since from my knowledge of the development patterns, .net has historically been much more allocation-heavy (not that it isn't very efficient with allocated data).

Re:.NET 8 Standalone 50% Smaller On Linux by etra0 on Tuesday November 14, 2023 @09:04AM (#38263395)
Do you have any resources?

I was looking for similar benchmarks but couldn't find anything conclusive. I found the benchmark game [1] but only had .net 7 AoT (not .net 8) benchmarks and memory consumption seems too high.

I'd ditch golang on a pinch as soon as I can use a decent type system, and C# seems like a great alternative.

Crystal would be my ideal but its compiler is still too slow, sadly.

[1] https://programming-language-benchmarks.vercel.app/csharp-vs...