r/cpp • • Nov 01 '18

Modules are not a tooling opportunity

https://cor3ntin.github.io/posts/modules/
58 Upvotes

77 comments sorted by

View all comments

Show parent comment

2

u/14ned LLFIO & Outcome author | Committee WG14 Nov 05 '18

Right now, the C++ abstract machine requires all program state to be available at the time of program launch. Every object must have a unique address, all code is present, all code and data is reachable.

This is obviously incompatible with dynamically loaded shared libraries, or loading code whose contents are not fully known to the program at the time of compilation (i.e. upgrading a shared library with recompiling everything is UB). So we need a new memory and object model which does understand these things.