CppCon 2019: Jason Turner “Great C++ is_trivial”

image.png

Titus Winters, cppcon2017, c++ as a “live at head” language

软件工程是跟随时间变化的编程;
soft engineering is about resilience to change over time, 包括:

  • 版本控制系统
  • CI
  • 单元测试
  • 重构工具
  • 设计模式:give some abilities to plan for future changes without knowing exactly what those changes will be
  • 依赖管理

在依赖管理中,有个叫diamond dependency,是liba, libb都依赖于libutil,随着软件演化,liba, libb开始依赖于不同版本的libutil;
semantic versioning,即x.y.z;this is a thing we use to avoid having dependency problems
Hyrum’s Law: 随着越来越多的用户使用你的API,所有可观察到的行为都有可能被潜在的用户所使用,即会产生兼容性问题

Herb Sutter, cppcon2017, Meta: thoughts on generative c++

刚开始,Herb谈到了与此talk无关的一个proposal(P0515) spaceship operator,用于简化编写各种比较操作符的boilerplace

这个talk的主题是希望c++ code simpler
提出一些未来可以发展的方向,即不保证一定会在c++ 20中

有点深奥

Writing cache friendly C++ - Jonathan Müller - Meeting C++ 2018

image.png
第一段是Fit in primary cache, 第二段是Fit in 2nd-level cache,最后是访问内存

image.png

当stride增加时,miss rate在增加