Live data from Hacker News

Performance Improvements in .NET 6

devblogs.microsoft.com

191–200 of 256 posts

Re: Performance Improvements in .NET 6

#191
post #86

Earlier quoted context omitted.

Depends on what OP is familiar with. If they know/like functional programming, I'd recommend F# highly. If not... Yeah go with C#. Then later learn F# because it's absolutely kick ass :)

An experienced functional programmer can learn F# in a minute, which is fine for console programs. But I tried to write a basic GUI program in F# on Linux and gave up after I reached my googling limit.

To add to the other comment, how about Fabulous?

https://github.com/fsprojects/Fabulous

Re: Performance Improvements in .NET 6

#192

I'm going to pile in too late and sing the virtues of .NET core or whatever its called now. Deployment of web apps to containers is a breeze, the language is modern feeling. Roslyn is about the most awesome thing I have played with. Razor pages are a breeze compared to the giant piles of dependency hell that client side SPAs or node have become. It feels lean and mean and I can be sitting at a debian box or a windows…

All upcoming UI frameworks by MS are still hung up on XAML. I get that their existing userbase is heavily invested in XAML, but in my experience XAML doesn't add much value, just unnecessarily layer of complexity, that lacks expressiveness of a programming language and makes interoperability between UI and code more convoluted. There is some "experimental" support for code based UI composition in MAUI, but since XAML…

XAML has always just been an option, for both Xamarin and MAUI. I've always done UI in code and not had any issues.

Re: Performance Improvements in .NET 6

#193

Earlier quoted context omitted.

You have never been required to use XAML, however. XAML is just a tool to allow you to describe UI API calls using XML in a way that flows well for both humans and external tooling. If you don't like XAML, just call the same exact API with C#. I don't even understand why you say "hung up on", XAML is probably the only compiles-to-code UI API I've ever used that actually does what it says it does; I've used similar to…

When I was using it, all documentation samples (and nearly all other resources) were for XAML which made it unnecessarily hard to use API in pure C#. IMO, UI development tools are often not good for anybody. Designers are much more productive using specialized UI design applications like Sketch, Figma, Adobe XD etc. Who is responsible implementing the design depends on the company/workflow. > XAML is just a tool to a…

Not the biggest fan of XML either. My primary objections against "simple" XML is repeating element names in open and close tags, the noise of , and (in the context of a UI tree) confusion over whether to put element modifiers as XML attributes (strings only) or nested elements (verbose, looks like an object rather than an attribute). And when you bring in namespaces, it gets more verbose and unreadable.

I've actually managed to make "UI in code" somewhat manageable by laying out my UI code in a tree mirroring the widget tree. One issue is waiting for rebuilds, another is difficulty navigating the "big picture" of my code, mapping between on-screen UI and code mentally or through an Inspect Element equivalent.

What do you think about QML?

Re: Performance Improvements in .NET 6

#194
post #137
post #88

Earlier quoted context omitted.

What are you talking about? WPF is still supported and a viable way to implement UI components. Same for WinForms. UWP never replaced them. What they are doing with WinApp SDK and WinUI is to extract features that were packaged with UWP to make them available to any type of Windows application. Xamarin is also still a thing, MAUI will be a thing in the future, Uno is another option, Avalon too. There is a lot of opti…

While true in spirit, the GitHub and developer voice tickets kind of show the actual state of affairs, which kind of saddens me. It feels like desktop teams are running into all possible solutions to see what sticks, instead of fixing what we had.

Yes, I want to believe in MAUI but the current state and dev process are very concerning. I don't get a good feeling that theres a clear understanding of how Xamarin "failed" (which it had to at some level for it to be replaced) in order to avoid the same issues. I'm also really concerned how soon the cutover is supposed to be (with only 1 year of Xamarin support after) and the current state of MAUI.

Re: Performance Improvements in .NET 6

#195
post #137

Earlier quoted context omitted.

While true in spirit, the GitHub and developer voice tickets kind of show the actual state of affairs, which kind of saddens me. It feels like desktop teams are running into all possible solutions to see what sticks, instead of fixing what we had.

I would agree with your last sentence, that's a very Microsoft way to handle things: "Hey, look at all of this! You can implement your application USING YOUR FAVORITE TOOLS! Isn't that great that we give you the opportunity to evaluate 36 different framework to see which one is THE BEST for your UNIQUE situation?!". It's a complete mess and the whole thing feels direction-less but I cannot agree that no good tool exi…

Blazor Desktop makes a lot of sense to me. Basically: Blazor Server is getting pretty good and it’s easy to serve it up to a local webview so why not make that an officially supported use case?

Re: Performance Improvements in .NET 6

#196
post #107
post #39

WinForms and its Visual Studio designer are still broken, WPF is still riddled with bugs and was declared obsolete in ~2017 in favor of UWP, UWP is marked obsolete in favor of WinUI, and WinUI's OSS release was postponed just two days ago because it's not ready. Microsoft is marketing .NET 6 as the replacement for .NET Framework but you still cannot properly do desktop UI with it. I honestly don't understand why they…

As far as UI in .NET in general goes they seem to be throwing stuff at the wall to see what sticks, and no one project seems to have a lot of resources dedicated to it. I imagine this is because it’s simply not a priority for the .NET team. Maybe it’s undervalued a bit, or maybe it’s making the best with the resources they have.

For what it’s worth, WPF and WinUI are owned by the Windows team not .NET.

I suspect it’s less “not a priority” and more “building a good cross-platform UI framework is a colossal amount of work”.

Re: Performance Improvements in .NET 6

#198
post #141
post #49

Earlier quoted context omitted.

They still have problems with listening. It got much better but they often do not hear or understand when it does not fit into the world picture of their product managers. This is human (and in that level not bad or malicious) but they are a bit too proud for it.

I can vouch for it, given my failed attempts that IDL gets first class development experience given COM, UWP and C++/WinRT. It is up for the community to provide syntax highlighting for a 30 year old language.

That’s on the Windows team, not the .NET team.

Re: Performance Improvements in .NET 6

#199

I'm going to pile in too late and sing the virtues of .NET core or whatever its called now. Deployment of web apps to containers is a breeze, the language is modern feeling. Roslyn is about the most awesome thing I have played with. Razor pages are a breeze compared to the giant piles of dependency hell that client side SPAs or node have become. It feels lean and mean and I can be sitting at a debian box or a windows…

Microsoft should either use Flutter or make a C# version of something like Flutter. Its simple to understand and doesn't have any magic xaml tag to make things work.

Re: Performance Improvements in .NET 6

#200

The problem with .NET Core is that while the runtime is truly multiplatform, the development experience is not. The performance improvements on each release are trully impressive, but I think at this point the focus should go towards a better development experience. Developing on VS Code is such a hurdle thanks to the Omnisharp language server that constantly crashes, and the project does not seems to be among MS top…

Agreed that OmniSharp is inexplicably terrible. But Rider is a very good cross-platform alternative.
Post reply on HN