HackerTube.dev

Can C++ be 10x Simpler & Safer? - Herb Sutter - CppCon 2022

CppCon · 277K views · 2022-11-12 · 1:54:00

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Herb Sutter's CppCon 2022 talk on whether C++ can become ten times simpler and safer. He introduces his experimental Cpp2 syntax and the cppfront transpiler, explaining the limits on incremental improvement.

On Hacker News

HN recommends it as the main introduction to Cpp2 and cppfront, and as a credible effort to evolve C++.

Recommended by 6 HN people across 5 months · HN mentions 2022–2024

Topics

Search by tags

What people said

JNRowe · 2024-03 · Strong recommendation

Sutter's 2022 cppcon talk¹ is a great introduction to the topic, both the problems it attempts to solve and solutions it was/is settling on. One of those few talks that left me genuinely enthused about the topic. [It is probably worth watching for the Compiler Explorer interjection toward the end alone -- Matt Godbolt Appreciation Society] ¹ [VIDEO]

Read the original HN comment ↗
karmakaze · 2022-11 · Strong recommendation

There are so many shallow comments for this deeply thought out, 7 year effort to date. If the rest of the 'to do' items gets tackled, implemented in prototypes, and made into proposals as some of the work to date has been handled, this has the best chance of being a true C++ successor. The goal is nothing more than fulfilling these B. Stroustrup quotes: "Inside C++, there is a much smaller and cleaner language struggling to get out." (1994) "Say 10% of size of C++ in definition and front-end compiler size. ... Most of the simplification would come from generalization." (2007) There's a summarization at 1:14:39[0] where concepts are listed on the left, and C++ syntax for handling these concepts in different contexts are on the right. The point of this effort is reduce the accidental complexity syntax on the right by refactoring it into concise uniform syntax. This effort is broad and much more than sugar, e.g. eliminating forward declarations. The talk up to that time is giving examples of the work that has been done in many of those areas, with remaining to-do's listed. Basically the language that is being extracted is the actual language that current C++ programmers really think in, but don't have a more concise way of writing than C++. [0] [VIDEO]

Read the original HN comment ↗
taraharris · 2023-02 · Recommendation

Has anyone else looked at Herb Sutter's cpp2? For those that don't use C++, Herb is chair of the ISO C++ standards committee, and holds the position of "native languages architect" at Microsoft. [LINK] This is a good introductory talk on cpp2 by Sutter at CppCon three months ago, where he demonstrates cppfront , the cpp2 -> C++ transpiler. One of the things I like about it is that the code it generates is human-readable and fully backwards-compatible with C++. If you use cpp2 in your project and end up not liking it, you still have the same (very reasonable) C++ code that you'd write by hand today if you followed the guidelines you're supposed to already. [VIDEO] I think this is very promising, and I'm interested in using it my next project. We don't need a total replacement for C++, we just need to let out the awesome language that's always been hiding inside it.

Read the original HN comment ↗

Sources

Video by CppCon, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources