HNHacker News
TopNewBestAskShowJobs

netacean

22 karma · joined March 24, 2020

submissionscomments
netacean··on Support Single-File Apps in .NET 5
Don't want to go into much detail here but it involves ocean vessels.
netacean··on Support Single-File Apps in .NET 5
> Once you've deployed the runtime and dependencies, you can only redeploy your application DLLs.

We looked into that but we can't run with an unpatched runtime. And servicing the runtime involves installing a huge package several times a year.

netacean··on Support Single-File Apps in .NET 5
I just really wish they start investing into true static compilation for .NET.

Some serious projects [1] started adopting CoreRT [2], despite Microsoft's neglect for their own runtime. CoreRT seems to really deliver on the single-file fast-startup small-size .NET promise. Getting this project folded into the LTS .NET 6 release should be a priority.

The source generators [3] that are coming to .NET 5 easily cover 99% of our Reflection.Emit use cases, so the JIT is going to be more of a legacy burden once .NET 5 comes out.

I want Go's small size, fast compile times, fast startup, without Go's bs (explicit error checking, seriously?).

Pieces of our software get deployed over a satellite link so yeah, megabytes matter (and that's why I don't even dare to propose using .NET for those parts). Sharing code with the rest of our .NET stack is a PITA though so people are getting itchy to rewrite the rest of our .NET stuff in Go for better sharing (the Reflection.Emit parts would be replaced with "go generate" which is... a source generator). It would be good to get some clarity on the static compilation roadmap in .NET because I like my job, but I also don't want to become a fulltime Go developer.

[1] https://github.com/dotnet/corert/issues/7200#issuecomment-62... [2] https://github.com/dotnet/corert [3] https://devblogs.microsoft.com/dotnet/introducing-c-source-g...