Live data from Hacker News

.NET 6 is now in Ubuntu 22.04

devblogs.microsoft.com

241–250 of 351 posts

Re: .NET 6 is now in Ubuntu 22.04

#241
post #155

Earlier quoted context omitted.

C# is such a cozy language, anyone familiar with C++ or Java can instantly bang out half-decent code, and there's a ton of great features to gradually learn and use. And the performance is about as good as it gets for a language with garbage collection. Big fan.

And ASP.Net Core is an insanely fast web framework. It beats every other major framework written in a managed language by a mile. There's no way your backend will outgrow it if your workload isn't RAM-limited.

I am in the process of moving a .Net web forms to .Net core razor pages and the performance difference is insanely noticeable.

Re: .NET 6 is now in Ubuntu 22.04

#242

Earlier quoted context omitted.

It depends a bit on what tools you use, but if you've jumped the ship from VS to VSC and mainly use the dotnet cli for things then there isn't much of a difference between platforms. If you're using VS, as in really use it and all it's feature, there is going to be a massive difference. That being said, I've used .Net and C# for over a decade and it's frankly just a clunky language and toolset. It's gotten better wit…

I haven't used Go, and Gorm is new to me. I've just looked at it (with 15 years of AR experience, and a couple of EF), and it looks quite a bit like EF to me. In your mind, what makes it significantly better than EF?

I think it's the first time I've used an ORM where it was effortless. I still struggle with EF from time to time.

It obviously lacks a lot of the wider .Net features, like having easy access to ODATA for all your models.

Re: .NET 6 is now in Ubuntu 22.04

#243

Earlier quoted context omitted.

It's MIT licensed. If they do then it can be forked and community maintained. It could be similar to the mass forking of projects when Oracle acquired Sun. .NET now has a way bigger community than a lot of those projects did and they thrived.

MIT does not have a patent-grant clause though. There is a good reason projects like the Rust Language are dual-licensed under MIT AND Apache2 because only the later protects you from software patent claims. So I wouldn't be so sure about MS not having any legal means to shut down forks. Even if they might not win in court, as long as they can make up something up, they still have enough legal war money to effectivel…

Microsoft publishes a patent promise here, though: https://github.com/dotnet/runtime/blob/main/PATENTS.TXT

Re: .NET 6 is now in Ubuntu 22.04

#244
post #16

Where do you host your .net projects? I am especially interested in anything other than azure webapp and VM's/IIS.

I have two DigitalOcean sites on the same VPS just serving from kestrel behind an nginx reverse proxy and then one site on a Hetzner VPS where I was playing around with k3s.

For digitalocean I followed this post which is probably way out of date now https://www.hanselman.com/blog/publishing-an-aspnet-core-web...

For the k3s site the source is here https://github.com/EliotJones/LetsShip/blob/main/kubernetes/... though worth noting I have set up LetsEncrypt incorrectly but that's my lack of k3s understanding.

Re: .NET 6 is now in Ubuntu 22.04

#245

Earlier quoted context omitted.

It's MIT licensed. If they do then it can be forked and community maintained. It could be similar to the mass forking of projects when Oracle acquired Sun. .NET now has a way bigger community than a lot of those projects did and they thrived.

MIT does not have a patent-grant clause though. There is a good reason projects like the Rust Language are dual-licensed under MIT AND Apache2 because only the later protects you from software patent claims. So I wouldn't be so sure about MS not having any legal means to shut down forks. Even if they might not win in court, as long as they can make up something up, they still have enough legal war money to effectivel…

[deleted]

Re: .NET 6 is now in Ubuntu 22.04

#246

Earlier quoted context omitted.

And ASP.Net Core is an insanely fast web framework. It beats every other major framework written in a managed language by a mile. There's no way your backend will outgrow it if your workload isn't RAM-limited.

> And ASP.Net Core is an insanely fast web framework. It beats every other major framework written in a managed language by a mile* * In synthetic benchmarks

