Visual Studio 2022: just installed

Discussion of chess software programming and technical issues.

Moderator: Ras

Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Visual Studio 2022: just installed

Post by Chessnut1071 »

For those using the Community version of VS, the 2022 version is out. I just installed it hoping for a speed increase. It not any faster on C#, but, it supports Net 6 and includes important bit operations that Net 4 doesn't. Those developing bitboard engine may want to install the new version. It's a lot more colorful and has new editing features. I have no idea if C++ has anything new, I won't be switching to that for a few more months. I'm disappointed in the speed, at least for C#. I can't see any significant difference.
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Visual Studio 2022: just installed

Post by R. Tomasi »

Chessnut1071 wrote: Tue Nov 30, 2021 4:51 am For those using the Community version of VS, the 2022 version is out. I just installed it hoping for a speed increase. It not any faster on C#, but, it supports Net 6 and includes important bit operations that Net 4 doesn't. Those developing bitboard engine may want to install the new version. It's a lot more colorful and has new editing features. I have no idea if C++ has anything new, I won't be switching to that for a few more months. I'm disappointed in the speed, at least for C#. I can't see any significant difference.
Is this the real deal now, or still the preview? I installed the preview two weeks ago and it feels/looks a lot like the 2021 version and seemed pretty stable to me. When compiling with clang it uses clang 12 (same as the current 2021 version, if memory serves well), so no speed improvement. Not sure I'm going to upgrade fully to 2022 version now, since I like to use Intels VTune performance analyzer, but that in its latest version only integrates with the 2021 family of VS.
User avatar
Bo Persson
Posts: 257
Joined: Sat Mar 11, 2006 8:31 am
Location: Malmö, Sweden
Full name: Bo Persson

Re: Visual Studio 2022: just installed

Post by Bo Persson »

R. Tomasi wrote: Tue Nov 30, 2021 10:55 am Is this the real deal now, or still the preview?
Both. :-)

Visual Studio 2022 version 17.0 is the real deal. The main difference is that the IDE is now a 64-bit process. The C++ compiler is not all that different from the VS2019 update released just a few weeks earlier.

And immediately there is also a 17.1 Preview.
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Visual Studio 2022: just installed

Post by R. Tomasi »

Bo Persson wrote: Tue Nov 30, 2021 2:12 pm
R. Tomasi wrote: Tue Nov 30, 2021 10:55 am Is this the real deal now, or still the preview?
Both. :-)

Visual Studio 2022 version 17.0 is the real deal. The main difference is that the IDE is now a 64-bit process. The C++ compiler is not all that different from the VS2019 update released just a few weeks earlier.

And immediately there is also a 17.1 Preview.
And there's me working with VS2019, being convinced it's VS2021 (which never existed..) :lol: :oops:
User avatar
silentshark
Posts: 327
Joined: Sat Mar 27, 2010 7:15 pm

Re: Visual Studio 2022: just installed

Post by silentshark »

Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Visual Studio 2022: just installed

Post by dangi12012 »

silentshark wrote: Sat Dec 04, 2021 3:13 pm Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
The C++ compiler MSVC is the same. The C# compiler Roslyn is the same.
The IDE is new and has new features:
https://docs.microsoft.com/en-us/visual ... ew=vs-2022

But in 1 year or so there will be updates for VS2022 and VS2019 wont get the newest compiler updates anymore.

Also I am old enought to remeber they switched from colored icons in vs2010 to monochrome (which is horrible) icons. It took the whole decade until 2022 that they are all back to colored - and the monochrome is gone thankfully. Its like windows that switches between rounded and square corners every decade or so.

https://docs.microsoft.com/en-us/visual ... ew=vs-2022
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Re: Visual Studio 2022: just installed

Post by Chessnut1071 »

dangi12012 wrote: Sat Dec 04, 2021 4:19 pm
silentshark wrote: Sat Dec 04, 2021 3:13 pm Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
The C++ compiler MSVC is the same. The C# compiler Roslyn is the same.
The IDE is new and has new features:
https://docs.microsoft.com/en-us/visual ... ew=vs-2022

