just C++ - generic code: first episode
A new video series at Meeting C++: just C++
just C++ - generic code
by Jens Weller
the video:
June 8-13, Brno, Czechia
June 17-20, Folkestone, UK
September 12-18, Aurora, CO, USA
November 16-21, Búzios, Rio De Janeiro, Brazil
November 26-28, Berlin, Germany
By Meeting C++ | Jun 2, 2017 05:39 AM | Tags: c++14 c++11 basics advanced
A new video series at Meeting C++: just C++
just C++ - generic code
by Jens Weller
the video:
By Adrien Hamelin | May 23, 2017 09:17 AM | Tags: performance advanced
Complicated stuff, interesting also!
A question about avoiding page faults the first time newly-allocated memory is accessed
by Raymond Chen
From the article:
A customer had a question about memory allocation...
By Adrien Hamelin | May 19, 2017 11:35 AM | Tags: advanced
Curious things!
What the Curiously Recurring Template Pattern can bring to your code
by Jonathan Boccara
From the article:
After having defined the basics on the CRTP in episode #1 of the series, let’s now consider how the CRTP can be helpful in day-to-day code...
By Adrien Hamelin | Apr 20, 2017 01:10 PM | Tags: community advanced
The series continues.
Making things do stuff – Part 3
by Glennan Carnie
From the article:
Previously, we’ve looked at the basics of hardware manipulation in C++ and applied that to a simple GPIO implementation.
In this article we’re going to have a look at encapsulating our code in a class and look at some of the design choices we have to make...
By Adrien Hamelin | Apr 18, 2017 12:52 PM | Tags: experimental advanced
What's the status of reflection in C++?
An Introduction to Reflection in C++
by Jackie Kay
From the article:
Stop me if you’ve heard this one before. You are working on a messaging middleware, a game engine, a UI library, or any other large software project that has to deal with an ever-growing, ever-changing number of objects. These objects have many different qualities but can be grouped by their functionality: they can be sent across the network or collided with or rendered.
Because you are a good programmer who believes in the DRY principle, you want to write the “action” code that does the stuff on these objects without repetition, and plug in specific Message types or Renderable types into your generic pipeline at the appropriate places. It would be really nice to compose objects hierarchally: for example, if I had a widget class composed of several different renderable Rectangles, I want to be able to automatically generate the rendering code for my widget based on the existing rendering logic for its constituent shapes...
By Adrien Hamelin | Apr 18, 2017 12:46 PM | Tags: c++11 advanced
Some thoughts about final classes.
Final Classes
by Arne Mertz
From the article:
A few days ago, a colleague asked me if it was wise to make every class a final class. Here is a more sophisticated answer than I could give at that time...
By Adrien Hamelin | Apr 5, 2017 02:24 PM | Tags: c++11 advanced
An issue we do not think often about:
Post-Conditions on Self-Move
by Eric Niebler
From the article:
TL;DR: In addition to the usual rule about move operations leaving the source object in a valid but unspecified state, we can add an additional guideline (not quite a rule, but follow it anyway):
Self-move assignment should “work” and leave the object in a valid but unspecified state.
By Adrien Hamelin | Apr 3, 2017 01:29 PM | Tags: community advanced
C++ for embedded too!
Making things do stuff – Part 1
by Glennan Carnie
From the article:
C has long been the language of choice for smaller, microcontroller-based embedded systems; particularly for close-to-the-metal hardware manipulation.C++ was originally conceived with a bias towards systems programming; performance and efficiency being key design highlights. Traditionally, many of the advancements in compiler technology, optimisation, etc., had centred around generating code for PC-like platforms (Linux, Windows, etc). In the last few years C++ compiler support for microcontroller targets has advanced dramatically, to the point where Modern C++ is a increasingly attractive language for embedded systems development...
By Jon Kalb | Mar 29, 2017 10:40 AM | Tags: variadic templates crtp advanced
Steve Dewhurst has published a new paper under his category Once Weakly:
Variadic CRTP
by Steve Dewhurst
From article:
One problem with [the] traditional application of CRTP is that it’s inflexible.... We can get [more] flexibility by specifying the CRTP capability as a template template parameter.
By Meeting C++ | Mar 2, 2017 07:09 AM | Tags: reflection intermediate experimental c++20 basics advanced
Since the overview on the current papers for Kona, I wanted to know more about reflection...
Reflections on the reflection proposals
by Jens Weller
From the article
A few weeks ago I wrote a short overview over the most interesting papers for the current C++ Committee meeting in Kona, Hawaii. The big surprise was that there were many papers on reflection, while there already is a very detailed proposal for reflection.
With the C++ committee currently in Kona discussing lots of proposals, there will be some changes to the on going effort for reflection, but the current proposals are detailed enough to give an overview.