2016

My take on variant--Jonathan Müller

An interesting point of view and implementation of a variant in one article!

My take on variant

by Jonathan Müller

From the article:

C++17 is going to add std::variant. To quote the linked documentation, it is a “type-safe union”. A union is like a struct, but can only store one member at a time. This has many applications, but sadly it doesn’t mix well with non-trivial types, you have to call the destructor yourself etc. Furthermore, nothing prevents you from accessing a union member that isn’t active.

std::variant fixes that. It correctly calls the destructor when switching the active member, it prevents invalid access, etc. However, I’m not quite happy with it and I needed an implementation now. So I’ve decided to implement my own variant as part of my type_safe library.

It was a fun challenge and since my previous attempt was two years ago, I could improve it a lot. Let’s go through some of my design decisions.

Folding Functions--Sumant Tambe

Let's use those fold operators!

Folding Functions

by Sumant Tambe

From the article:

In the last post we looked at basic usage of C++17 Fold Expressions. I found that many posts on this topic discuss simple types and ignore how folds may be applicable to more complex types as well. In this post I'm going to describe folding over functions...

Report from using std::cpp 2016 -- Daniel Garcia

Daniel Garcia reports from the recent std::cpp conference:

Conference Report

by Daniel Garcia

From the report:

Last November 24th we had the fourth edition of using std::cpp, our annual spanish conference on C++ for professional developers. The conference is a one-day free event held every year at University Carlos III of Madrid, in Leganés. We had around 200 registered attendees (most of them professional developers).

We would like to share some answers from the evaluation questionaries:

  • 75% of attendees were professional developers, 14% were students, and 11% were academics.
  • 92% declared they use regularly C++.
  • The most popular version of C++ was C++11 (73%), followed by C++98/03 (63%) and C++14 (21%). Note that you could vote for more than one. However, no one declared to make use of any extension or TS.
  • Most popular compiler was gcc (60%), followed by Microsoft (57%), and clang++ (14%).
  • When we asked for domains a found a split among multiple sectors: telco (20%), aerospace/naval (11%), civil engineering (9%), bank/finance/insurance (7%), developer tools (7%), videogames (6%), research/academia (4%), transport (4%), industrial manufacturing (2%).

 

Emscriptened -- Adi Shavit

The `path` to the web.

Emscriptened!

by Adi Shavit

From the article:

It might be a fun little project to generate a web-based interactive version of the effects of various methods of `filesystem::path`.

 

C++17 Talks by Nicolai Josuttis @ NDC London

Nicolai Josuttis speaks on the upcoming NDC conference in London about:

nico_josuttis_casual_small_120911.jpg

C++17 Core and Library Features


by Nicolai Josuttis

About the talk:

On January 19, 2017, Nicolai Josuttis, the author of The C++ Standard Library, will give two talks at the NDC conference in London about the core and library features of the upcoming C++17.