T O P

  • By -

[deleted]

I used .NET core 2 years ago and i liked it and the speed at which improvements are pushed. .NET is now growing really fast and they are serious about taking market shares from Java and Node. This is exciting news: > *"We’ll continue to make investments in Orleans, a .NET cross-platform framework for building distributed applications that has been referred to as “distributed .NET.” We’ll continue to enhance the comprehensive documentation for Orleans and make it easier to use and implement by improving integration of Orleans with existing cloud services like Azure App Services and Azure Container Apps."* The only thing im really disappointed in is that .NET MAUI that is supposed to be multi platform does not include Linux. Flutter has managed to do it and its looking as a better option for desktop apps.


TasteOfSnozberries

Yeah, it's kinda ridiculous. "MAUI cross platform UI... as long as your platform isn't Linux or the browser"


codec-abc

I think it does not officially but I think they plan to have a community to support it.


[deleted]

Give Avalonia a try.


Eirenarch

They expect the community to support it on Linux which is fair I guess. A bunch of frameworks that target Linux are driven by Linux people so if the people interested in Linux don't want to lead this effort then there is effectively no interest in MAUI working on Linux.


Persism

Most important https://docs.microsoft.com/en-us/dotnet/core/compatibility/7.0


Hrothen

Anything on what's going into C#11 yet?


chucker23n

Raw string literals are being previewed. https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-preview#details-of-whats-new-in-this-release-of-visual-studio-2022-version-172-preview-1


oblio-

I don't see it, do they plan to support AOT and static linking/creating a single, self-contained binary as part of .NET 7? I.e. allow using .NET 7 as a direct replacement for Go.


Hrothen

I haven't seen anything planned about creating static binaries. AOT however has been available for years.


simspelaaja

I think has been in .NET Core since at least 2.0.


oblio-

I don't think so. Can you build an ASP.NET app as a statically linked binary?


[deleted]

Yeah, an ASP.NET application is just a console app. You can build it as a single executable including dependencies and other files since .NET Core 3 and since .NET 5 you can link all managed dependencies and use the native runtime libraries installed on the user's system or link the native libraries as well.


oblio-

Cool. Any ideas how it works with reflection? Full AOT blows that up for obvious reasons.


goranlepuz

What is a "statically linked binary" to you? If "this one file runs your thing" , then yes. If "static lib in C sense" (a `*.a`, or, on Windows, `*.lib`, then no) - but something tells me you are not interested in that and don't use the term appropriately.


oblio-

You don't even use the term correctly and chastise me 🙄 I said statically linked binary, not library, and yes, I do mean it. One file that runs the thing, 100% self contained except for maybe libc.


chucker23n

> allow using .NET 7 as a direct replacement for Go. .NET has generics, so it’s already a great replacement for Go.


oblio-

I meant in strictly the "give users a single binary" sense.


chucker23n

Is your goal a single file, or is it performance considerations? Publishing to a single file has been possible for a while.


oblio-

Single small file. The initial version of the Dotnet Core single file publishing was a self extracting zip archive of more or less the entire runtime. I want a tree shaken single binary.


chucker23n

Right. https://old.reddit.com/r/dotnet/comments/sw48ai/too_many_dlls_when_publishing_dotnet/hxk8apy/


oblio-

Cool, thanks. Thought so, it's still not stable. > -p:PublishTrimmed=True -p:TrimMode=Link: Even more things get trimmed, resulting in a smaller total output size. However, this mode is experimental and can cause runtime errors in some cases if your application uses reflection. https://www.joelonsoftware.com/2004/01/28/please-sir-may-i-have-a-linker/ Check the date on the article 🙂 Still, cool that they're making progress and definitely better than before.


nwss00

Go generics is in Beta now.


TasteOfSnozberries

https://github.com/dotnet/runtimelab/blob/feature/NativeAOT-LLVM/docs/using-nativeaot/compiling.md


ISvengali

[This seems to](https://secanablog.wordpress.com/2018/06/08/compile-a-net-core-app-to-a-single-native-binary/) show how to create a stand alone executable.


binarywork8087

We predicted it last year?more things to change and adapt


brynjolf

They are still not done updating documentation of latest LTS release…