CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”
CppCon · 7 则 HN 推荐
视频问答
可以让 AI 解释当前片段,或总结整部视频。如果回答附有时间戳,点击即可跳到对应片段。
试着问:这里讲的是什么意思?
需要用 Google 登录。确认前可查看最多会扣除多少积分。
Chandler Carruth argues in a CppCon 2019 talk that C++ has no truly zero-cost abstractions. Using examples like unique_ptr, ABI constraints and compile-time costs, he shows that abstractions cost runtime, compile time or human effort.
HN 推荐的原因: HN commenters cite it whenever zero-cost abstraction claims come up, especially for why unique_ptr is not free on some ABIs.
“Chandler presents his point clearly and goes deep enough into the subject.” 阅读 HN 讨论 ↗