Best of C++June 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    I _____ hate arrays in C++!

    The post explores the complexities and pitfalls of using arrays in C++, particularly focusing on array-to-pointer conversion. It highlights the differences between arrays and pointers, situations where conversion does and does not occur, and the challenges with iteration, lambda expressions, and multidimensional arrays. Emphasizing the safety and convenience of using alternatives like std::array and std::span, the post ultimately questions the worth of built-in arrays in modern C++.

  2. 2
    Video
    Avatar of isocppC++·2y

    Linkers, Loaders and Shared Libraries in Windows, Linux, and C++ - Ofek Shilon - CppCon 2023

    The talk covers the concepts of linkers, loaders, and shared libraries in the context of Windows, Linux, and C++. It explains the differences in how linkers and loaders function across these platforms, focusing on the terms like shared objects, DLLs, symbols, and position-independent code. Additionally, it discusses practical considerations and recommendations for developers, such as building libraries with specific flags to optimize load times and improve security. The differences in symbol visibility, lazy binding, and interposition between Linux and Windows are highlighted, with suggestions for best practices in library development.

  3. 3
    Article
    Avatar of thecodedmessageThe Coded Message·2y

    Can C++ fix its biggest problem?

    C++'s lack of memory safety, highlighted by issues discussed between Dr. Bjarne Stroustrup and the NSA, remains its biggest problem. While migrating to memory-safe languages like Rust, Java, or C# is a solution, there is also a possibility of making C++ itself memory safe through initiatives like Circle C++. The post argues that memory safety will become a standard expectation across all programming languages, pushing C++ towards legacy status.