返回信息流今天看到CppCon 2019出视频了,看了看C++他爹的主旨演讲,干货不少,把最精彩的部分摘出来做了笔记,分享交流一下。
___
2019.09.18
+ https://youtu.be/u_ij0YNkFUs&t=13m43s
+ Only failures you can redo them again a year or two
+ Success last
+ https://youtu.be/u_ij0YNkFUs?t=26m54s
+ The onion priciple
+ Layers of abstraction
+ The more layers you peel off, the more you cry
+ Management of complexity
+ https://youtu.be/u_ij0YNkFUs?t=50m52s
+ Hide messy code behind clean interfaces
+ One of the use of interface is to hide ugly stuff
+ https://youtu.be/u_ij0YNkFUs?t=1h7m56s
+ We have to separate what we want to do and what we can do
+ https://youtu.be/u_ij0YNkFUs?t=1h20m24s
+ The most imporant features those affect the way you write code in
+ C++11
+ constexpr functions
+ moving a lot of complex template metaprogramming into simple ordinary programming with functions
+ support for basic concurrency
+ invisible part of C++11 that was most important
+ C++20
+ concepts
+ it'll make generic code much easier, more elegant, more widely useful
+ template metaprogramming is a successful C++98 feature, but it's too overly used and complicated
+ modules
+ invisible part of C++20 that was most important
+ improve compile speed by 10x
+ https://youtu.be/u_ij0YNkFUs?t=1h31m7s
+ I don't think everything should be a template
___
这是一条镜像帖。来源:北邮人论坛 / cpp / #99484同步于 2019/9/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
[笔记] CppCon 2019: Bjarne Stroustrup “C++20: C++ at 40”
clangpp
2019/9/19镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
【 在 Nroskill 的大作中提到: 】
: constexpr确实很好用
: 并发库原子操作啥的表示也就那样吧
他想表达的是,并发库是一种改变程序设计方式的特性。以前都是线程思路,开一个线程,等它跑完;现在就是一个std::async()拿一个future,然后future.get()就齐了。
我个人感觉是,这个跟Go里的channel思路相似,让你用同步的方式设计异步的程序,中间的转换由语言负责。