#cpp23 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cpp23, aggregated by home.social.
-
What's the fastest way to sort lists of lists of user-supplied arguments - in any order - with respect to annotations provided by the strong types that each one of the user data is coerced to at the interface, to attach unique semantics to each datum?
Perform the sort at compile-time!
The resulting program is noticeably faster in generating the strictly annotation-ordered byte stream from those lists-of-lists.
#cpp23 is amazing 🤘
-
What's the fastest way to sort lists of lists of user-supplied arguments - in any order - with respect to annotations provided by the strong types that each one of the user data is coerced to at the interface, to attach unique semantics to each datum?
Perform the sort at compile-time!
The resulting program is noticeably faster in generating the strictly annotation-ordered byte stream from those lists-of-lists.
#cpp23 is amazing 🤘
-
@bjn @codeplatform ik hou de nieuwe C++ versies niet meer zo bij, maar vandaag iets nieuws geleerd. #cpp23
-
@bjn @codeplatform ik hou de nieuwe C++ versies niet meer zo bij, maar vandaag iets nieuws geleerd. #cpp23
-
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
Why are some C++ standard library design issues so difficult to fix once standardized?
Nicolai Josuttis and Jesper Pedersen discuss the design of Filter View in C++20, C++23, and C++26, and how Ranges design decisions can affect const-correctness, usability, and safety. #CPlusPlus #CPP #Cpp23 #Cpp26 #ModernCpp
Watch here:
https://www.youtube.com/watch?v=i2bUe7kA61w -
How does a new C++ standard actually come together?
In part 1 of this interview, Jesper Pedersen talks with Nicolai Josuttis about the evolution of C++ standards, the complexity of C++23, and the challenges of writing comprehensive modern C++ books. #CPlusPlus #CPP #Cpp23 #ModernCpp #SoftwareEngineering
Watch here:
https://www.youtube.com/watch?v=QcOiQp0xzzQ -
How does a new C++ standard actually come together?
In part 1 of this interview, Jesper Pedersen talks with Nicolai Josuttis about the evolution of C++ standards, the complexity of C++23, and the challenges of writing comprehensive modern C++ books. #CPlusPlus #CPP #Cpp23 #ModernCpp #SoftwareEngineering
Watch here:
https://www.youtube.com/watch?v=QcOiQp0xzzQ -
In my latest blog post, "What reinterpret_cast doesn't do," you'll learn about one of C++'s biggest pitfalls and how to avoid it.
https://andreasfertig.com/blog/2026/04/what-reinterpret_cast-doesnt-do/
-
In my latest blog post, "What reinterpret_cast doesn't do," you'll learn about one of C++'s biggest pitfalls and how to avoid it.
https://andreasfertig.com/blog/2026/04/what-reinterpret_cast-doesnt-do/
-
C++ Insights - Episode 71: C++23: multidimensional operator[]
In this episode, you'll learn about the change to the operator[] in C++23.
-
C++ Insights - Episode 71: C++23: multidimensional operator[]
In this episode, you'll learn about the change to the operator[] in C++23.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
In my main project (very large physics simulation) we're about to start allowing c++23 features. I generally try to keep c++-isms to a minimum, but I welcome things like .contains() methods and things that make c++ more pleasant (i.e. python-like). Any "favorite" c++23 features you would recommend that we adopt? Any to avoid?
#cpp #cpp23 #software #softwareDevelopment #softwareEngineering -
In my main project (very large physics simulation) we're about to start allowing c++23 features. I generally try to keep c++-isms to a minimum, but I welcome things like .contains() methods and things that make c++ more pleasant (i.e. python-like). Any "favorite" c++23 features you would recommend that we adopt? Any to avoid?
#cpp #cpp23 #software #softwareDevelopment #softwareEngineering -
TIL: C++23 you can use named universal character escapes
#include <print>
int main() {
std::print("\N{GREEN HEART}"); // 💚
}https://en.cppreference.com/w/cpp/language/escape.html#Named_universal_character_escapes
-
TIL: C++23 you can use named universal character escapes
#include <print>
int main() {
std::print("\N{GREEN HEART}"); // 💚
}https://en.cppreference.com/w/cpp/language/escape.html#Named_universal_character_escapes
-
May I make you aware of the phantastic @compiler_explorer, that totally indispensable tool to every software developer - the brainchild of @mattgodbolt ?
I can speak only as an average C++ developer who works at a small company, and who happens to be stranded in the C++ committee.
For my own experiments, I have a personal bookmark in my browser called "C++23 playground" as a starting point for for more elaborate adventures in the C++ lands. May be, it helps you as well:
https://godbolt.org/z/Mz96j16nx
To the best of my knowledge, the provided flags will give you some highly recommended defaults for compiler diagnostics and maximum language conformance, in the three major implementations Clang/libc++, GCC/libstdc++, and MSVC/MS-STL. Maybe you'll get some inspiration for your daily grind.
Please support Matt and the entire CE team 🤘, f.e. by getting some swag that we nerds can proudly present in the public and wear as protective gear ☺️
Visit https://shop.compiler-explorer.com/promo/BLACKFRIDAY 🤩
-
May I make you aware of the phantastic @compiler_explorer, that totally indispensable tool to every software developer - the brainchild of @mattgodbolt ?
I can speak only as an average C++ developer who works at a small company, and who happens to be stranded in the C++ committee.
For my own experiments, I have a personal bookmark in my browser called "C++23 playground" as a starting point for for more elaborate adventures in the C++ lands. May be, it helps you as well:
https://godbolt.org/z/Mz96j16nx
To the best of my knowledge, the provided flags will give you some highly recommended defaults for compiler diagnostics and maximum language conformance, in the three major implementations Clang/libc++, GCC/libstdc++, and MSVC/MS-STL. Maybe you'll get some inspiration for your daily grind.
Please support Matt and the entire CE team 🤘, f.e. by getting some swag that we nerds can proudly present in the public and wear as protective gear ☺️
Visit https://shop.compiler-explorer.com/promo/BLACKFRIDAY 🤩
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Are you using std::ranges in your C++ code? If not, what is stopping you?
Ranges introduced a huge paradigm shift in the way we can write our C++ code. They can make the code way shorter, way better separated, and what's best - way more resilient to both logical and memory-related bugs. 🐞
If you haven't yet dabbled in ranges yourself, I've prepared a kind of cheatsheet reference article exploring many everyday use cases and how they can be improved by using the std::ranges library. 📏
You can read the article for free on my Medium:
➤ https://medium.com/@nerudaj/you-need-to-start-using-c-s-ranges-cf80c9f38602What are your experiences with this library? Tell me in the comments 👇
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
C++ Insights - Episode 67: C++23: Why if consteval can make your code better
In this episode, you'll learn how C++23's if consteval helps you avoiding mistakes.
-
C++ Insights - Episode 67: C++23: Why if consteval can make your code better
In this episode, you'll learn how C++23's if consteval helps you avoiding mistakes.
-
Can somebody explain to me, why the last static assert fails? The value type has <=> operator returning strong ordering and std::map is clearly capable of having strong-ordered <=> operator.
Godbolt link: https://godbolt.org/z/xnaaoWxaq
-
Can somebody explain to me, why the last static assert fails? The value type has <=> operator returning strong ordering and std::map is clearly capable of having strong-ordered <=> operator.
Godbolt link: https://godbolt.org/z/xnaaoWxaq
-
C++ Insights - Episode 66: How C++23 handles temporary objects in range-based for-loops
In this episode, you'll learn how C++23 reduces undefined behavior in range-based for-loops for you.
-
C++ Insights - Episode 66: How C++23 handles temporary objects in range-based for-loops
In this episode, you'll learn how C++23 reduces undefined behavior in range-based for-loops for you.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
We're doing some natural language processing at Safetica, so we had to integrate a tokenizer.
First, we started with HF tokenizers that use Rust as the underlying implementation. Since we consume it as a C# package and native runtimes are not shipped for Mac (thanks Apple for preventing organizations from virtualizing Macs), I made my own C++ implementation.
Naive implementation in 60 lines of code, using std::map. Was slower than Rust's impl. By about 25%.
Swapped std::map for std::flat_map. It instantly outperformed the Rust implementation. By about 20%. Sure, my impl doesn't have the full feature, but we don't need that.
Flat map is frigging cool. It is a C++23 feature, so it is not available in all compilers, but you can find open-source implementations on GitHub.
-
We're doing some natural language processing at Safetica, so we had to integrate a tokenizer.
First, we started with HF tokenizers that use Rust as the underlying implementation. Since we consume it as a C# package and native runtimes are not shipped for Mac (thanks Apple for preventing organizations from virtualizing Macs), I made my own C++ implementation.
Naive implementation in 60 lines of code, using std::map. Was slower than Rust's impl. By about 25%.
Swapped std::map for std::flat_map. It instantly outperformed the Rust implementation. By about 20%. Sure, my impl doesn't have the full feature, but we don't need that.
Flat map is frigging cool. It is a C++23 feature, so it is not available in all compilers, but you can find open-source implementations on GitHub.
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
Did you know about the C++ Insights YouTube channel?
https://youtube.com/@andreas_fertig
You get a new video there every third Wednesday of the month.
The next video goes out in less than 24 hours!
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
You write C++ for an embedded environment and going to CppCon? Then check out my workshop:
Safe and Efficient C++ for Embedded Environments📍 In-person @CppCon
📅 Sat & Sun, Sept 13–14
🥗 Lunch included👉 Book now as seats are limited
-
I'm thrilled to let you know that I'll give the workshop Safe and Efficient C++ for Embedded Environments at CppCon
-
I'm thrilled to let you know that I'll give the workshop Safe and Efficient C++ for Embedded Environments at CppCon
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11? Very, very yes.
Is it complete? No. But it is functional enough.
Am I pleased with it? Also very yes!
Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
-
I will be speaking at Meeting C++ 2025! Jens did an amazing job bringing the full schedule up in no time! Yes. Meeting C++ is again in December, but you can already see the schedule. My talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!
-
I will be speaking at Meeting C++ 2025! Jens did an amazing job bringing the full schedule up in no time! Yes. Meeting C++ is again in December, but you can already see the schedule. My talk's title is "Embedded-Friendly C++: Features That Make a Difference". Come and join me there!
-
How I did speed up the CI build time for C++ Insights
https://andreasfertig.com/blog/2025/06/ci-pipeline-improvments-for-cpp-insights/
-
How I did speed up the CI build time for C++ Insights
https://andreasfertig.com/blog/2025/06/ci-pipeline-improvments-for-cpp-insights/
-
C++ Insights upgraded to Clang 20 🎉🚀🥳
https://andreasfertig.com/blog/2025/05/cpp-insights-now-uses-clang-20/
-
C++ Insights upgraded to Clang 20 🎉🚀🥳
https://andreasfertig.com/blog/2025/05/cpp-insights-now-uses-clang-20/