Ok, but how else do you compare two frameworks?

The only other real way is to write two programs that do the same thing in both. You need to put in the same degree of runtime/environment-specific optimizations (which, notably, will result in different code), but except for in trivially simple applications (eg: "TODO app") which are arguably also "synthetic", the optimizations are always going to leave room for debate.

Re: .NET 6 is now in Ubuntu 22.04

#247
post #62
post #2

It has been rumored for years that Microsoft might acquire Ubuntu. This is an interesting move though not proof of any such future merger. All of that said, it would be nice if Microsoft had the same level of cooperation with Fedora and another distro or two as well. (And where the hell is support for .NET Core on FreeBSD???)

I've always thought that a Microsoft Linux distribution would be incredibly interesting. They could give the user experience a new round of polish without being weighed down by the years of legacy support, compatibility, and cruft on Windows.

they have an internal distro on github: https://github.com/microsoft/CBL-Mariner

Re: .NET 6 is now in Ubuntu 22.04

#248
post #214

Earlier quoted context omitted.

For the most part, I think there is a lot of feature parity between the .NET and Ruby on Rails frameworks when it comes to developer tooling. As I grow older I guess I am growing more fond of statically typed languages. It's easier for my decaying/distracted brain to reason about. There is less mental overhead I suppose [might be a good blog post?] They both have a good database migration system and various generator…

I would advise against Blazor Server. In contrast to standard frontend SPA frameworks, Blazor Server requires a peristent websocket connection to each client to execute the C# code you write on the client and maintain state. I found that connection is easily/fequently disrupted resulting in an app reset, lost state, and poor user experience, to say nothing of the scalability implications. Though, for a purely back-of…

> Blazor Server requires a peristent websocket connection to each client to execute the C# code you write on the client and maintain state

Blazor Server retains the circuit for up to 3 minutes if the connection is lost, so you do not loose the connection even if the websocket connection is interrupted.

It is also not correct that it needs a websocket connection. It builds on SignalR which will use websockets if available but will fall back to other methods such as long polling to emulate a persistent connection.

Blazor Server absolutely has it's place, but you need to know when that is. You can even scale it out on multiple servers, but at least until .NET 7 you'll need to ensure "sticky" connections (the client must connect to the same server based on e.g. IP address, cookie or similar).

Re: .NET 6 is now in Ubuntu 22.04

#249
post #14

Young me would’ve lost a good bottle of Scotch over this headline - especially coming straight from Microsoft. The times sure have changed

Well, times clearly changed but the end goal remains the same.

I don't have data, however, from what I see/read, there is a tendency of developers/companies using .NET environments to just go for Azure. It looks like it comes as a big package, while it doesn't have to be like this, but hey, that's how it works especially in enterprise companies.

How much does/did it cost to port .NET to mac/Linux? Compared to what you gain just by having a few customers in the cloud, maybe crumbs: provide a good dev environment, people will clearly opt for your cloud services.

Re: .NET 6 is now in Ubuntu 22.04

#250

Question for the experienced .net folks - how is the dev experience of .net on linux vs .net on windows? Is it smooth or clunky? Pretty cool and interesting that a big linux vendor is on board with .net.

On Linux you can use Rider or VS Code both of which are able to satisfy most of your professional needs, especially when it comes to back-end and/or web dev. I'm not sure what is the situation when it comes to visualizer for XAML used in cross-plat UI frameworks like Avalonia or Uno Platform but honestly I've never relied on those because even on Windows they can never compete with something like Xcode visualizer for Swift UI.

Other than that, it is smooth and in many advanced scenarios Linux has better support than macOS, unfortunately (still decent, just has quirks).

Also, check out Native AOT in the upcoming .NET 7 because it is really nice for building small and lightweight CLI utilities in .NET and just shipping them to users like you would if they were written in C++ or Rust.

Post reply on HN