News for hackers. Stuff that matters.
Re:.NET 5.0 by tester756 on Tuesday November 10, 2020 @12:09PM (#25048241)
>but you also get a self-contained binary executing without the requirement of an external runtime environment.

I'm not sure whether we're talking about the same thing, but you can publish Self-Contained App (basically your app and framework together) and you don't have to install anything.

Re:.NET 5.0 by svnpenn on Tuesday November 10, 2020 @01:17PM (#25049129)
This is technically true, but it's a difference of a 5 MB executable vs a 50 MB.
Re:.NET 5.0 by littlecranky67 on Tuesday November 10, 2020 @02:56PM (#25050938)
Is it, actually? I mean, yes of course its 45MB difference, but does this matter? We are not talking about applications downloaded to a browser (webapp) or to a mobile phone. In a time where I download >50GB+ games on Steam and deploy from CI/CD server or docker registries to my servers, is a size of 50MB or 100MB really a showstopper?

Don't get me wrong, I totally love 4k and 64k demos and am always fascinated what could be packed into such small binaries, but in my professional life I think developer productivity, code quality and tooling is way more important than filesize. This is of course different if you are a webdev that ships .js, or an App developer publishing to Appstores.

Re:.NET 5.0 by tyrrrz on Tuesday November 10, 2020 @04:39PM (#25052344)
The only environments where self-contained deployment matters are the ones you mentioned: browser, mobile phone, and also desktop. So yes, 45mb is a big difference (actually my app is 250mb).
Re:.NET 5.0 by ablekh on Tuesday November 10, 2020 @06:18PM (#25053416)
In the .NET context, browser-targeted deployments can have a minimal download overhead of around 2 MB, which is a far cry from 50 MB. How? Blazor. For details, see https://blog.ndepend.com/blazor-internals-you-need-to-know.
Re:.NET 5.0 by cutler on Tuesday November 10, 2020 @09:26PM (#25054887)
That's 2Mb front-end which is quite heavy.
Re:.NET 5.0 by ablekh on Tuesday November 10, 2020 @10:23PM (#25055172)
How 2 MB could be considered heavy, when visiting most websites results in much larger sizes of downloaded resources?
Re:.NET 5.0 by littlecranky67 on Wednesday November 11, 2020 @04:30AM (#25056902)
tell that to websites auto-playing videos (in muted state) or even better, using videos as page background that play without interop.
Re:.NET 5.0 by Richicoder on Tuesday November 10, 2020 @09:53PM (#25055033)
.NET has trimming now, so it is 5 MB? (Possibly less!)
Re:.NET 5.0 by svnpenn on Saturday November 14, 2020 @04:24PM (#25095759)
Nope.

Running this command:

    dotnet publish `
    -p:Configuration=Release `
    -p:PublishSingleFile=true `
    -p:PublishTrimmed=true `
    -p:RuntimeIdentifier=win-x64
gives an 11 MB file, that still requires 4 DLL as well.