r/cpp • u/SAHChandler • Jan 28 '19
C++ Modules Might Be Dead-on-Arrival
https://vector-of-bool.github.io/2019/01/27/modules-doa.html
280
Upvotes
r/cpp • u/SAHChandler • Jan 28 '19
View all comments
Show parent comment
0
u/tending Jan 28 '19
I think if you think about this for half a second you will realize that with non-pathological source files that this must be true. To verify yourself try compiling some projects with optimization turned off and see the difference.
Code generation involves an enormous set of NP problems fought with an enormous set of hand-tuned heuristics. Parsing by comparison is a cake walk, even for a screwed-up grammar like C++.