Live data from Hacker News

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

infoworld.com

111–120 of 231 posts

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

#111
post #91

Earlier quoted context omitted.

The last few .NET updates have been pretty much effortless updates for us. These are internal web apps and not using really esoteric C# features but that probably describes a reasonably large percentage of enterprise .NET adoption.

I don't think they introduced any breaking changes after .NET 6

The only breaking change for us was how .NET 7 introduced [FromServices] which causes controller methods to use dependency injection for attributeless parameters. Confused me at first since it was a rather subtle update that didn't break anything until runtime.

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

#112

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?

> NET 10! Jesus, 10!

Well, spiritually this is the 13th(?) major version of .NET (possibly more if we count Silverlight's runtime). You missed the part when there was .NET Core 1-3 alongside the old .NET Framework 4.8., and then they skipped Core 4 and stopped supporting Framework so they could finally fix their naming scheme.

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

#113
post #28

Earlier quoted context omitted.

Since you mention great CLI - is there a CLI tool that is free/cross platform that works like prettier ? I found https://csharpier.com/ but have never heard of anyone using it. Also not sure how it works with linters like roslynator or stylecop ? This is something I miss very much when coming back from TS, other languages also have better formatters. C# is very tied to editors/IDEs which is a nightmare in teams where…

dotnet format [0] exists and is maintained by the .NET team. It is different from Prettier in that it is much more configurable, but it gets the job done for us. It does integrate language services and can automatically apply code fixes for custom analyzers. I have not explicitly tried roslynator or stylecop, but I suspect this would work as expected. [0] https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-f..…

The problem is that dotnet format is horribly slow. So much so that it's only useful as a precommit hook

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

#114

Earlier quoted context omitted.

> .NET nowadays has a serious adoption problem It's seriously going to make people question the future of the platform. Look at Microsoft's actions, not their words. TS Compiler: Go New TUI Editor: Rust Winget: C++ (this would have been a great candidate for .NET) At least PowerToys is C#. .NET is great, but why isn't it good enough for Microsoft? The company that historically has had such a strong culture of dogfood…

The issue was in the beginning they didn’t think interop with C/C++ was value add. People complained and they added “Managed C++” which unfortunately influenced C++03’s design a lot. It wasn’t until C++11 that Microsoft gave up. You couldn’t effectively interop with C++ without writing a managed C++ wrapper, which only worked on windows. They added support for P/Invoke to aid in Win32 calls (shell.dll, user32.dll) as…

Interestingly, the Rust windows crate is generated from an MSIL assembly. And same metadata might be used to generate C# bindings thanks to cswin32 [1] project. The meta-assembly generation (Win32 metadata project) is based on clangsharp and it's fairly straightforward to generate interop code for native Windows libraries. Some time ago I described this process on my blog for the detours library [2]

[1] https://github.com/microsoft/CsWin32

[2] https://lowleveldesign.org/2023/11/23/generating-c-bindings-...

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

#115

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…

VS2017 was the introduction of the modern VS installer that is way faster than the prior ones.

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

#116

Earlier quoted context omitted.

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.

I used to like VS Code, but something about it changed and it does not feel as snappy as it once did for me. Now I prefer Zed.

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

#117

reminder the .net compiler is IP of microsoft and they state this clearly when you invoke it on any platform other than windows. you are merging your company with microsoft and windows if you use it.

> you are merging your company with microsoft and windows if you use it

That's not how that works. Nothing about the .NET license entitles Microsoft to what you make with the tooling.

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

#118

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.

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/DevT…

https://github.com/SM64-TAS-ABC/STROOP

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

#119

.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.

Ryujinx, a state-of-the-art Switch 1 emulator, was open source and written in C#
Post reply on HN