C++20: Structure Modules--Rainer Grimm

The series continue.

C++20: Structure Modules

By Rainer Grimm

From the article:

When your module becomes bigger you want to divide its functionality into manageable components. C++20 modules offer two approaches: submodules and partitions. Let me discuss both approaches in this post.

A Note of Caution about Using PVS-Studio on godbolt.org (Compiler Explorer)

We have added an option allowing you to experiment with the PVS-Studio static analyzer on the godbolt.org (Compiler Explorer) website. It supports analysis of C and C++ code.

A Note of Caution about Using PVS-Studio on godbolt.org (Compiler Explorer)

by Andrey Karpov

From the article:

This may be promising from the perspective of satisfying one's curiosity, writing articles, and so on. But there's a downside to it too: rather than using synthetic examples to explore or try out the tool, people may start relying on them to evaluate and compare it against other analyzers. And this is a very bad approach because the results will be unreliable and dependent on how the test examples are written.

C++ Lambdas, Threads, std::async and Parallel Algorithms--Bartlomiej Filipek

How do you use them?

C++ Lambdas, Threads, std::async and Parallel Algorithms

by Bartlomiej Filipek

From the article:

In articles about lambda expression (like this one from last week on my page), it’s easy to show examples where the lambda runs on the same thread as the caller. But how about asynchronous cases? What if your lambda is called on a separate thread? What problems you might encounter there.

Read on and let’s explore this topic...

How to ask for C++ coding help--Kate Gregory

The good practices exist also to ask for help.

How to ask for C++ coding help

by Kate Gregory

From the article:

Lately a lot of people have been asking me for help as they write C++ code. I’m usually happy and able to help. There are times, though, when I either cannot help, or choose not to help. I thought it might be helpful to explain some of these a little. It’s quite likely that other members of the community have a similar set of guidelines in their heads for when they do and don’t help people with code...

5 Advantages of C++ Lambda Expressions and How They Make Your Code Better--Bartlomiej Filipek

Do you agree?

5 Advantages of C++ Lambda Expressions and How They Make Your Code Better

by Bartlomiej Filipek

From the article:

The mixture of brackets in the preceding line become one of the most noticeable indications of Modern C++.
Yep.
Lambda Expressions!
It might sound like I’m trying to create a new blog post about something that everyone knows. Is that true? Do you know all the details of this modern C++ technique?

In this article, you’ll learn five advantages of Lambdas. Let’s start...

C++20: A Simple math Module--Rainer Grimm

The series continue.

C++20: A Simple math Module

by Rainer Grimm

From the article:

Modules are one of the four prominent features of C++20. They overcome the restrictions of header files and promise a lot: faster build-times, fewer violations of the One-Definition-Rule, less usage of the preprocessor. Today, I want to create a simple math module...

C++ on Sea moves online - and into July

C++ on Sea will now be a virtual conference, held July 15th-17th (with workshops the following week).

C++ on Sea moves online - and into July

From the article:

We decided to move the workshops a little further away, since we no longer have the constraints imposed by venue, accommodation and travel - but we do want to reduce the number of consecutive days people will need to spend watching online.

The workshops will also run on different days from each other - so, potentially, you could attend more than one!