#moderncpp

2025-12-03

Bài viết về việc triển khai framework thuật toán điều khiển vòng kín bằng C++ hiện đại. Tận dụng các tính năng như template concepts, NTTP lambdas và std::expected để tạo ra giải pháp an toàn, hiệu quả cho ứng dụng nhúng và hiệu suất cao. Mã nguồn được cung cấp dưới dạng thư viện header đơn miễn phí.

#CPlusPlus #ModernCPP #EmbeddedSystems #ControlAlgorithms #Programming #SoftwareDevelopment #OpenSource
#CộngĐồngCPlusPlus #LậpTrìnhNhúng #ThuậtToánĐiềuKhiển #PhátTriểnPhầnMềm #MãNguồnMở

https://w

youcaiyoucai
2025-09-11

me yesterday doing investigation on cpp custom allocators:
okay now we have both foonathan/memory and std::pmr, some of the code must have a aligned heap allocator using std::aligned_alloc or sth
* after 15mins of digging *
NONE OF THEM DOES!!!

2025-06-10

I am pretty sure you all already know, but it's actually possible to have `requires` clauses at the end of a function declaration. Just like any other attribute.

This makes usage of ad-hoc requirements much more readable and greatly reduces the pressure to introduce custom concepts.

Why are so many teaching the front syntax instead of the tail syntax?

#Concepts #CPP #CPP20 #ModernCPP #Programming

C++ fragments using requires clause with front and tail syntax.

```C++
    template<typename... Ts>
        requires((std::constructible_from<QStringView, Ts>
                  || std::constructible_from<QLatin1String, Ts>) && ...)
    static void reportError(QStringView format, Ts &&...args)
```

```C++
    template<typename... Ts>
    static void reportError(QStringView format, Ts &&...args)
        requires((std::constructible_from<QStringView, Ts>
                  || std::constructible_from<QLatin1String, Ts>) && ...)
    {
```
2025-06-07

You don't realize just how good C++23 is until you take some old C++ code, paste it into #Godbolt, set the compiler flags to C++23, add a few concept-checking asserts, read the beautifully clear error messages from concepts, and fix your problem.

#ModernCPP #CPP #Concepts #Legacy #Evolution #Happyiness #Programming

Hannes Hauswedell__h2__
2025-05-18

I wrote a blog post again:

𝗢𝘄𝗻𝗶𝗻𝗴 𝗮𝗻𝗱 𝗻𝗼𝗻-𝗼𝘄𝗻𝗶𝗻𝗴 𝗖++ 𝗥𝗮𝗻𝗴𝗲𝘀

The first article in a series discussing some of the underlying properties of C++ ranges, and in particular range adaptors.

hannes.hauswedell.net/post/202

@meetingcpp @c_discussions

Owning and non-owning C++ Ranges

2025-05-17  16 min read

This is the first article in a series discussing some of the underlying properties of C++ ranges and in particular range adaptors. At the same time, I introduce the design of an experimental library which aims to solve some of the problems discussed here.
Andreas Fertigandreasfertig@mas.to
2025-04-24

Why do C++ templates confuse so many developers?
Because the syntax is tricky, the errors are cryptic, and most tutorials don’t explain the why behind the how.
In my self-paced course, we fix that. Step by step, you’ll see how templates work, so you can write efficient, reusable code with confidence. Join now and start mastering!

And yes, you’ll also get a complimentary copy of my "Tips and Tricks with Templates" book when you book before April 30th.

#programming #cpptemplates #ModernCpp

Mastering C++ Templates self-study course
Andreas Fertigandreasfertig@mas.to
2025-04-15

Templates in C++ are powerful – but they’re also one of the most misunderstood features.
Ready to rewind, revisit, and truly master templates on your term? Book before April 30th and get a free copy of my "Tips and Tricks with Templates" book.

#programming #cpptemplates #ModernCpp

Mastering C++ Templates self-study course
Andreas Fertigandreasfertig@mas.to
2025-04-11

Do you struggle with C++ Templates? My C++ Templates course helps you understand how templates work and to apply them in your codebase.
Get a complimentary copy of my book, "Tips and Tricks with Templates" by booking before April 30th.

#programming #cpptemplates #ModernCpp

Mastering C++ Templates self-study course
2025-02-10

Improve code safety and efficiency with "Modern C++ Paradigms" at the KDAB Training Day (8 May). This one-day training course covers value semantics, modern error handling, range-based programming, and more. Early bird tickets on training.kdab.com/ktd25/ #Cpp #ModernCpp #CPlusPlus

2024-11-27

Write safer, more efficient C++ code with "Modern C++ Paradigms" at the KDAB Training Day (May 8th). Learn value semantics, modern error handling, range-based programming, and more. Super early bird tickets: training.kdab.com/ktd25/ #Cpp #ModernCpp #CPlusPlus

alexbolyalexboly
2024-10-23

What do you use for installing libraries that you need for C++? (Multiple choice available). Please boost for reach

alexbolyalexboly
2024-10-22

Question for C++ programmers: are there any libraries you are missing? I'm writing a piece on modern C++ libraries and I appreciate your input.

2024-05-29

C++OnSea 2024 SESSION ANNOUNCEMENT: Temporal Dynamics: Exploring the Intricacies of Object Lifetimes in Modern C++ by Riya Bansal

cpponsea.uk/2024/sessions/temp

Register now at cpponsea.uk/tickets/

#cpp #cplusplus #moderncpp #objectlifetime

2024-05-17

C++OnSea 2024 SESSION ANNOUNCEMENT: Temporal Dynamics: Exploring the Intricacies of Object Lifetimes in Modern C++ by Riya Bansal

cpponsea.uk/2024/sessions/temp

Register now at cpponsea.uk/tickets/

#cpp #cplusplus #moderncpp #objectlifetime

2023-12-29

[TUTORIAL] Learn Modern C++

@programmazione

"...una guida originale e autonoma per l'apprendimento dei fondamenti di Modern C++, destinata a costituire la base di un corso di autoapprendimento. Alcuni capitoli dipendono dal materiale presentato in quelli precedenti, per cui se ne raccomanda lo studio lineare. Ci sono anche post regolari che trattano argomenti o aree del C++ non presenti nel corso."

#programmazione #cplusplus #moderncpp #dev #tutorial

learnmoderncpp.com/

Logo del linguaggio C++
2023-12-27

Remember the days when #Clang was the new kid on the block, pushing forward the smug old folks by implementing the newest and hottest stuff from #isocpp?

Not so anymore: These days it always seems Clang for which I have to provide terrible fallback hacks, when trying to explore the hottest and nicest of #moderncpp, where #GNU and #MSVC just deliver.

#programming #cpp #cxx

2023-10-05

Employing Modern C++ for High Performance Delta-Coding Compression – Eduardo Madrid – C++ on Sea
youtube.com/watch?v=CZMuMINaS5
#coding #cpp #moderncpp #programming #softwareengineering

Victor Gaydovgavv@fosstodon.org
2023-08-17

Great books!

I would recommend them and these two authors in general (Nicolai M. Josuttis and Bartlomiej Filipek) for everyone willing to structure their knowledge in (not so) modern C++ world.

#cpp #cplusplus #moderncpp #programmingbooks

C++ Initialization Story
C++ Lambda Story
C++ Move Semantics
2023-08-09

Check out this brand new video from ACCU 2023!

Functional Programming in Modern C++: The Imperatives Must Go! – by @ciura_victor – ACCU 2023

youtube.com/watch?v=HE71NqRpvTQ

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst