Live data from Hacker News

.NET 9 Is Out

github.com

11–20 of 40 posts

Re: .NET 9 Is Out

#11
post #9
post #7

Earlier quoted context omitted.

Are there others? Edit: include ;-) at the end. Client filtered it out...

Yes. There are three "official" .NET languages: C#, Visual Basic, and F#. https://dotnet.microsoft.com/en-us/languages

RIP J#

Re: .NET 9 Is Out

#12

They didn't add anything significant to the language this year. Maybe next year we will get new extensions feature.

I think the new locking abstraction could be considered somewhat significant.

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

https://github.com/dotnet/runtime/issues/34800

https://github.com/dotnet/runtime/issues/34812

Re: .NET 9 Is Out

#13
post #7
post #3

Earlier quoted context omitted.

Did you mean C# the language?

Are there others? Edit: include ;-) at the end. Client filtered it out...

Argh, my client omitted a wink smiley I've included at the end . It was meant as a joke.

Re: .NET 9 Is Out

#14
post #4

https://devblogs.microsoft.com/dotnet/announcing-dotnet-9/ Large performance improvements.

I'd be interested in seeing .net9 vs Java 22 vs Go vs Rust. But this probably won't happen. Simple hello world, Graphql, Grpc, RESTful api with a simple model.

And then spice up the concurrency and measure memory consumption as well, a 24h test.

Re: .NET 9 Is Out

#17
It's always a bit amusing to see comments like "ooh, large performance improvements, that's great" and "meh, no new shining language features, maybe next year" next to each other, but it does show that there is a healthy variety in the user base.

Re: .NET 9 Is Out

#18
post #4

https://devblogs.microsoft.com/dotnet/announcing-dotnet-9/ Large performance improvements.

Stephen Toub does an impressive performance deep dive blog post [0] every release. It's over 300 pages long! [0] - https://devblogs.microsoft.com/dotnet/performance-improvemen...

Yeah, these posts are totally wild. The amount of work that goes into them blows my mind.

Re: .NET 9 Is Out

#19
post #9
post #7

Earlier quoted context omitted.

Are there others? Edit: include ;-) at the end. Client filtered it out...

Yes. There are three "official" .NET languages: C#, Visual Basic, and F#. https://dotnet.microsoft.com/en-us/languages

Wow... I keep forgetting that VB.net is still a thing. Pretty much everyone who was writing ASP code before the switchover adopted VB.net and then flipped over to C# around 2005 (.NET version 2).

Re: .NET 9 Is Out

#20

They didn't add anything significant to the language this year. Maybe next year we will get new extensions feature.

Is this the feature that would let you put extension properties on everything?

The most obvious way to store backing fields for arbitrary objects is to have a global concurrent dictionary that stores weak keys, and a compiler-generated class to store the backing fields as the value. But then you have a performance problem of needing to do a lookup from a weak-concurrent-dictionary every time you access any extension backing field.

The higher-performance alternative would be a second shadow variable in code that uses the extension backing fields. Do your dictionary lookup, then cache the backing-fields-object so you don't need to redo lookups for it. But that would be function-local.

If the extension property doesn't need a new backing field, it's trivial, you're just making a new getter and setter function pair.

Post reply on HN