2 ms·
Other question: do you think that writing a compiler that only work with C++14 or 17, might compile code faster ? Or will C++ always be slow to compile ? I'm s
by jokoon 11y ago
Other question: do you think that writing a compiler that only work with C++14 or 17, might compile code faster ? Or will C++ always be slow to compile ?
I'm still wondering what makes go so fast to compile.
- looki 11y agoNot currently. I think it can be largely attributed to header files, for which we currently have no solution in modern C++. Think about what your code would look like if you expanded all #includes of a single file, each containing entire class definitions that need to be parsed. One of the proposals for the next C++ standard is for modules, which would allow better symbol importing and would largely boost compilation speeds, among other benefits.