This page is the starting point for my blog Modernes C++. A simple overview of my existing and upcoming posts.
This overview serves two purposes. At first, the structure gives you in one view an overview, which posts are already written and how you can find them. At second, I give you an outline of all posts, which will be written. I will successively refine the outline to make the future of this post transparent. This purpose is a more challenging task for me.

Multithreading in modern C++
C++ memory model
- Overview
- Atomic data types
- std::atomic_flag
- std::atomic
- std::atomic
- Synchronization and ordering constraints
- The different C++ memory models
- Sequential consistency
- Theory
- Practice
- Acquire-release semantic
- Synchronization and ordering constraints
- Transitivity
- The special case std::memory_order_consume
- The typical error
- Wait and Sleep
- Fences
- Memory barriers
- Acquire- and release memory barriers
- Blocking and non-blocking algorithms
- ABA - A is not the same as A
The threading interface
- Threads
- Creation
- Lifetime
- Arguments
- Sharing data
- Risks
- Locks
- Reader-writer locks
- Safe initialization
- Thread-local data
- Condition variables
- Tasks
- std::async
- std::packaged_task
- std::promise and std::future
- The special futures std::async
- Condition variables versus tasks for the synchronization of threads
- Challenges
- Data races versus race conditions
- Malicous data races
- Blocking and non-blocking algorithms
Multithreading with C++17 and C++20
- An overview
- Parallel algorithm of the Standard Template Library
- Atomic smart pointers
- std::future extensions
- Latches and barriers
- Coroutines
- Transactional memory
- Task blocks
- Executors
- Unified Futures
- std:::jthread
Application of multithreading
- The time library
- Overview
- Time point
- Time duration
- Clock
- Wait and Sleep
- Ongoing optimization with CppMem
- Context of ongoing optimization
- Introduction to CppMem
- Non atomic variables
- Locks
- Sequential consistency
- Acquire-release semantic
- Acquire-release semantic with a data race
- Relaxed semantic
- volatile
- Singleton
- Thread safe initialization of a singleton
- Calculating the sum of a std::vector
- Single threaded
- Multithreaded with shared variables
- Multithreaded with minimal synchronization
- My conclusion
Embedded programming with C++
- C++11
- Automatic type deduction with auto
- Prevent narrowing with {} initialization
- Guarantees at compile time with static_assert and the type-traits library
- static_assert
- Continuesly improvement- An introductionary example to the type-traits library
- Check types
- Compare and modfy types
- User-defined literals
- Type safe calculation with user-defined literals
- Raw and cooked
- Strong typed enumerations
- override and final
- The null poiner constant nullptr
- C++98
- inline
- C++11
- Constant expressions
- Variables and objects
- Functions
- Optimization with the type-traits library
- Multithreading interface
- C++ memory model
- Hashtables
- Overview
- A simple performance comparison
- Hash functions
- Buckets, capacity and, load factor
- Generalized PODs
- noexcept
- C++14
- constexpr functions
Careful handling of resources
- Overview
- Automatic memory management
- Smart pointers
- Memory and performance overhead
- std::unique_ptr
- std::shared_ptr
- std::shared_ptr
- Specialities
- std::weak_ptr
- The STL containers
- std::vector and std::string
- std::array
- C++ idioms
- Move semantic
- Copy versus move semantic
- Two nice properties
- Perfect forwarding
- RAII idiom
- Explicit memory managemenet
- Overloading operator new and delete
- Part 1
- Part 2
- std::allocator
- Strategies for the allocation of memory
- Pros and cons of the various memory allocation strategies
- Memory pool allocators from Jonathan Müller
Functional programming with C++
- Overview
- Functional Feature in C++
- C++98
- TR1 und C++11
- Dispatch table and generic Lambdas
- C++17 and C++20
- The definition
- Characteristics of functional programming
- First-class functions
- Higher-order functions
- Immutable data
- Pure functions
- Recursion
- Manipulation of lists
- Lazy evaluation
- CRTP
- Expression templates
- Functional programming with C++17 and C++20
- Fold expressions
- The new ranges library
- Concepts
- Placeholders
- Monads in C++
C++17
- Core language
- More details
- Library
- std::byte
- std::filesystem
- std::string_view
- std::any, std::optional, and std::variant
- The new algorithm of the STL
- Improved associative containers and uniform container access
What is modern C++?
- Two highly valuable resources
- Why do we need guidelines for modern C++?
- The C++ Core Guidelines:
- The Philosophy
- Interfaces I
- Interfaces II
- Guideline Support Library
- Functions
- Definitions
- Parameters: Syntax
- Parameters: Semantic
- Classes
- General rules
- The Rule of Zero, Five, or Six
- Destructors
- Constructors
- Copy and Move
- Comparison, swap and hash
- Functionobjects and Lambdas
- Hierarchies
- General rules
- Special rules I
- Special rules II
- Accessing Objects
- Overloading
- Overloading and Overload Operators I
- Overloading and Overload Operators II
- Unions
- Enums
- Resources
- General Rules
- Allocation and Deallocation of Memory
- Smart Pointers
- Passing Smart Pointers
- Expressions and Statements
- Declarations
- Declarations and Initialisations
- More Rules for Declarations
- Expressions
- Expressions (Pointers)
- Conversions and Casts
- Rules about Don'ts (std::move and slicing)
- Rules for Statements
- To Swich or not to Switch, that is the Question
- More about Control Structures
- Arithmetic Rules
- Performance
- Rules to Performance
- More Rules to Performance
- The Remaining Rules to Performance
- Concurrency and Parallelism
- Rules to Concurrency and Parallelism
- More Rules to Concurrency and Parallelism
- Tools to Validate Concurrent-Code
- Sharing Data between Threads
- Taking Care of your Child
- More Traps in the Concurrency
- Be Aware of the Traps of Condition Variables
- Concurrency and lock-free Programming
- The Resolution of the Riddle
- The Remaining Rules to lock-free Programming
- Error Handling
- Rules for Error Handling
- A Short Detour to Contracts in C++20
- The noexcept Specifier and Operator
- Rules to Exception Handling
- finally in C++
- goto considered Evil
- Templates and Generic Programming
- Rules for Templates and Generic Programming
- Type Erasure
- Type Erasure with Templates
- Better Specific or Generic?
- Usage of Concepts
- Definition of Concepts
- Definition of Concepts 2
- Pass Function Objects as Operations
- Template Interfaces
- Regular and SemiRegular Typs
- Surprises with Argument-Dependent Lookup
- Template Definitions
- Ordering of User-Defined Types
- Templates and Hierarchies
- Rules for Variadic Templates
- Rules for Template Metaprogramming
- Programming at Compile Time
- Programming at Compile Time with the Type-Traits
- Programming at Compile Time with the Type-Traits (The Second)
- Programming at Compile Time with constexpr
- Other Template Rules
- Surprise Includes with Function Template Specialisation
Reviews
- Clean C++
News
- No New New
- CppCon 2018
- Meeting Embedded and Meeting C++ 2018
Thanks a lot to my Patreon Supporters: Eric Pederson, Paul Baxter, Meeting C++, Matt Braun, Avi Lachmish, Roman Postanciuc, Venkata Ramesh Gudpati, Tobias Zindl, and Mielo.
Get your e-book at Leanpub:
The C++ Standard Library
|
|
Concurrency With Modern C++
|
|
Get Both as one Bundle
|
 |
|
 |
|
 |
With C++11, C++14, and C++17 we got a lot of new C++ libraries. In addition, the existing ones are greatly improved. The key idea of my book is to give you the necessary information to the current C++ libraries in about 200 pages. |
|
C++11 is the first C++ standard that deals with concurrency. The story goes on with C++17 and will continue with C++20.
I'll give you a detailed insight in the current and the upcoming concurrency in C++. This insight includes the theory and a lot of practice with more the 100 source files.
|
|
Get my books "The C++ Standard Library" (including C++17) and "Concurrency with Modern C++" in a bundle.
In sum, you get more than 600 pages full of modern C++ and more than 100 source files presenting concurrency in practice.
|
Get your interactive course at educative
|
Modern C++ Concurrency in Practice: Get the most out of any machine
|
 |
Based on my book "Concurrency with Modern C++" educative.io created an interactive course.
What's Inside?
- 140 lessons
- 110 code playgrounds => Run in browser
- 78 code snippets
- 55 illustrations
|
Comments
it up! I'll go ahead aand boookmark your website to come back later on. Many thanks
I have bookmarked it in my google bookmarks.
views. Great website, keep it up!
RSS feed for comments to this post