But in 1 year or so there will be updates for VS2022 and VS2019 wont get the newest compiler updates anymore.

Also I am old enought to remeber they switched from colored icons in vs2010 to monochrome (which is horrible) icons. It took the whole decade until 2022 that they are all back to colored - and the monochrome is gone thankfully. Its like windows that switches between rounded and square corners every decade or so.

https://docs.microsoft.com/en-us/visual ... ew=vs-2022
Any ideas on how to get BitScanForward working on VS C# 2022? I included System.Numerics in the assembly list; however, I can't seem to get it working and have to rely on a 64 iteration loop which is slow. I think 2022 is Net 7 which I thought included BSF.
Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Re: Visual Studio 2022: just installed

Post by Chessnut1071 »

silentshark wrote: Sat Dec 04, 2021 3:13 pm Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
Unfortunately, the speed is identical on C#. We were supposed to get a slew of new bit operations; however, I can't seem to get them working, especially BitScanForward, which is really needed for bitboards.
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Visual Studio 2022: just installed

Post by dangi12012 »

Chessnut1071 wrote: Sat Dec 04, 2021 5:52 pm
dangi12012 wrote: Sat Dec 04, 2021 4:19 pm
silentshark wrote: Sat Dec 04, 2021 3:13 pm Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
The C++ compiler MSVC is the same. The C# compiler Roslyn is the same.
The IDE is new and has new features:
https://docs.microsoft.com/en-us/visual ... ew=vs-2022

But in 1 year or so there will be updates for VS2022 and VS2019 wont get the newest compiler updates anymore.

Also I am old enought to remeber they switched from colored icons in vs2010 to monochrome (which is horrible) icons. It took the whole decade until 2022 that they are all back to colored - and the monochrome is gone thankfully. Its like windows that switches between rounded and square corners every decade or so.

https://docs.microsoft.com/en-us/visual ... ew=vs-2022
Any ideas on how to get BitScanForward working on VS C# 2022? I included System.Numerics in the assembly list; however, I can't seem to get it working and have to rely on a 64 iteration loop which is slow. I think 2022 is Net 7 which I thought included BSF.
You have BSF! :roll: :roll:
Just use .net core and System.Runtime.Intrinsics.X86.Bmi1.X64.TrailingZeroCount(value);
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Chessnut1071
Posts: 313
Joined: Tue Aug 03, 2021 2:41 pm
Full name: Bill Beame

Re: Visual Studio 2022: just installed

Post by Chessnut1071 »

dangi12012 wrote: Sat Dec 04, 2021 6:08 pm
Chessnut1071 wrote: Sat Dec 04, 2021 5:52 pm
dangi12012 wrote: Sat Dec 04, 2021 4:19 pm
silentshark wrote: Sat Dec 04, 2021 3:13 pm Does 2022 produce faster executables (compared with 2019)? what have people found?

Regards,
Tom
The C++ compiler MSVC is the same. The C# compiler Roslyn is the same.
The IDE is new and has new features:
https://docs.microsoft.com/en-us/visual ... ew=vs-2022

But in 1 year or so there will be updates for VS2022 and VS2019 wont get the newest compiler updates anymore.

Also I am old enought to remeber they switched from colored icons in vs2010 to monochrome (which is horrible) icons. It took the whole decade until 2022 that they are all back to colored - and the monochrome is gone thankfully. Its like windows that switches between rounded and square corners every decade or so.

https://docs.microsoft.com/en-us/visual ... ew=vs-2022
Any ideas on how to get BitScanForward working on VS C# 2022? I included System.Numerics in the assembly list; however, I can't seem to get it working and have to rely on a 64 iteration loop which is slow. I think 2022 is Net 7 which I thought included BSF.
You have BSF! :roll: :roll:
Just use .net core and System.Runtime.Intrinsics.X86.Bmi1.X64.TrailingZeroCount(value);
I get the message not available on 7.3, use 9.0 or higher. Are you using VS 2022?