4 ms·
> Doing a C++23 import std It’ll be nice when this can be reliably used. According to cppreference MSVC has partial support and other compilers have zero suppo
by forrestthewoods 4y ago
> Doing a C++23 import std
It’ll be nice when this can be reliably used. According to cppreference MSVC has partial support and other compilers have zero support.
I’m not sure modules will be in widespread use before 2029.
https://en.cppreference.com/w/cpp/compiler_support https://en.cppreference.com/w/cpp/compiler_support
- pjmlp 4y agoVC++ support is good enough that all my C++ hobby coding is done with modules, not everything we code must be cross-platform from the get go. GCC is getting there. clang, well they seem stuck with their own initial modules implementation (module maps based), and now with Apple and Google out of the picture, the various compiler vendors that benefit from MIT license don't seem that eager to contribute to upstream other than LLVM. Unfortunely everyone else seem to still be catching up with C++14 and C++17, depending on the ecosystem.
- forrestthewoods 4y ago> not everything we code must be cross-platform from the get go. No, but the code I write for my job does have to be cross-platform from day 0. And that's the code base that is large enough where module improvements to compile time would be most useful! Hobby projects are small enough it's not super important. So C++20 modules don't help me and probably won't until 2029! To my great dismay.
- pjmlp 4y agoNot only hobby projects, everyone that only depends of Windows and XBox workloads can also make use of modules. However I agree it is a bummer for cross-platform code and there is a ton of it, with clang being the major culprit holding C++20 back.
- forrestthewoods 4y ago> everyone that only depends of Windows and XBox workloads can also make use of modules. So that covers projects funded by Microsoft and… almost nothing else. Because if you can ship on Xbox you’d probably be smart to ship on PlayStation and possibly Switch. The number of real projects that can use modules isn’t zero. But it’s pretty god damn close! This ain’t the hill to die on.
- pjmlp 4y agoContrary to what FOSS folks think, in the gaming world, many studios actually enjoy the perks that come with being platform exclusives. Which ironically, both Playstation and Nintendo win over XBox in exclusive titles.
- forrestthewoods 4y agoI’m not an FOSS folk. I’ve shipped a lot of games. I spend 95% of my dev time on Windows. > many studios actually enjoy the perks that come with being platform exclusives Yes, building a game for a single fixed piece of hardware is great fun. But we live in the cross-platform age. As practical matter the Xbox One and Xbox Series Blah are losers. Shipping for Xbox but not Playstation (and often times Switch) is just leaving money on the table. The list of “games released only on Windows and Xbox” is very small.
- TillE 4y agoThere is a lot of commercial Windows-only software out there, and most of it is C++.