TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

.NET 8 Standalone 50% Smaller On Linux

168 pointsby tomaszsover 1 year ago

11 comments

solarkraftover 1 year ago
What the .NET team does on the technical side is almost universally wonderful. They&#x27;ve (ironically?) been a bit more successful than the Java folks at establishing multiple serious languages of different kinds running on and interoperating via the same runtime.<p>But it&#x27;s still a Microsoft project and their sword keeps looming over its head. There have been some heavy-handed anti-developer choices in the past and one can safely assume that that has been their EEE-genes kicking in and it will probably not get better, but worse, the more they build up a community they feel they have (or should have) control over.<p>Wouldn&#x27;t want to dive into that pool.<p>.NET is only as good as the parts Microsoft doesn&#x27;t have too much control over and that doesn&#x27;t even include the VSCode extension (or VSCode itself - Use VSCodium and you&#x27;ll see).
评论 #38233100 未加载
评论 #38231520 未加载
评论 #38230819 未加载
评论 #38229729 未加载
0xcoffeeover 1 year ago
They also added a TimeProvider to help with testing time objects. Maybe one day we will also get an FileSystemProvider..<p>TimeProviderFake: <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;api&#x2F;microsoft.extensions.time.testing.faketimeprovider?view=dotnet-plat-ext-8.0&amp;viewFallbackFrom=net-8.0" rel="nofollow noreferrer">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;api&#x2F;microsoft.exten...</a><p>ReleaseNotes: <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;core&#x2F;whats-new&#x2F;dotnet-8#time-abstraction" rel="nofollow noreferrer">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;core&#x2F;whats-new&#x2F;dotn...</a>
评论 #38228459 未加载
评论 #38228814 未加载
pansa2over 1 year ago
2MB for a standalone “Hello World” binary in C# is a similar size to one in Go. Do both languages produce similar-sized binaries for larger projects as well?<p>If so, would C# be a good choice for writing cross-platform command-line applications?<p>It seems that C# can produce easily-distributable binaries, while also hitting a sweet-spot in language design - not super complex like C++ or Rust, and also not overly simplistic like C or Go.
评论 #38230103 未加载
评论 #38229435 未加载
andrewstuartover 1 year ago
Who is using .NET on Linux?<p>I&#x27;m interested to hear success stories.<p>Sounds like a a great way to build and deploy applications.
评论 #38228732 未加载
评论 #38228703 未加载
评论 #38229114 未加载
评论 #38228674 未加载
评论 #38229101 未加载
评论 #38229002 未加载
评论 #38229336 未加载
评论 #38229629 未加载
评论 #38229511 未加载
评论 #38231844 未加载
评论 #38228761 未加载
评论 #38228793 未加载
评论 #38228846 未加载
评论 #38229689 未加载
评论 #38229144 未加载
评论 #38233107 未加载
评论 #38229031 未加载
评论 #38228949 未加载
评论 #38228708 未加载
评论 #38232815 未加载
评论 #38229467 未加载
评论 #38229839 未加载
评论 #38229627 未加载
评论 #38228781 未加载
评论 #38232883 未加载
评论 #38228943 未加载
评论 #38228695 未加载
评论 #38229046 未加载
评论 #38228690 未加载
评论 #38233788 未加载
评论 #38229667 未加载
评论 #38228822 未加载
评论 #38230800 未加载
评论 #38228950 未加载
评论 #38228665 未加载
评论 #38229187 未加载
fabian2kover 1 year ago
This is for native AOT binaries, not for the typical case. Though this release and the previous ones did contain improvements for trimming binaries, which is what you need to use to make non-AOT binaries smaller.
评论 #38228567 未加载
KacharKhanover 1 year ago
Everything dotnet is doing for cross-platform is great and better than alternatives --- except one HUGE issue: There is no official GUI on Linux. Linux&#x27;s exclusion from MAUI (while 25% of world&#x27;s developers&#x27; primary dev machine is a Linux system according to Stack overflow survery) creates a huge hurdle for those developing on Linux to build any cross platform GUI app with dotnet. If I , as a developer developing a windows&#x2F;mac&#x2F;mobile app with official dotnet, am using Linux for development , I cannot create a GUI app. Hey dotnet folks! -- let me put a god damn button on the screen! Sincerely A Linux dev [Don&#x27;t get at me with Avalonia&#x2F;Uno etc. I am talking about &quot;official&quot; GUI. A graphical user interface is not a specialized domain, or some niche to be left for others to fill. It is a core element of a user facing app. ]
评论 #38244432 未加载
评论 #38236622 未加载
评论 #38236602 未加载
NicoJuicyover 1 year ago
Anyone knows other alternatives for Azure Functions, but for DIY hosting? ( eg. OpenFaas - <a href="https:&#x2F;&#x2F;www.openfaas.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.openfaas.com&#x2F;</a> )
评论 #38240411 未加载
viraptorover 1 year ago
I&#x27;ve just tried to move an existing project to this and VS complained that the SDK doesn&#x27;t support this version, even though I can create new projects with .net8. (preview SDKs are enabled) Is that some real limitation, or is VS being weird here?<p>There&#x27;s <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=ms-dotnettools.upgradeassistant" rel="nofollow noreferrer">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=ms-dotne...</a> out there, but I haven&#x27;t tried it yet.
评论 #38229401 未加载
rafaelmnover 1 year ago
This is a result of their focus on better serverless support. Having done that recently these are really welcome improvements along with AOT stuff for EF.
tomaszsover 1 year ago
You can find summary of the release in my article: <a href="https:&#x2F;&#x2F;tomaszs2.medium.com&#x2F;net-8-standalone-net-apps-now-50-smaller-on-linux-861fde887415" rel="nofollow noreferrer">https:&#x2F;&#x2F;tomaszs2.medium.com&#x2F;net-8-standalone-net-apps-now-50...</a>
fwsgonzoover 1 year ago
Is static linking supported now? It&#x27;s the one blocker for me to use C# in weird places. I&#x27;m good at hacking the underlying environment to make it work, but dynamic loading is not on the table.
评论 #38231012 未加载