Live data from Hacker News

.NET 10 Preview 6 brings JIT improvements, one-shot tool execution

infoworld.com

101–110 of 231 posts

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#101
post #38

Earlier quoted context omitted.

Yea that's why I write all my programs in C using the win32 APIs. It has a lifetime even longer than .NET Framework 4.8.1! I'll never have to change or adapt to new things. /s

I change things if it’s necessary, not for the sake of using the newest version. Now I have to update software and all its dependencies without a real benefit. It’s equivalent of buying a new PC because MS tries to force Windows 11. Lets waste lots of time and resources for nothing.

Just the amount of perf improvements they have added since .NET 4.8, year after year, is staggering.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#102

Earlier quoted context omitted.

This thing has barely changed in the ~30 years I've been using it. There's definitely room for some more improvements.

You can divide visual studio into 4 era's. The vs6 (we smashed all of our dev tooling together and its integrated decently) era, the vs2002/vs2003/vs2005 (we broke it all and you will like it and never speak of C++ again), vs2010 era (we fixed all of that from 2002 sorry about that), vs2017/vs2022 (it updates from the internet and takes forever to install and now does everything). The problem is MS is unwilling to st…

I prefer VS Code... though MS has for better or worse kept the .Net tooling relatively weak. I'll use Rider or VS on a few occasions... then retreat back to Code as much as I can.

For split web projects, definitely work on the web ui in VS Code.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#103

Earlier quoted context omitted.

Do you know about any sizeable open source projects written in C#, other than what Microsoft has produced? I rarely come across anything written in it.

Jellyfin / Emby A lot of the *arr tools like Sonarr Bitwarden and Keepass

Kavita (self hosting for books/comics)

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#104

