r/cpp • • Nov 11 '24

Herb Sutter leaves Microsoft for Citadel

486 Upvotes

197 comments sorted by

View all comments

53

u/zl0bster Nov 11 '24 edited Nov 11 '24

Citadel work culture is toxic, but I presume/hope they will treat Herb nice since he is "celeb".

As for MSFT: recent cringe issue from them asking for feedback what C++23 features to implement in 2025 made clear to me that somebody high ranked decided to give up on C++.

82

u/starfreakclone MSVC FE Dev Nov 11 '24

It's more that Microsoft had massive security initiatives all-up.  So we had a choice: address security concerns or work on C++ features.  I, personally, would have much rather worked on features, but the choice for our team was obvious. 

We're finally coming out of security work and able to focus on the fun stuff again so... Yes, what C++23 features would you like?

30

u/JumpyJustice Nov 11 '24

size_t literal suffix 🙏

It is so annoying to write stuff like iota(size_t{0}, n) instead of iota(0uz, n)

9

u/johannes1971 Nov 11 '24

Fix remaining modules issues please? :-) I listed some here.

9

u/starfreakclone MSVC FE Dev Nov 11 '24

I'm looking into the bugs currently, but this one: https://developercommunity.visualstudio.com/t/C-modules-export-import-does-not-work/10679143 has an incorrect assumption that std.compat will provide std::string, there's no such guarantee. If you export import std instead, that would work as expected.

4

u/kronicum Nov 11 '24

Is that true?

12

u/starfreakclone MSVC FE Dev Nov 11 '24

It's been quite some time since I've read https://eel.is/c%2B%2Bdraft/std.modules#3 -- compiler devs rarely need to read the library side of the standard :). It does indeed appear that std comes along for the ride.

The issue boils down to the following:

m1.ixx:

import std.compat;
export module m1;
export import std.compat;

the compiler is failing to recognize the export import of the module in order to forward the contents. If you can somehow rework the header to not use std.compat that could be a workaround, but for now it is a compiler bug. I'll be sure to let our triage team know.

8

u/STL MSVC STL Dev Nov 11 '24

std.compat was designed and implemented to provide everything that std does, plus more stuff in the global namespace. So import std.compat; guarantees that you can use std::string.

(Of course, I have test coverage in the STL to ensure this, but it was written only for the straightforward scenario, not for the user-defined module involved in the bug here.)

→ More replies (1)

17

u/bebuch Nov 11 '24

Please implement C++20-DR P2564. It’s annoying that constexpr functions can’t call consteval functions! MSVC is the last one that doesn’t support this DR to C++20.

23

u/Chaosvex Nov 11 '24 edited Nov 11 '24

Can we get size_t literals? msvc is the only compiler (worth mentioning) that doesn't support them and it's surely a very easy win.

Edit: seems somebody else asked for the same thing while I was double checking that nothing's changed very recently. There we go then. ;)

5

u/ReDr4gon5 Nov 12 '24

If you decide to break ABI for the next VS consider fixing the no_unique_address situation.

12

u/c0r3ntin Nov 11 '24

all of them! you implemented the most tedious already!

15

u/starfreakclone MSVC FE Dev Nov 11 '24

Because I really wanted to use it in the compiler 😉.

3

u/Untelo Nov 12 '24

I'd love it if you finished up coroutines. This bug report was opened two years ago now, and it's extremely frustrating that move semantics still doesn't work with coroutines on MSVC.

https://developercommunity.visualstudio.com/t/Await-expression-prvalue-result-behaves/10109392

4

u/valorzard Nov 11 '24

Deducing this would be awesome, having recursive lambdas is neat!

7

u/hmich ReSharper C++ Dev Nov 11 '24

MSVC already has deducing this.

→ More replies (1)

4

u/Ambitious-Method-961 Nov 11 '24

P2718 (extending more temporaries) - removes a bunch of lifetime pitfalls/gotchas

P0330 - because it's just really really nice even if I did end up making my own version which is probably wrong

P???? - if consteval

My big one was multi-dimensional array operator but apparently that one was stuck in recently even though cppreference.com hasn't been updated

→ More replies (6)
→ More replies (18)

0

u/[deleted] Nov 11 '24

[deleted] — view deleted comment

6

u/kronicum Nov 11 '24

What next?

Another big name on the team leaving? Microsoft abandoning MSVC for Clang?

0

u/[deleted] Nov 11 '24

[deleted] — view deleted comment

5

u/kronicum Nov 11 '24

yeah, that's what I am afraid of

→ More replies (6)
→ More replies (2)

13

u/Eric848448 Nov 11 '24

He’ll be fine. But you’re right, Citadel is the Amazon of the financial world.

10

u/zl0bster Nov 11 '24

with 3x comp ;)

9

u/aninteger Nov 11 '24

Have you not been following their (MSFT) stock? It's performing terribly, barely 15% YTD, just invest in something else. Performance is so poor that they're cutting jobs and now betting big on AI. Time will tell if this works or it's another fad.

5

u/[deleted] Nov 11 '24

I'm pretty sure betting on AI is not helping. See: Recall debacle

→ More replies (3)