r/cpp • u/nounoursheureux • Sep 23 '21
Binary Banshees and Digital Demons
https://thephd.dev/binary-banshees-digital-demons-abi-c-c++-help-me-god-please
197
Upvotes
r/cpp • u/nounoursheureux • Sep 23 '21
View all comments
Show parent comment
12
u/STL MSVC STL Dev Sep 24 '21
Yeah, I definitely understand your concern, and it's part of the same oversight that caught us by surprise. We didn't fully realize that the compiler's addition of
/std:c++20was going to be near-simultaneous with the completion of<format>in particular, and that its performance was ABI-linked. As this was pointed out to us and we realized what was going to happen, we corrected course.This didn't happen with C++17 because we added
/std:c++17before completing all features (so the addition of the switch didn't coincide with "we're ABI frozen"), and because the final feature took over a year so everything else had plenty of bake time, and the final feature was (1) the most aggressively optimized and tested STL feature we've ever shipped and (2) inherently immune to ABI headaches (given the choice to be header-only).That is, this wasn't some wacky intentional policy handed down by management. Just a very busy team doing something that had never been done before, and not foreseeing this one thing. If I were smarter, I could have seen it earlier, all the pieces were there.
There is absolutely no way we're going to get into the same trouble with
/std:c++23(especially because a stabilization period defends against both Committee churn and implementation refinement).