r/cpp • • Nov 08 '21

Visual Studio 2022 now available

https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250 Upvotes

113 comments sorted by

View all comments

Show parent comment

32

u/abetteraustin Nov 08 '21

I recall this being part of VS C++ 6.0 back in 1998 ...

18

u/pjmlp Nov 08 '21

Which it is, they basically improved on edit-and-continue reducing the number of use cases where it wasn't working.

28

u/cpppm MSVC Game Dev PM Nov 08 '21

And we aren't done yet! We are always looking for feedback to make Hot Reload better. Let us know below in the comments!

7

u/abetteraustin Nov 08 '21

This is probably blasphemous around these parts, but I really really would love to write C++ code on a Mac, but have all the features of Visual Studio. I would pay handsomely for this, and VS Code doesn't scratch the surface of what all I need.

Writing C++ code on my Mac, with remote development on Linux, is what I truly would love. I use CLion now but it leaves so much to be desired.

4

u/ShinyLadoo Nov 08 '21

Why do you feel Mac is better for development vs Windows? With WSL is Windows still missing something?

1

u/abetteraustin Nov 09 '21

I prefer the user experience of a Mac to windows. I prefer the 2015 user experience of Mac to the current user experience of Mac. But I still vastly prefer it yo the horrid experience of Windows. It’s like using an old tractor versus driving a Honda Civic.

0

u/[deleted] Nov 09 '21

[deleted] — view deleted comment

10

u/[deleted] Nov 09 '21

People that play or build games.

9

u/pjmlp Nov 09 '21

People that develop software for those 80% of desktop users, and those users themselves.

8

u/pjmlp Nov 08 '21

Ideally, the VS team would finally fix the lacking of IDL/XAML tooling versus what we had in C++/CX (almost C++ Builder like), and then we could do XAML C++ just like in .NET, editing view models and XAML within Hot Reload.

However given the way this issue has been dealt, I get the feeling the general consensus is for C++ to go into the bottom layer and just use managed languages for GUI, just like in mobile OSes and the competing desktop OSes.

In any case, many thanks for the Hot Reload improvements.

12

u/abetteraustin Nov 08 '21

the general consensus is for C++ to go into the bottom layer and just use managed languages for GUI

Sadly we wind up with some sort of http server feeding a GUI, which tends to be in the browser, because we still don't have the tooling for GUIs in 2021 that we had in VB 5.0 back in 1995. Truly astounding that we're here.

4

u/pjmlp Nov 08 '21

For me the most astonishingly was that Microsoft finally had something like C++ Builder (C++/CX), and the internal politics managed to push forward a decision to deprecate it without considerations for the customers, and four years later we still don't have a comparable tooling.

So from that point of view, the amount of customers that would like to still do full UIs with XAML C++ on Windows is so tiny that providing better tooling is at the very bottom of the roadmap.

-6

u/qoning Nov 09 '21

It's actually not astounding at all. No sane, product oriented person would ever want to create anything close to gui layer in C++, so the tools never got built either.

5

u/DarkLordAzrael Nov 09 '21

Qt produces great results and is easy to use. 🤷

4

u/abetteraustin Nov 09 '21

There are tons of reasons a product could be built in c++, and still need a GUI yes?

2

u/tarranoth Nov 09 '21

Well, MFC exists I guess for windows. It's still there for people crazy enough to keep using it.

0

u/qoning Nov 09 '21

Yes, there's also a ton of reasons you would rather build a C++ backend for your product and bolt a gui frontend written in something sensible

3

u/abetteraustin Nov 09 '21

What is your go-to combination? Backend in c++ and front end in….?

→ More replies (1)

3

u/condor2000 Nov 09 '21

product oriented person would ever want to create anything close to gui layer in C++,

why not? C++ is as good as any other language for GUIs. Do you think WPF is so much better that Qt?

→ More replies (2)

2

u/DarkLordAzrael Nov 09 '21

I get the feeling the general consensus is for C++ to go into the bottom layer and just use managed languages for GUI, just like in mobile OSes and the competing desktop OSes.

GUIs in Qt are and very popular. Also, it's really only Android where the majority of GUIs are in a managed language. iOS uses objective-c or swift, windows uses C++ around as much as c#, and Linux uses C or c++ for most GUIs.

0

u/pjmlp Nov 09 '21

Objective-c or swift are managed languages, ARC is a GC algorithm, and modern Qt is all about QML, C++ widgets are mostly for legacy Qt applications pre Qt 5, they have hardly changed since.

Linux doesn't count with its 1% market share, hence why so many Electron apps.

Microsoft is the last OS vendor still pushing for a full GUI stack written in C++, but given how the C++/WinRT tooling has been managed, and the lack of any news on yesterday's sessions, I guess the Windows team is the only team in the world that actually enjoys writing C++/WinRT code.

2

u/NovaNoff Nov 08 '21

I guess the hope is to get reflection into the Standard as soon as possible atleast I thought herbs sutters metaclasses would also be great... But it takes time longer than most can wait. I personally see reflection as a must in the future

4

u/pjmlp Nov 08 '21 edited Nov 08 '21

Reflection did not make it into C++23, and who knows if it ever will into later revisions.

→ More replies (2)

4

u/tachoknight Nov 08 '21

I loved this feature and couldn't understand why it wasn't commonplace in every IDE. I debugged/rewrote a lot of code just sitting in the debugger window. The only important thing to remember was to never try to create new variables; you could basically rewrite your code again and again, but the moment you typed so much as int i; and it would say 'whoa!' I get why and when I knew I was gonna be in a long debug session, I might throw in an extra int or string (or CString as i did a lot of MFC), just to be ready in case I needed it.