.NET was the most sane programming ecosystem that I worked in. Great CLI, great package manager, very good stdlib, strong IDEs/Debuggers, etc. but sadly interesting jobs like OSes, databases and compilers are way less common than in C++ world :(

Do you know about any sizeable open source projects written in C#, other than what Microsoft has produced? I rarely come across anything written in it.

https://github.com/MonoGame/MonoGame (runs even on consoles, which is rare for open source game frameworks and engines)

https://github.com/SubtitleEdit/subtitleedit

https://github.com/jellyfin/jellyfin

https://github.com/AvaloniaUI/Avalonia

https://github.com/bitwarden/server

https://github.com/unoplatform/uno

https://github.com/files-community/Files

https://github.com/NickeManarin/ScreenToGif

https://github.com/DevToys-app/DevToys

https://github.com/d2phap/ImageGlass

https://github.com/ShareX/ShareX

https://github.com/duplicati/duplicati

https://github.com/OpenRA/OpenRA

https://en.wikipedia.org/wiki/Ryujinx

https://sourceforge.net/projects/keepass/

https://github.com/orchardcms

https://github.com/piranhacms/piranha.core

https://github.com/umbraco/Umbraco-CMS

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#105
post #32

My favorite .NET 10 feature so far is not within the .NET library itself, but `dotnet tool exec` to run C# files as scripts without a build step. This has been available in F# for a long time via `dotnet fsi`, and for C# also via the third party cs-script tool. It took a surprisingly long time to officially reach the primary .NET language! I only really wish C# would’ve been directly integrated as an alternative scri…

"dotnet tool exec" is not that feature; you're thinking of https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-... which they added to "dotnet run". "dotnet run my-cool-thing.cs" "dotnet tool exec" is so you can run third party command line tools like csharpier that previously required "dotnet tool install" before you could use them. For example, in https://csharpier.com/docs/Installation you can now simply d…

dotnet run *.cs is my favorite new feature for scripting. It has basically replaced powershell for me. It's trivial to script powerful operations now.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#106

I haven't used C#/.NET since .NET 4 - I remember it was great, yet heavily tied into Visual Studio, and forget about using CLI for things like most other languages. It was all GUI or nothing. Insurmountable XML files. How are things these days with .NET 10! Jesus, 10! Dudes who use it daily, what is your favorite feature you think?

My favorite feature, especially considering the past of "heavily tied into Visual Studio" is the platform independent nature of (most of) "modern" dotnet. That is to say, I run Fedora on my laptop, and I do not want Windows, yet I don't feel like a second class citizen and dotnet runs well and is available from repositories that Microsoft provides for various Linux distributions (it just hit me how strange this is, for _Microsoft_ to offer official repositories for Linux operating systems...).

I also really like that its development is fairly open (it's on github). From a more technical point of view, I think C# is a slightly better Java. A pretty nice language overall. It's not gui-or-nothing with dotnet core so it's not too difficult to create workflows for ci/cd pipelines, although the .net framework solutions we still have aren't too much harder to script: msbuild is pretty capable.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#107
post #32

My favorite .NET 10 feature so far is not within the .NET library itself, but `dotnet tool exec` to run C# files as scripts without a build step. This has been available in F# for a long time via `dotnet fsi`, and for C# also via the third party cs-script tool. It took a surprisingly long time to officially reach the primary .NET language! I only really wish C# would’ve been directly integrated as an alternative scri…

Now I'm curious if C#/.Net 10 is smart enough to ignore the shebang line. Personally, I've tended to use Deno/TS for my more advanced shell scripting... the main runtime is a single executable that works fine in user context, and dependencies can be loaded/cached at first run. Of course, with C# as a shell script, you'd likely be limited to just in the box libraries or have to setup a project for sake of running a sc…

https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...

https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...

"dotnet run app.cs" natively supports shebang lines and nugets. The only requirement is to make sure the .net sdk is installed on your computer.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#108

I haven't used C#/.NET since .NET 4 - I remember it was great, yet heavily tied into Visual Studio, and forget about using CLI for things like most other languages. It was all GUI or nothing. Insurmountable XML files. How are things these days with .NET 10! Jesus, 10! Dudes who use it daily, what is your favorite feature you think?

Favorite recent language feature is a big investment in C# pattern matching. It's a big feature from the functional programming world rare to see in "Enterprise" languages. Favorite recent runtime feature is all the cool low level stuff opened up by Span (and Memory ). It has a similarity to Rust borrowing, but well integrated into the CLR's existing type system. It has opened all sorts of performance code possibilit…

Definitely change for F# code, some of those Span overloads broke type inference. Also, certain APIs even removed their non-Span overloads between .NET versions, which was a straight up breaking change for every language other than C#.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#109
post #63

Earlier quoted context omitted.

Do you know about any sizeable open source projects written in C#, other than what Microsoft has produced? I rarely come across anything written in it.

It's a curious thing, the .NET ecosystem. The overwhelming majority of it's ecosystem seems to be dominated by Microsoft first-party libraries and frameworks. 3rd party libraries and frameworks seem to either get swallowed up by Microsoft, killed, or never reach critical-mass. Often in the .NET ecosystem, it seems there is exactly one library or framework for thing $X or $Y. Whereas in the JVM ecosystem, you have 30+…

It's weird you using logging as there used to be 3/4 different libraries people used (nlog, log4net, elmah, another one I forget?).

Then serilog came out and pretty much everyone switched to that in a very short period.

Re: .NET 10 Preview 6 brings JIT improvements, one-shot tool execution

#110

.NET was the most sane programming ecosystem that I worked in. Great CLI, great package manager, very good stdlib, strong IDEs/Debuggers, etc. but sadly interesting jobs like OSes, databases and compilers are way less common than in C++ world :(

I agree. The stability comes from its ecosystem though. Enterprise Software. Where things like meticulous use of Omit and Task are common place and really REALLY bad things happen if you fuck up. But besides that, there’s a healthy gamedev community that embraced C# early and have been using it ever since. There’s C++ MFC guys that got duped into WPF and have been supporting it ever since. Winforms devs that are stil…

What's Omit refer to in this context?
Post reply on HN