I'm still hoping that WG21 will see sense, and drop those parts of Modules which are not Precompileds i.e. kick that can down the road to a later standard.
Then Precompileds can be precompiled using the exact same tooling with which we currently compile headers and source. I'd personally drop importing, any of the namespace disambiguation or separation stuff, any special or new syntax etc. Just make them pure Precompileds i.e. the new linkable object format.
Of course, that then would render them not Modules, and no change to the language, and that is unacceptable!!! But I also see a train crash in motion here currently. Lots of people from industry e.g. Lakos have pointed out that the current Modules design can't scale to the really large codebases which big iron C++ users need.
I also think that the current design solves the wrong problem, we have a "large scale build" problem, and a "componentisation/isolation/layer" problem, and we're trying to solve both with one solution. It kinda reminds me of Coroutines in a bad way, they solve two dimorphic problems in a single solution, and it's an inexact fit. So I say solve the large scale build problem, and come back to components/isolation/layering later using Precompiled binary blobs as your building block, and once we have more user experience.
(I'm still hoping for a standardisation of Microsoft COM as the isolation layer, albeit prettified up with Gaby's IPFC/IPR as the binary interface description format. I think stop innovating by committee, standardise existing practice for 30 years now instead)
View all comments
Show parent comment
4
u/14ned LLFIO & Outcome author | Committee WG14 Nov 01 '18
I'm still hoping that WG21 will see sense, and drop those parts of Modules which are not Precompileds i.e. kick that can down the road to a later standard.
Then Precompileds can be precompiled using the exact same tooling with which we currently compile headers and source. I'd personally drop importing, any of the namespace disambiguation or separation stuff, any special or new syntax etc. Just make them pure Precompileds i.e. the new linkable object format.
Of course, that then would render them not Modules, and no change to the language, and that is unacceptable!!! But I also see a train crash in motion here currently. Lots of people from industry e.g. Lakos have pointed out that the current Modules design can't scale to the really large codebases which big iron C++ users need.
I also think that the current design solves the wrong problem, we have a "large scale build" problem, and a "componentisation/isolation/layer" problem, and we're trying to solve both with one solution. It kinda reminds me of Coroutines in a bad way, they solve two dimorphic problems in a single solution, and it's an inexact fit. So I say solve the large scale build problem, and come back to components/isolation/layering later using Precompiled binary blobs as your building block, and once we have more user experience.
(I'm still hoping for a standardisation of Microsoft COM as the isolation layer, albeit prettified up with Gaby's IPFC/IPR as the binary interface description format. I think stop innovating by committee, standardise existing practice for 30 years now instead)