Atomic References with C++20
Control when you need atomicity.
Atomic References with C++20
by Rainer Grimm
From the article:
Atomics receives a few important extensions in C++20. Today, I start with the new data type std::atomic_ref...
June 16-21, Sofia, Bulgaria
September 13-19, Aurora, CO, USA
October 25, Pavia, Italy
November 6-8, Berlin, Germany
November 16-21, Kona, HI, USA
By Adrien Hamelin | Dec 14, 2020 02:04 PM | Tags: c++20
Control when you need atomicity.
Atomic References with C++20
by Rainer Grimm
From the article:
Atomics receives a few important extensions in C++20. Today, I start with the new data type std::atomic_ref...
By Adrien Hamelin | Dec 14, 2020 01:57 PM | Tags: c++17
You like the style?
C++17 structured bindings for more safe, functional code
by Dmitrii Khizbullin
From the article:
The overall idea of this article is to showcase how to keep the scope (aka block) as clean as possible with C++17. By “clean” scope I mean two things:
- as few variables as possible,
- all variables are const as often as possible...
By Adrien Hamelin | Dec 8, 2020 01:25 PM | Tags: c++20
Some bits and stuff.
Bit Manipulation with C++20
By Rainer Grimm
From the article:
This post concludes my presentation of library features in C++20. Today I write about the class std::source_location and a few functions for bit manipulation...
By Adrien Hamelin | Dec 8, 2020 01:20 PM | Tags: c++20
Use all that you can.
Feature Testing with C++20
by Rainer Grimm
From the article:
When your program's compilation broke with a brand-new C++20 feature, you often end with a few questions: Did I something wrong? Did I found a compiler bug? Does my compiler not yet support this feature? Thanks to the feature testing in C++20, the last question is easy to answer...
By Adrien Hamelin | Nov 30, 2020 01:05 PM | Tags: advanced
Lambdas.
Under the Covers of C++ Lambdas: Captures, Captures, Captures
by Andreas Fertig
From the article:
Lambda Capturing syntax allows us to quickly “wrap” a variable from the outside scope and then use it in the lambda body. We also know that under the hood the compiler translates lambda into a closure type… but what happens to those captured variables? Are they translated to public data members or private? See the newest guest post from Andreas to understand this tricky problem...
By Adrien Hamelin | Nov 30, 2020 01:00 PM | Tags: c++20
Will you use it?
Safe Comparisons of Integrals with C++20
by Rainer Grimm
From the article:
When you compare signed and unsigned integers, you may not get the result you expect. Thanks to the six std::cmp_* functions, there is a cure in C++20...
By Hitesh Kumar | Nov 30, 2020 11:22 AM | Tags: None
The current object (*this) capture in a lambda expression has gone through some changes since C++11.
Capture *this in lambda expression: Timeline of change
by Hitesh Kumar
From the article:
A lambda defined inside a non-static member function can directly access the members of the current object (or its copy) via an appropriate capture clause. But how the current object can be captured has gone through some changes since C++11.
By Milad Kahsari Alhadi | Nov 30, 2020 11:19 AM | Tags: None
In this paper, I am going to discuss how can we as the application or device driver developers take advantage of I/O prioritization in the Windows OS.
I/O Prioritization in Windows OS
by Milad Kahsari Alhadi
From the article:
I/O prioritization improves the responsiveness of the system without significantly decreasing the throughput of the system. Typically, any topic related to I/O and threads requires a good understanding of Windows synchronization because of that, I will try to discuss everything from the ground up.
In this paper, I am going to discuss how can we as the application or device driver developers take advantage of I/O prioritization in the Windows OS. Finally (in the next paper, I will discuss the I/O completion mechanism of Windows) which is a magical feature.
By Giovanni Dicanio | Nov 24, 2020 11:04 AM | Tags: None
Have you ever wondered how many kinds of strings are available in C++?
How Many Strings Does C++ Have?
by Giovanni Dicanio
This blog post tries to enumerate some of them.
Now, let’s enter – drumroll, please – The Realm of C++! And the fun begins
By Rahel Natalie | Nov 24, 2020 10:57 AM | Tags: None
This time around, I shall tell you about the royal game, i.e. chess, or rather of my humble attempts at contributing to its rich ecosystem of non-human players.
The Royal Game
by Philipp Lenk
From the article
I will begin by explaining what I am talking about, briefly recap the fascinating history of computer chess and in the course of that highlight the importance of game playing for showcasing, popularizing and driving machine intelligence research as well as its public perception. I shall further elaborate on my personal connection and love for the game and detail why - even in the face of a recent uptake of machine learning based techniques far more successful than my puny attempts could ever hope to be - an old-school, classical approach can still be a valuable investment of time and energy.
Afterwards [...] I will get just a little more technical and provide a high level explanation of the general structure underlying many chess playing programs, culminating in a walkthrough of code implementing the UCI protocol used to communicate with GUIs and other programs pitting different human and non-human connoisseurs of the game against one another.