Best of C++September 2024

  1. 1
    Article
    Avatar of brevzinBarry's C++ Blog·2y

    Code Generation in Rust vs C++26

    The post compares how Rust and the upcoming C++26 handle code generation and reflection. While C++26 is working on integrating reflection capabilities, Rust excels in code generation using declarative and procedural macros. Key examples include pretty-printing structs and JSON serialization, highlighting the differences in syntax and library design between the two languages. The discussion emphasizes how Rust's derive macros inject necessary implementations automatically, whereas C++ uses introspection to achieve similar results with less boilerplate code.

  2. 2
    Article
    Avatar of c_communityC/C++ Community·2y

    🔧 Kernel Development with C++

    Explore the essentials of kernel programming using C++, including setup, project structuring, and implementing C++ features in a kernel context.

  3. 3
    Article
    Avatar of c_communityC/C++ Community·2y

    💡 Tip: Smart pointers help prevent memory leaks and dangling pointers!

    Smart pointers are recommended for modern C++ applications to help prevent memory leaks and dangling pointers. Understand when and why they should be preferred over manual memory management.

  4. 4
    Article
    Avatar of p99confP99 Conf·2y

    Rust vs. Zig – and C++ and Mojo – for Systems Programming

    At P99 CONF, a debate between Jarred Sumner, Pekka Enberg, and Glauber Costa on ThePrimeagen's Twitch stream explored the benefits and drawbacks of Rust and Zig for systems programming. Key points included Rust's memory safety and robust ecosystem, and Zig's low-level control and better interoperability with C. They also touched on Mojo's potential, particularly for machine learning, and agreed that both Rust and Zig offer significant advantages over older versions of C++.

  5. 5
    Article
    Avatar of mariusbancilaMarius Bancila·2y

    What’s new in C++26 (part 1)

    C++26 introduces several new language and library features, such as specifying a reason for deleting a function, using placeholder variables with no names, and allowing structured binding declarations as conditions. Additionally, static_assert messages can now be user-generated at compile time with string-like objects.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    std::array in C++ isn't slower than array in C

    The post discusses the performance of std::array in C++ compared to built-in C arrays. It examines library implementations (LLVM and GNU), assembler code, and benchmarks to show that std::array is not slower than C arrays, especially when compiler optimizations are enabled. Finally, it addresses concerns about object file sizes and highlights the benefits of using std::array over C arrays.

  7. 7
    Article
    Avatar of isocppC++·2y

    CppCon 2024: Data Structures That Make Video Games Go...

    Al-Afiq Yeong, a Senior Systems Programmer at Criterion Games, works on optimizing performance, managing memory efficiently, and developing technologies for future games using Frostbite.

  8. 8
    Article
    Avatar of cpplibC++ LibHunt·2y

    Awesome C++ Weekly - Issue 429, Sep 05, 2024

    This week's highlights include a 5-minute CMake survival guide, the release of the Proxy 3 Library for dynamic polymorphism, visualizing boost::unordered_map in GDB, and a survey on Qt Creator. Additionally, it covers various trending C++ libraries and projects such as a Swiss Army Knife for PC gaming and a local neural text-to-speech system.

  9. 9
    Article
    Avatar of isocppC++·2y

    C++ programmer's guide to undefined behavior: part 6 of 11

    This guide delves into the nuances and pitfalls of undefined behavior in C++, focusing on variadic functions, the subscript operator in associative containers, and intricacies with iostreams. It highlights potential errors and undefined behavior scenarios that can occur with these features, providing practical examples and solutions. The chapter also touches on issues related to zero-sized types in structures and optimizing the size of data structures in C++.

  10. 10
    Article
    Avatar of vsVisual Studio Blog·2y

    Incorporate GitHub Copilot into your daily flow

    Visual Studio 17.11 introduces new features for GitHub Copilot, enhancing code completions with Inline Chat for better suggestions and refinement. The Chat Window feature allows for broader context and record-keeping. GitHub Copilot now provides AI-generated summaries for symbols and descriptions within the editor. Upcoming updates will include code fixes integrated into the lightbulb and error list functionalities, offering explanations and solutions for C# and C++ developers.

  11. 11
    Article
    Avatar of c_communityC/C++ Community·2y

    Talk about different kinds of parsers and why С++ is difficult to parse

    PVS-Studio is hosting its first webinar for C++ programmers, covering grammars in C++, different kinds of parsers, and tricks to avoid parsing slowdowns. The webinar will take place on October 10, 2024, at 12:00 PM UTC+1. C++ enthusiasts are invited to join.