home.social

#cpp23 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cpp23, aggregated by home.social.

  1. 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:
    youtube.com/watch?v=i2bUe7kA61w

  2. 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:
    youtube.com/watch?v=i2bUe7kA61w

  3. 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:
    youtube.com/watch?v=i2bUe7kA61w

  4. 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:
    youtube.com/watch?v=i2bUe7kA61w

  5. 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.

    Watch here:
    youtube.com/watch?v=i2bUe7kA61w

  6. 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:
    youtube.com/watch?v=QcOiQp0xzzQ

  7. 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.

    andreasfertig.com/blog/2026/04

    #cplusplus #cpp #cpp20 #cpp23

  8. C++ Insights - Episode 71: C++23: multidimensional operator[]

    In this episode, you'll learn about the change to the operator[] in C++23.

    youtu.be/_wIj799nLOc

    #cppinsights #cpp #cpp23

  9. Did you know about the C++ Insights YouTube channel?

    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!

    #cppinsights #cpp #cpp23

  10. 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

  11. 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:

    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 shop.compiler-explorer.com/pro 🤩

    #cpp #cpp23 #cplusCplus #programming

  12. 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:
    medium.com/@nerudaj/you-need-t

    What are your experiences with this library? Tell me in the comments 👇

    #cpp #softwareengineering #memorysafety #cpp23

  13. 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:
    medium.com/@nerudaj/you-need-t

    What are your experiences with this library? Tell me in the comments 👇

    #cpp #softwareengineering #memorysafety #cpp23

  14. 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:
    medium.com/@nerudaj/you-need-t

    What are your experiences with this library? Tell me in the comments 👇

    #cpp #softwareengineering #memorysafety #cpp23

  15. 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:
    medium.com/@nerudaj/you-need-t

    What are your experiences with this library? Tell me in the comments 👇

    #cpp #softwareengineering #memorysafety #cpp23

  16. 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:
    medium.com/@nerudaj/you-need-t

    What are your experiences with this library? Tell me in the comments 👇

  17. Did you know about the C++ Insights YouTube channel?

    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!

    #cppinsights #cpp #cpp23

  18. 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.

    youtu.be/9bHSiqXZhFI

    #cppinsights #cpp #cpp23

  19. 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: godbolt.org/z/xnaaoWxaq

    #cpp #cpp23 #programming #help

  20. 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.

    youtu.be/ay8BnkWKKWA

    #cppinsights #cpp #cpp23

  21. Did you know about the C++ Insights YouTube channel?

    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!

    #cppinsights #cpp #cpp23

  22. 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.

    #cpp #rust #cpp23 #programming #NLP #ai

  23. Did you know about the C++ Insights YouTube channel?

    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!

    #cppinsights #cpp #cpp23

  24. 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

    fertig.to/workshop

    #cpp #cpp20 #cpp23 #workshop

  25. 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

    #cpp #cpp20 #cpp23 #workshop

    fertig.to/workshop

    #cpp #cpp20 #cpp23 #workshop

  26. 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.

  27. 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.

  28. 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.

  29. Did I just hand-write an implementation of std::expected for use in ? 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 ? I dunno, maybe. We'll see.

  30. 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.

  31. 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!

    #cpp #cpp23

  32. 🎉 🎉 C23 and C++23 are finally joining the quadruple precision club, by bringing a standard way to handle 128-bit floating point numbers!
    (FP16 is also here if you need it)

    Here is hoping that a future Fortran standard will adopt the C_Float128 kind specifier that gcc/gfortran already has as an extension.
    en.cppreference.com/w/cpp/type

    #c23 #cpp23 #cpp #ieee754 #Fortran #floatingpoint

  33. CW: Явне оголошення this у :cpp_language: 23

    У C++ 23 додали можливість явно вказати обʼєкт класу над яким виконується метод в параметрах не статичних і невіртуальних методів.

    struct X {
        void foo(this X const& self, int i); // same as void foo(int i) const &;
    //  void foo(int i) const &; // Error: already declared
     
        void bar(this X self, int i); // pass object by value: makes a copy of “*this”
    };
    

    За допомоги цієї функціональності можна оновити використання CRTP.

    // a CRTP trait
    struct add_postfix_increment {
        template<typename Self>
        auto operator++(this Self&& self, int) {
            auto tmp = self; // Self deduces to "some_type"
            ++self;
            return tmp;
        }
    };
     
    struct some_type : add_postfix_increment {
        some_type& operator++() { ... }
    };
    

    Більше почитати про це можна тут:

    #cpp #cpp23 #explicit_this #crtp #this #self #template #шаблони #нововведення

  34. Stephan is busy, so I'm on my private "🐞 STL Bug Bash II" as he calls it.

    With
    * a simple fix in <chrono> 🥲
    * a hacky 😦 workaround in <chrono>
    * and a compatible (!) attachment in module 'std' of all the entities from the C++ standard library 🙄

    I can mix #includes and import std from the modularized ms-stl 🎉🚀✨

    Gradual adoption of a modularized #cpp20 or #cpp23 standard library is now possible as soon as said issues are fixed and publicly available!

  35. Does anyone know why the paper N4937 in the mailing-2023-01 is not accessible ?

    N4937
    Programming Languages — C++ Extensions for Library Fundamentals, Version 3 Thomas Köppe 2022-12-15 2023-01 WG21

    The URL is open-std.org/JTC1/SC22/WG21/pr

    Anyone knows ?

    #cc #cpp #isocpp #cplusplus #isocplusplus #programming #language #community #cc23 #cpp23 #cplusplus23 #isocplusplus23 #wg21

  36. Does anyone know why the paper N4937 in the mailing-2023-01 is not accessible ?

    N4937
    Programming Languages — C++ Extensions for Library Fundamentals, Version 3 Thomas Köppe 2022-12-15 2023-01 WG21

    The URL is open-std.org/JTC1/SC22/WG21/pr

    Anyone knows ?