Skip to content
0:00 / 0:00

#c++14#gsl#c++coreguidelines

CppCon 2015: Bjarne Stroustrup “Writing Good C++14”

CppCon

189K subscribers • 101 videos on Hallway • Conference channel

YouTube
  • Recommended by 3 people: 2 on Hacker News and 1 on Lobsters.
  • Presented by Bjarne Stroustrup, creator of C++
  • Linked in the descriptionisocpp/CppCoreGuidelines

Intermediate. Assumes working knowledge.

351K views11 years ago3 recommendations

Programming languagesSystems programmingC++Performance and optimizationMemory management

Bjarne Stroustrup introduces the C++ Core Guidelines and the Guidelines Support Library to help write safe and efficient modern C++.

cppcon.org -- Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/isocpp/CppCoreGuidelines/blob/master/talks/Strous… -- How do we use C++14 to make our code better, rather than just different? How do we do so on a grand scale, rather than just for exceptional programmers? We need guidelines to help us progress from older styles, such as “C with Classes”, C, “pure OO”, etc. We need articulated rules to save us from each having to discover them for ourselves. Ideally, they should be machine-checkable, yet adjustable to serve specific needs. In this talk, I describe a style of guidelines that can be deployed to help most C++ programmers. There could not be a single complete set of rules for everybody, but we are developing a set of rules for most C++ use. This core can be augmented with rules for specific application domains such as embedded systems and systems with stringent security requirements. The rules are prescriptive rather than merely sets of prohibitions, and about much more than code layout. I describe what the rules currently cover (e.g., interfaces, functions, resource management, and pointers). I describe tools and a few simple classes that can be used to support the guidelines. The core guidelines and a guideline support library reference implementation will be open source projects freely available on all major platforms (initially, GCC, Clang, and Microsoft). -- Videos Filmed & Edited by Bash Films: BashFilms.com Work at Hudson River Trading (HRT): tinyurl.com/safxfctf

Why it's here

3 people recommend this

What people say. Engineers recommend this talk as an essential introduction to modern C++ safety guidelines and the Guidelines Support Library.

asthasron Lobsters • Recommends

CppCon 2015: Bjarne Stroustrup “Writing Good C++14”

sitkackon Hacker News • Recommends

On “A brief introduction to C++'s model for type- and resource-safety [pdf]”

There are some great talks by Neil MacIntosh about the kinds of static analysis they are building into the tool. CppCon 2015: Neil MacIntosh “Static Analysis and C++: More Than Lint" link CppCon 2015: Neil MacIntosh “Evolving array_view and string_view for safe C++ code" link For something of this magnitude I wouldn't consider the project late until mid summer. Stroustrup's keynote at CppCon is a great overview of the semantics they want to support and the errors that the tooling with will prevent. link to this video

lossoloon Hacker News • Recommends

On “Why would you learn C++ in 2016?”

You should watch those cppcon again, because Stroustrup and Herb are saying there many times that smart pointers are NOT should be use instead of raw pointers. Use smart pointers where It's about ownership. You should watch this video: link to this video

lossoloon Hacker News • Recommends

On “C++ for Games: Performance, Allocations and Data Locality”

It's hardly modern C++ what you will see in this talk. Mike Acton even said that they only use C++ because it's game industry standard but he would prefer C. If you want to start with modern c++ watch this: CppCon 2015: Bjarne Stroustrup “Writing Good C++14” link to this video

MichaelMoser123on Hacker News • Mentions

On “A brief introduction to C++'s model for type- and resource-safety [pdf]”

There is this cppcon presentation by Stroustrup where he is talking about the GSL annotations link to this video but too bad that it all depends on this unreleased big black box proprietary code analysis tool.

karieson Hacker News • Mentions

On “ROOT – Data Analysis Framework”

Background upfront: I'm the guy behind the C++ interpreter and ROOT's new interfaces. I'm the co-author of the only surviving C++ reflection proposal and the author of the std::variant proposal. I have contributed to the C++ Core Guidelines ( link link to this video ). * HEP stores about 0.5 exabytes of data in ROOT format, that's almost exclusively serialized objects that do not know anything about TObject. * XRootD is not really specific for ROOT files. A better example would maybe be our JavaScript de-serialization library, link * No way will the python binding be dropped. I wonder where you got that rumor from. About one third of our users is using it. * HEP is limited by CPU resources, which i…

MichaelMoser123on Hacker News • Mentions

On “Type-Safe Unions in C++ and Rust”

i remember that Bjarne Stroustrup held a talk in cppcon15 where he talked a lot about the GSL library 1 - it would add type annotations that can be checked by a tool, so as to check for potential memory problems (to me that sounds like a poor man's borrow checker). One year later: i see the template library 1 but i don't see the analysis tool. Does anybody know what happened with this initiative? 1 link to this video 2 link

Tempest1981on Hacker News • Mentions

On “Rust vs C Pitfalls”

Stroustrup has proposed a way to add safety to C++. It's called "C++ Core Guidelines", and "GSL". link link I watched his talk -- wondering if anyone is using it. link to this video Using GSL gives adds some safety to pointers and memory allocation -- while providing the bare-metal performance that C is known for. (It still feels very low-level.)

pjmlpon Hacker News • Mentions

On “Rust things I miss in C”

…es with invariants,... Developers with more C oriented mindset, tend to just code away like "C with C++ compiler" programming style. Hence the need being discussing since the last three CppCon, to stop using C style programming in modern C++. CppCon 2015: Kate Gregory “Stop Teaching C" - link CppCon 2015: Bjarne Stroustrup “Writing Good C++14” - link to this video CppCon 2017: Bjarne Stroustrup “Learning and Teaching Modern C++” - link Of course, preventing copy-paste compatibility with C, already solves many of those issues from the get go.…