News for hackers. Stuff that matters.
Re:.NET 6 Released by sedatk on Monday November 08, 2021 @12:47PM (#29151948)
The whole runtime gets included in the binary.
Re:.NET 6 Released by kingcharles on Monday November 08, 2021 @01:48PM (#29152727)
This actually makes sense in 2021 since we have the resources to allow things like this. 20 years ago this might have seemed insane.
Re:.NET 6 Released by svick on Monday November 08, 2021 @03:38PM (#29153922)
Keep in mind that it's just one option. If you want, you can still deploy your app separately from the .Net runtime.

Also, to keep the size at least somewhat in check, unused parts of the base library are not included in the single-file mode.

Re:.NET 6 Released by cm2187 on Monday November 08, 2021 @05:46PM (#29155292)
Keeping in mind it's also a double edge sword. TLS deprecations alone will ensure your app will die after a few years if it doesn't run on an up-to-date CLR.
Re:.NET 6 Released by dotancohen on Tuesday November 09, 2021 @01:56AM (#29158580)
This sounds quite the argument for basing critical workflows only on software for which the user has both access and permission to modify the source code.
Re:.NET 6 Released by alasdair_ on Tuesday November 09, 2021 @02:18AM (#29158730)
Timezone and DST fuckery is another, I assume?
Re:.NET 6 Released by vidanay on Monday November 08, 2021 @02:01PM (#29152878)
30 years ago we used DOS and DLL Hell was a completely unknown concept. We did have to deal with himem.sys though.
Re:.NET 6 Released by justin66 on Monday November 08, 2021 @02:19PM (#29153064)
On the contrary, 30 years ago we were using Windows 3.0, which is about when dll hell started being a real thing.

(DLL hell stopped being a problem a lot sooner than you probably think, too...)

Re:.NET 6 Released by nisegami on Tuesday November 09, 2021 @10:37AM (#29163107)
>DLL hell stopped being a problem a lot sooner than you probably think, too

Does not match my experience at work unfortunately.

Re:.NET 6 Released by justin66 on Tuesday November 09, 2021 @11:36AM (#29163908)
If you're seeing this on any version of Windows made in the last 22 years or so, it's because a software developer fucked up in a really creative way. My condolences.

Sometimes the issue is that people have tended to conflate "dll hell" and "dependency hell." That's an old pet peeve of mine and I realize it doesn't matter...

Re:.NET 6 Released by ourmandave on Monday November 08, 2021 @02:09PM (#29152971)
"Insert floppy disk 435 of 880 and press [Enter] when ready..."
Re:.NET 6 Released by vidanay on Monday November 08, 2021 @02:13PM (#29153011)
Invalid media type

Abort, Retry, Fail?

FFFFFFFUUUUUUUUCCCCCCKKKKK!!!!!!

Re:.NET 6 Released by BiteCode_dev on Monday November 08, 2021 @01:09PM (#29152222)
Does this mean you need one binary per OS so that the runtime matches, or do they do some magic so that one single binary can run on all Oses ?
Re:.NET 6 Released by jonathanlydall on Monday November 08, 2021 @01:44PM (#29152670)
You create a single binary which has the runtime and dependencies self contained within.

You of course have to choose your target platform for this as it makes .exes for Windows, ELFs for Linux, etc.

If you want you can still choose to distribute IL DLLs and users then use their already installed dotnet on their machine to run them.

Re:.NET 6 Released by e12e on Monday November 08, 2021 @03:18PM (#29153729)
> You of course have to choose your target platform for this (...)

https://github.com/jart/cosmopolitan

(but, yeah, you probably want one version per target, even if hacks are cool)

Re:.NET 6 Released by sebastienros on Monday November 08, 2021 @01:34PM (#29152526)
You create one binary per OS.
Re:.NET 6 Released by Rebelgecko on Monday November 08, 2021 @08:08PM (#29156467)
How much does this add to the binary's size?
Re:.NET 6 Released by ripley12 on Tuesday November 09, 2021 @01:29AM (#29158413)
Something like 60MB if the application is not trimmed. Closer to 10MB if the application can be trimmed.
Re:.NET 6 Released by aha_throwaway on Monday November 08, 2021 @09:14PM (#29156911)
In my case about 60MB