home.social

#moderncpp — Public Fediverse posts

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

fetched live
  1. What can C++ developers expect from C++26 and beyond?

    In this final part of the interview, Nicolai Josuttis and Jesper Pedersen talk about C++26, the feature freeze process, Contracts, the growing role of Reflection, and more.

    Watch here: youtube.com/watch?v=2vsSJNWAiDw

    #CPlusPlus #CPP #Cpp26 #Cpp29 #ModernCpp
    youtube.com/watch?v=2vsSJNWAiDw

  2. What can C++ developers expect from C++26 and beyond?

    In this final part of the interview, Nicolai Josuttis and Jesper Pedersen talk about C++26, the feature freeze process, Contracts, the growing role of Reflection, and more.

    Watch here: youtube.com/watch?v=2vsSJNWAiDw


    youtube.com/watch?v=2vsSJNWAiDw

  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.

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

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

  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.

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

  7. QtPass 1.5.0 is released for public

    Modern C++17, combined with improved Qt support, add in fixes, cleanup, packaging work, CI and linting improvements, and updated translations.
    Release notes: <github.com/IJHack/QtPass/relea>
    #QtPass #Qt #CPP17 #ModernCpp #FOSS #PasswordStore

  8. QtPass 1.5.0 is released for public

    Modern C++17, combined with improved Qt support, add in fixes, cleanup, packaging work, CI and linting improvements, and updated translations.
    Release notes: <github.com/IJHack/QtPass/relea>
    #QtPass #Qt #CPP17 #ModernCpp #FOSS #PasswordStore

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

  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

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

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

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

    #cplusplus #moderncpp #ranges #views #programming #cpp #SmallWeb

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

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

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

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

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

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

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

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

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

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

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

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

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

    #cpp #moderncpp

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

    #cpp #moderncpp

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

  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/

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

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

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

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

  34. I won't be the first to say this, but we need to retire the phrase "Modern C++". I mean, C++11 was 12 years ago.

    I understand that branding was necessary back then due to significant changes in the language and library, but it is ridiculous to continue to cleave language versions like that.

    For my part, I just removed "Modern" from a course title, and I'm not looking back. 🚀

    #cpp #cplusplus #modernCpp

  35. I won't be the first to say this, but we need to retire the phrase "Modern C++". I mean, C++11 was 12 years ago.

    I understand that branding was necessary back then due to significant changes in the language and library, but it is ridiculous to continue to cleave language versions like that.

    For my part, I just removed "Modern" from a course title, and I'm not looking back. 🚀

    #cpp #cplusplus #modernCpp

  36. Don't judge me too much....refactoring some code ATM, and I tend to use a lot of ranges,
    Problem is this code has lots of pointers, so getting access to the values is a pain.
    So I made this godbolt.org/z/sx8K5qG8j to adapt pointer based inputs as needed.
    Any refinement / blindingly obvious alternative to keep the range based code clean?

  37. Don't judge me too much....refactoring some code ATM, and I tend to use a lot of ranges,
    Problem is this code has lots of pointers, so getting access to the values is a pain.
    So I made this godbolt.org/z/sx8K5qG8j to adapt pointer based inputs as needed.
    Any refinement / blindingly obvious alternative to keep the range based code clean?

    #cpp #cplusplus #ranges #moderncpp #programming

  38. So I finally have an example that underlines my gut feeling of the else-if-statements being #harmful in modern C++.

    Consider test(char) being a function returning a std::optional<>:

    if (const auto x = test('A'))
    handle_a(*x);
    else if (test('B'))
    handle_b(*x);

    The function handle_b() will receive the invalid optional returned by test('A') instead of the one returned by test('B') without the compiler providing any warning.

    #cpp #moderncpp

    Maybe something for your blog, @lefticus

  39. So I finally have an example that underlines my gut feeling of the else-if-statements being #harmful in modern C++.

    Consider test(char) being a function returning a std::optional<>:

    if (const auto x = test('A'))
    handle_a(*x);
    else if (test('B'))
    handle_b(*x);

    The function handle_b() will receive the invalid optional returned by test('A') instead of the one returned by test('B') without the compiler providing any warning.

    #cpp #moderncpp

    Maybe something for your blog, @lefticus