C++ Weekly Episode 37: Stateful Lambdas—Jason Turner
Episode 37 of C++ Weekly.
Stateful Lambdas
by Jason Turner
About the show:
In this episode Jason demonstrates how stateful lambdas can be created using features from C++14.
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 3-8, Kona, HI, USA
By Jason Turner | Nov 14, 2016 11:12 AM | Tags: c++14 basics
Episode 37 of C++ Weekly.
Stateful Lambdas
by Jason Turner
About the show:
In this episode Jason demonstrates how stateful lambdas can be created using features from C++14.
By fj | Nov 14, 2016 02:34 AM | Tags: None
C++11 re-introduces auto
keyword that enables basic type inference. Using auto
not only improves code readability.
When type inference fails
by Krzysztof Ostrowski
From the article:
Use of type inference puts impact on what is possible to be done with certain value, i.e. on its interface or concept it models, rather than on its concrete type. Unfortunately,
auto
does type inference locally, thus is not such powerful as we might expect. Here follows some examples ofauto
-inference failures.
By Adrien Hamelin | Nov 11, 2016 12:58 PM | Tags: None
If you want to know more about C++:
TedX talk: The Driving Force Behind C++
by Bjarne Stroustrup
By Adrien Hamelin | Nov 11, 2016 12:54 PM | Tags: performance advanced
A very interesting article about the cost of our basic operations.
Infographics: Operation Costs in CPU Clock Cycles
by “No Bugs” Hare
From the article:
Whenever we need to optimise the code, we should profile it, plain and simple. However, sometimes it makes sense just to know ballpark numbers for relative costs of some popular operations, so you won’t do grossly inefficient things from the very beginning (and hopefully won’t need to profile the program later )...
By robwirving | Nov 11, 2016 09:32 AM | Tags: None
Episode 78 of CppCast the only podcast for C++ developers by C++ developers. In this episode Rob and Jason are joined by Odin Holmes to talk about developing for Embedded Microcontrollers with C++ and the Kvasir library.
CppCast Episode 78: Kvasir with Odin Holmes
by Rob Irving and Jason Turner
About the interviewee:
Odin Holmes has been programming bare metal embedded systems for 15+ years and as any honest nerd admits most of that time was spent debugging his stupid mistakes. With the advent of the 100x speed up of template metaprogramming provided by C++11 his current mission began: teach the compiler to find his stupid mistakes at compile time so he has more free time for even more template metaprogramming. Odin Holmes is the author of the Kvasir.io library, a DSL which wraps bare metal special function register interactions allowing full static checking and a considerable efficiency gain over common practice. He is also active in building and refining the tools need for this task such as the brigand MPL library, a replacement candidate for boost.parameter and a better public API for boost.MSM-lite.
By Adrien Hamelin | Nov 9, 2016 01:26 PM | Tags: performance community
The new GoingNative is out!
GoingNative 53: Learning STL Multithreading
by Steve Carroll, Augustin Popa and BryanDiLaura
From the video:
In this episode, Billy O'Neal and Stephan T. Lavavej (S.T.L.) talk about the Standard Template Library for multithreading, and how to use it properly. We would love to hear some feedback on this episode! If you liked it, let us know and we may make a follow up!
By Adrien Hamelin | Nov 9, 2016 01:18 PM | Tags: intermediate c++11
Variadics explained:
Modern C++ Features – Variadic Templates
by Arne Mertz
From the article:
Generic programming and metaprogramming with templates always have been one of the features that set C++ apart from most other languages. With C++11, variadic templates added even more possibilities in that area to the language...
By Adrien Hamelin | Nov 7, 2016 12:02 PM | Tags: advanced
Do you know how a program ends?
Terminators
by Adi Shavit
From the article:
A GraphViz diagram that shows both normal and unexpected program termination flows in C++.
There are multiple ways a C++ program may terminate. These include both normal and unexpected termination.
This GraphViz diagram shows the program termination flows as defined by the standard...
By Adrien Hamelin | Nov 7, 2016 11:56 AM | Tags: community boost
Did you know that container?
Why you should use Boost.MultiIndex (Part I)
by David Gross
From the article:
Although Boost.MultiIndex is a pretty old library — introduced in Boost 1.32, released in 2004 — I found it rather unsung and underestimated across the C++ community in comparison to other non-standard containers.
In this article, split into multiple parts, I will highlight all the benefits you can get using boost::multi_index_container instead of the standard containers: faster, cleaner and simpler code.
By Meeting C++ | Nov 7, 2016 03:44 AM | Tags: experimental basics
I was doing some research on possible live formats...
Collaborative Online Compilers
by Jens Weller
From the article:
While doing some brainstorming for possible (youtube) live formats with C++ content, the thought of having a shared online IDE/Compiler came into my mind. Think of Google Docs but for C++...