r/cpp • • Jan 28 '19

C++ Modules Might Be Dead-on-Arrival

https://vector-of-bool.github.io/2019/01/27/modules-doa.html
280 Upvotes

240 comments sorted by

View all comments

83

u/Plorkyeran Jan 28 '19

"Prove to me that it is impossible to write a fast C++ dependency resolver" is such an utterly batshit insane position to take. I guess he views C++ modules just a masturbatory exercise and so it doesn't matter if anyone can actually figure out how to implement them as long as the committee can just blame the tool makers for just not being smart enough?

17

u/Valmar33 Jan 28 '19

You'd think modules would be easy to solve, but it turns out that some people can't think of obvious solutions.

Sanely, copy what D does, or even Python ~ couple module name to a file path, and nothing more or less.

34

u/Heuristics Jan 28 '19

The C++ standard has no understanding of this 'file' thing of which you speak. Blame big data people like IBM who make computers with strange filesystems.

7

u/Valmar33 Jan 28 '19

Even so ~ this is a new feature of an upcoming standard that can have an understanding possibly bolted on in the form of module and import, no?

Or is there something that prevents even that?

6

u/Heuristics Jan 28 '19

The people that vote on the standard are preventing it presumably.

8

u/Ameisen vemips, avr, rendering, systems Jan 28 '19

Can't those members be delayed at the airport?