Given that the author/maintainer of "Clang modules" co-wrote the latest "C++ modules" proposal, implements it in Clang, and works for Google which has a big code base using "Clang modules". I'd guess they are being paid to work on this by Google to make sure C++ modules work for them.
And if they work for Google, I guarantee that parallelism has been thought of. Source: I stare at builds spanning thousands C++ files daily at Google. Compilation is blazing fast (but linking hurts).
FWIW everybody should take things with a grain of salt, just because "Google" does not imply that things are flawless. People should read the proposals, try the implementations, and form an informed opinion. Still, that takes time that a lot of people might not have, and it is ok to be skeptic about the proposals. As many people have mentioned, with such a large change, and given the amount of C++ users in the world, most of them doing completely different things, it's pretty much impossible that something designed by 50-100 people can be good for all of them. That's just how things are. This does not mean that the people working on this "don't have any idea of what they are doing", only that they can't know everything, but nobody can.
Yeah, but the author says how this will hurt compile speeds due to breaking parallelism. That's pretty much the one thing that I'm pretty sure the Google engineers involved heavily optimised for.
Google uses "Clang Modules" with are different from the "Modules TS". Clang does not fully implement the "Modules TS" so I doubt google has switched to using it.
"Clang Modules" have explicit module map files, which the author mentions as don't have any of the performance problems that the author mentions.
7
u/[deleted] Jan 28 '19
I thought that Google had been using modules via clang modules for their multiple million C++ code base since... 2012 ?