Reader-Writer Lock versus Mutex - Jeffrey Mendelsohn
A talk on understanding when a reader-writer lock beats a mutex, and when not.
Reader-Writer Lock versus Mutex
by Jeffrey Mendelsohn
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Meeting C++ | Feb 1, 2018 03:08 AM | Tags: performance multithreading meetingcpp efficiency
A talk on understanding when a reader-writer lock beats a mutex, and when not.
Reader-Writer Lock versus Mutex
by Jeffrey Mendelsohn
By Adrien Hamelin | Jan 31, 2018 07:22 PM | Tags: advanced
Did you have that problem?
The Most Vexing Parse: How to Spot It and Fix It Quickly
by Jonathan Boccara
From the article:
Everyone has their little defaults. You know, that little something that they do from time to time and that gets on your nerves, even though they’re otherwise nice people?
For C++, one of these little annoyances is the most vexing parse, well, as its name suggests...
By Adrien Hamelin | Jan 31, 2018 07:14 PM | Tags: intermediate c++17
And make less mistakes.
Help the compiler warn you
by Andrzej Krzemieński
From the article:
Compiler warnings are a very useful tool for detecting bugs in your program. Because you can enable them selectively, and because you can choose to turn them into hard errors on your compiler, you can in fact build a dialect, which is a safer subset of C++...
By Adrien Hamelin | Jan 31, 2018 07:12 PM | Tags: intermediate community
A classic error:
break and fallthrough
by Andrey Karpov
From the article:
We would like to suggest reading the series of articles dedicated to the recommendations on writing code of high quality using the examples of errors found in the Chromium project. This is the second part, which will be devoted to the switch operator and, more precisely, to the problem of a forgotten break operator...
By Meeting C++ | Jan 31, 2018 02:23 AM | Tags: meetingcpp libraries api
A new talk from Meeting C++ 2017:
API & ABI versioning
by Mathieu Ropert
By Meeting C++ | Jan 30, 2018 03:12 AM | Tags: stringview qt meetingcpp c++17
A view on StringViews from the author of QStringView from Meeting C++ 2017!
StringViews, StringViews everywhere!
by Marc Mutz
By Adrien Hamelin | Jan 29, 2018 06:45 PM | Tags: community
It continues to improve:
From the article;
This page is a brief summary of some of the huge number of improvements in GCC 7. For more information, see the Porting to GCC 7 page and the full GCC documentation...
By Adrien Hamelin | Jan 29, 2018 06:31 PM | Tags: intermediate
Interesting indeed!
Guidelines for constructor and cast design
by Jonathan Müller
From the article:
A while back — but sadly not too many blog posts ago — I wrote about explicit constructors and how to handle assignment. In this blog post, I made the assumption that you most likely want to have explicit single argument constructors.
But when do we actually want implicit single argument constructors?
Let’s consider the broader question: How should I design a cast operation for my user-defined type? And how should I design a constructor?
But first, something different: what is the difference between a cast and a constructor?
By Adrien Hamelin | Jan 29, 2018 06:29 PM | Tags: performance community
Isn't that a good question?
Do compilers take inline as a hint?
by Simon Brand
From the article:
If you’ve spent any time in C or C++ communities online, you’ve probably seen someone say this:
inline used to be a hint for compilers to inline the definition, but no compilers actually take that into account any more.
You shouldn’t believe everything you see on the internet...
By Meeting C++ | Jan 29, 2018 04:18 AM | Tags: tooling modern c++ meetingcpp clang-tidy clang
A new tooling related talk from Meeting C++ 2017:
Bringing clang-tidy magic to Visual Studio C++ Developers
by Victor Ciura