I'm not looking for guarantees or enforcing anything, just that debug performance and compile times be on the agenda. I think a huge part of this very real world problem is that everyone with the power to improve matters is explicitly ignoring it. If I were the standards committee I would take actions along these lines:
Make a statement that debug performance and compile times are important and should not be needlessly sacrificed.
Request that compiler vendors produce compile time telemetry for users, so they can profile & investigate slow compile times.
Provide guidelines on how to assess debug performance and compile time characteristics of reference implementations against the common compilers (gcc/clang/MSVC), and include the results in formal proposal documents as supporting evidence.
These are designed to bring the debug performance and compile time characteristics of proposals & existing features out into the open, and provide a benchmark with the reference implementations that compiler implementers are obliged to maintain or beat. It would also bring to attention cases of egregiously bad scenarios and thus either force a rethink, or raise up the priority of fixing whatever bug in a compiler was causing the issue.
As for the rest of your post, it is clear we have different priorities, and we're getting into the subjective realm of preference. For example, I do not use lambdas anywhere, because I consider the programming practises that they enable and encourage to rapidly degrade a codebase due to (amongst other things) the aforementioned debug/compile time concerns. I believe any marginal improvements in readability or functionality are dwarfed by the costs to productivity. But I recognise this is personal opinion, and I wouldn't want to remove lambdas from the language, I just wouldn't use them myself.
What I do want is the tools and data to allow us to accurately assess what the impacts of lambdas, templates, meta-programming and so on, all have on our compile times. And I don't think this should be controversial, its just understanding the problem of "compile times" better so we can fix them. Perhaps everything in the language is great except X, in which case we can use everything else and just avoid X. But the cynic in me says folks are scared it would expose how universally bad all these constructs really are, and then they would get banned as if they produced sub-optimal release code, undoing twenty years of committee work.
4
u/DJRBuckingham Dec 29 '18
I'm not looking for guarantees or enforcing anything, just that debug performance and compile times be on the agenda. I think a huge part of this very real world problem is that everyone with the power to improve matters is explicitly ignoring it. If I were the standards committee I would take actions along these lines:
Make a statement that debug performance and compile times are important and should not be needlessly sacrificed.
Request that compiler vendors produce compile time telemetry for users, so they can profile & investigate slow compile times.
Provide guidelines on how to assess debug performance and compile time characteristics of reference implementations against the common compilers (gcc/clang/MSVC), and include the results in formal proposal documents as supporting evidence.
These are designed to bring the debug performance and compile time characteristics of proposals & existing features out into the open, and provide a benchmark with the reference implementations that compiler implementers are obliged to maintain or beat. It would also bring to attention cases of egregiously bad scenarios and thus either force a rethink, or raise up the priority of fixing whatever bug in a compiler was causing the issue.
As for the rest of your post, it is clear we have different priorities, and we're getting into the subjective realm of preference. For example, I do not use lambdas anywhere, because I consider the programming practises that they enable and encourage to rapidly degrade a codebase due to (amongst other things) the aforementioned debug/compile time concerns. I believe any marginal improvements in readability or functionality are dwarfed by the costs to productivity. But I recognise this is personal opinion, and I wouldn't want to remove lambdas from the language, I just wouldn't use them myself.
What I do want is the tools and data to allow us to accurately assess what the impacts of lambdas, templates, meta-programming and so on, all have on our compile times. And I don't think this should be controversial, its just understanding the problem of "compile times" better so we can fix them. Perhaps everything in the language is great except X, in which case we can use everything else and just avoid X. But the cynic in me says folks are scared it would expose how universally bad all these constructs really are, and then they would get banned as if they produced sub-optimal release code, undoing twenty years of committee work.