News for hackers. Stuff that matters.
Re:GCC 11.1 by overgard on Tuesday April 27, 2021 @10:48AM (#26956640)
Sadly, I really doubt it. The standards committee seems mostly interested in adding new template metaprogramming features at this point. What I /really/ wish they would focus on is modules. 100% of C++ developers suffer from horrible compile times, and yet it seems to always get punted.

(Not to mention that forcing developers to write header-only libraries to use templates pretty much makes them way less attractive anyway)

Edit: maybe I'm wrong? It looks like modules are in C++ 20. No idea if any compilers are supporting them yet.

Re:GCC 11.1 by sesuximo on Tuesday April 27, 2021 @11:08AM (#26956944)
Modules doesn’t even really speed up the build if you have a highly parallel build... and it’s unclear how build tools should support it in a uniform way. I think modules will go unused but I hope I’m wrong
Re:GCC 11.1 by qalmakka on Tuesday April 27, 2021 @11:00AM (#26956820)
Modules have been released with C++20, but no compiler has a complete implementation for them yet. Also the standard library hasn't been modularized yet.
Re:GCC 11.1 by zxzax on Tuesday April 27, 2021 @12:07PM (#26957830)
How is it possible that modules were released, if nobody has a working implementation? I was under the impression that proposals needed at least a proof-of-concept implementation from a sponsor. My exposure to this is searching the CMake tracker for this last year and seeing that it wasn't even working there yet.
Re:GCC 11.1 by jcelerier on Tuesday April 27, 2021 @12:35PM (#26958238)
> How is it possible that modules were released, if nobody has a working implementation?

there were plenty of experimental implementations over the years, some people have been using some flavour of "modules" with MSVC and Clang for something like 5 years... hell, technically it has always been possible to compile code as objective-C++ to leverage the objc module system if you could afford to use clang everywhere

Re:GCC 11.1 by qalmakka on Tuesday April 27, 2021 @02:14PM (#26959441)
As the other answer said, nobody has (yet) an implementation of the _released_ standard, but both GCC and especially Clang have had modules very close to what stabilized by C++20 for years. You can enable them by specifying a flag (-fmodules-ts) on any recent release of Clang.
Re:GCC 11.1 by zxzax on Tuesday April 27, 2021 @03:07PM (#26960078)
I know that but I'm just baffled that the text of the standard could be released at a point in time when nobody has succeeded at implementing it fully. That seems like it would almost guarantee that no one implements the standard as it's written, as there is no proof-of-concept that it's truly viable... I'd expect to see several revisions to this before C++23 as the compilers work out the issues.
Re:GCC 11.1 by vips7L on Tuesday April 27, 2021 @11:48AM (#26957553)
MSVC is expected to have C++20 feature completeness in VS 2019 16.10 Preview 3.

https://github.com/microsoft/STL/wiki/Changelog#expected-in-...

Re:GCC 11.1 by pjmlp on Tuesday April 27, 2021 @12:29PM (#26958144)
Watch the Visual C++ virtual day coming next week.
Re:GCC 11.1 by petters on Tuesday April 27, 2021 @10:57AM (#26956783)
The standardization work for modules is done. Now all build tools and code bases need to start supporting it in a good way.
Re:GCC 11.1 by nindalf on Tuesday April 27, 2021 @10:49AM (#26956661)
Isn't modules already a part of C++20?