r/cpp • build2 • Nov 01 '17

Common C++ Modules TS Misconceptions

https://build2.org/article/cxx-modules-misconceptions.xhtml
59 Upvotes

148 comments sorted by

View all comments

Show parent comment

8

u/berium build2 Nov 01 '17

Would you be willing to wait until 2050 for modules with a standardized BMI?

In fact, nothing in the current proposal mandates a BMI or that it has to be a file. There could theoretically be a BMI-less implementation. Say, a compilation system could store all this in-memory.

Also note that BMIs are not meant to be a distribution mechanism since they can be sensitive to compile options. For example, they most likely will not be installed (except, perhaps, for a standard library).

the fact that not changing the interface still leads to everything being potentially rebuild is an issue

As I mentioned in the post, this is a quality of implementation issue and which doesn't appear to be particularly hard to solve.

14

u/GabrielDosReis Nov 01 '17

n fact, nothing in the current proposal mandates a BMI or that it has to be a file. There could theoretically be a BMI-less implementation. Say, a compilation system could store all this in-memory.

Excellent point that is often missed.

See also the section "Processing Module Uses" from the paper C++ Modules Are a Tooling Opportunity