Variant Visitation V2--Michael Park

Optimising accesses.

Variant Visitation V2

by Michael Park

From the article:

In 2015, I wrote an article titled Variant Visitation which described an implementation strategy for std::visit. The approach involved a matrix of function pointers, and many have raised concerns regarding poor code-gen caused by optimization limitations of function pointers on some compilers.

This post describes the switch-based approach implemented in mpark/variant, and its benchmark results...

C++ moves for people who don’t know or care what rvalues are--Topher Winward

Is it simpler that way?

C++ moves for people who don’t know or care what rvalues are

by Topher Winward

From the article:

When I was first learning about move semantics in C++, I kept reading articles that explained in terms of other scary sounding jargon — lvalues, rvalue references, memcpy, ownership. None of these things are strictly necessary to know about to understand the core of move semantics. (Though, the more you learn about them, the greater your understanding of move semantics will become.)

You may have heard of move semantics, and may know that they’re “faster”, but not why, or even how to move something. (Here “moves” and “move semantics” mean the same thing.)

This article will deliberately simplify or ignore some concepts (like constructors, rvalue references, stack vs heap) to make the core idea of moving easier to follow, so don’t worry if you already know this stuff and see something that isn’t technically correct. I’ll mark clarifications for these with a number. This article is aimed at those writing everyday (non-library) code, with little to no existing understanding of move semantics, to help get over the initial conceptual hurdle...

Every attendee gets a free copy of "C++17 - The Complete Guide" by Nico Josuttis

As the title says, every attendee of C++ on Sea will get a free copy of Nico' Josuttis' eBook, "C++17 - The Complete Guide"!

Every attendee gets a free copy of "C++17 - The Complete Guide" by Nico Josuttis

by C++ on Sea

About the article:

We can now announce a special deal we've arranged with Nico which means we'll be giving every attendee of the conference a coupon code to obtain a free copy of the book in electronic form (current suggested price: 37.90 USD). You'll have immediate access, and continue to get updates as the book progresses to completion.

using std::cpp conference becomes bilingual (and remains free)

Yes, you got it. The Spanish C++ one-day conference, using std::cpp, will be bilingual this year.

using std::cpp conference becomes bilingual (and remains free)

by using std::cpp

About the conference:

The conference will be having this year its 6th edition. The event will be on March 7th 2019 in Madrid. And this year there will be a number of talks in English.

  • Long talks (40 min.): 6 in English and 1 in Spanish
  • Short talks (20 min.): 1 in English and 3 in Spanish
  • Flash talks (5 min.): 2 in English.

Full conference program is here.

cpp.chat Episode #47 with Nico Josuttis

Each week, or thereabouts, Jon and Phil chat with guests from the C++ community about what they're doing, what interests them, and what's going on in the world of C++.

Episode 47 - We Made It Even Worse

by Jon Kalb and Phil Nash

About the episode

This week we’re joined, once again (yet for the first time) by Nicolai Josuttis, and we talk about how much of a C++ expert you need to be to write “Hello, World” and initialize objects.

We also discover how strongly Jon feels about initializer_list constructor syntax - and what Nico thinks about it.

C++ On Sea: Standard pricing is ending soon

The new C++ On Sea conference is starting soon.

Standard pricing is ending soon

by C++ on Sea

About the article:

With the conference less than two weeks away tickets are still selling well - bearing out the prediction that a lot of people leave it until quite late!

What you might not know is that the standard, two-day, ticket pricing was set to end on the 21st January! After that "Last Minute" tickets can still be bought, but at a slightly higher price.

Stop reimplementing the virtual table and start using double dispatch

AndyG wants us to stop misusing dynamic_cast and start using a visitor pattern

Stop reimplementing the virtual table and start using double dispatch

by AndyG

From the article:

In this tutorial, I’ll talk about one solution to this problem I’ve had some success with: the double-dispatch Visitor pattern. With it, you can trim down those long if-else if blocks, separate responsibility into manageable pieces, and even stabilize your interface better.