QtCS2017 Before Runtime discussion

From Qt Wiki
Revision as of 11:27, 9 October 2017 by Tim.Jenssen (talk | contribs) (Created page with "== Make the API easy? == * Copy on Write to avoid copies at runtime * Can we do it at compile time? * Let tools get const and references right * Warn about unnecessary copies...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Make the API easy?

  • Copy on Write to avoid copies at runtime
  • Can we do it at compile time?
  • Let tools get const and references right
  • Warn about unnecessary copies
  • Clang can help here
    • need real examples

Make changes easy

  • API changes are expensive
  • API looks outdated if not adapted to current paradigms (legacy code)
  • How can we make them easy
  • How can Clang help here

Clang Query

  • Think about it as SQL for the AST
  • Makes big changes much cheaper and secure

Immediate feedback vs overnight refactoring

  • Both are important
  • Immediate feedback reduces refactorings and reviews
  • Run refactorings overnight for expansive refactorings
  • Integration with the CI