News for hackers. Stuff that matters.
Re:My preferred .NET console stack by ripley12 on Friday January 15, 2021 @12:23PM (#25793377)
> And you end up with a console app that is 20-100MB.

FWIW, this is sort of a legacy of .NET's "enterprisey" history. Code size and trimming wasn't really a priority when most .NET code ran server-side or inside enterprises, now it is.

There's been a lot of work happening recently to trim .NET executables and publish them as single files, and it looks like .NET binary sizes will eventually be in the same ballpark as Go: https://blog.kalalau-cantrell.com/2021/01/make-smaller-conso...

Re:My preferred .NET console stack by oblio on Friday January 15, 2021 @01:26PM (#25794199)
Don't hold your breath. I've been keeping an eye on CoreRT and it actually slowed down and even regressed compared to Dotnet Core's rate of development while I was watching it.

I think maybe in 2016? 2018? they were committing a lot to it, probably hoping to make it production ready. Then priorities shifted and they barely advanced and now they moved it into "runtimelab" which doesn't bode well to me.

Re:My preferred .NET console stack by merb on Friday January 15, 2021 @07:59PM (#25798788)
> Don't hold your breath. I've been keeping an eye on CoreRT and it actually slowed down and even regressed compared to Dotnet Core's rate of development while I was watching it.

you do not need CoreRT for trimming. but trimming is already there: https://devblogs.microsoft.com/dotnet/app-trimming-in-net-5/

it's still a long way to go, tough.

Re:My preferred .NET console stack by ripley12 on Friday January 15, 2021 @02:37PM (#25795253)
My understanding is the opposite; now that they're planning to merge Mono and CoreCLR, there is significantly more pressure on the .NET team to have a proper AOT solution.

"Early adopters can experiment with native AOT form factor" is a priority-zero (highest priority) epic for .NET 6: https://github.com/dotnet/runtimelab/issues/248

Re:My preferred .NET console stack by manigandham on Friday January 15, 2021 @06:15PM (#25797879)
CoreRT was an experiment and it's concluded. The learnings and components like RyuJIT have now been moved to the new project called NativeAOT which has high priority.

https://github.com/dotnet/runtimelab/tree/feature/NativeAOT

Re:My preferred .NET console stack by throwawaybutwhy on Friday January 15, 2021 @01:11PM (#25793995)
> 'in the same ballpark as Go'

Not the lowest rung on the ladder.

Re:My preferred .NET console stack by lkxijlewlf on Friday January 15, 2021 @01:25PM (#25794194)
> FWIW, this is sort of a legacy of .NET's "enterprisey" history.

So is this type of boilerplate.