5 ms·
This, also. C and C++'s build model is a train wreck, especially in C++ code gets rebuilt dozens of times due to headers being simply plopped into whatever tran
by qalmakka 4y ago
This, also. C and C++'s build model is a train wreck, especially in C++ code gets rebuilt dozens of times due to headers being simply plopped into whatever translation unit you are building. Rust efficiently solves this by defining building abstractions in the language itself, instead of relying on hacks such as #include, PCH, ...
- pjmlp 4y agoC++ modules....
- runevault 4y agoHas support for these gotten any better? Last time I was reading about it compiler support was under baked at best. If they get it fully working and stable I agree modules should go a long way to getting rid of it (entirely if you are willing to wrap old header files in modules yourself).
- selfmodruntime 4y agoNo. GCC still produces weird output at times.
- pjmlp 4y agoYes in what concerns VC++. All my hobby coding in C++ uses modules nowadays.
- nemetroid 4y agoThey work well in VC++ (not surprising, since it’s largely Microsoft’s design). I would give it another year for reasonable support in GCC.