Intermediate C++: Working with Temporary Files

1. Temporary Files Everyone knows about temporary files; some data needs to be saved temporarily, and these temporary files are not particularly useful. However, it is precisely because they are not very useful that they are needed in certain scenarios. For example, some unimportant log data, some cached intermediate files, etc. These data will eventually … Read more

FBGEMM: A Remarkable C++ Library for Efficient Matrix Operations

FBGEMM (Facebook General Matrix Multiplication) is a C++ library developed by Meta (Facebook) that is primarily used for low-precision, high-performance matrix multiplication and convolution operations in server-side inference. It is designed for small batch data and can significantly improve inference efficiency while supporting various techniques to reduce precision loss, such as row-wise quantization and outlier-aware … Read more

Tarjan’s Algorithm for Finding the Lowest Common Ancestor (LCA)

1. Introduction When dealing with tree structures, it is common to encounter the need to find the Lowest Common Ancestor (LCA) of two nodes. The LCA is defined as the furthest node from the root among all common ancestors of the two nodes in the tree (i.e., the node with the maximum depth). For example, … Read more

After Suggesting to Abandon C/C++, Azure CTO Criticizes Git: The Most Unintuitive and Clunky

Produced by | OSC Open Source Community (ID:oschina2013)Following the call to stop using C/C++ for new projects and switch to Rust, Microsoft Azure CTO and Sysinternals lead developer Mark Russinovich’s recent social media post criticizing Git has sparked widespread discussion. He stated: Git once again makes me want to pull my hair out. It has … Read more

Detailed Explanation of OOM (Object-Oriented Memory) Types in C++

What is OOM Type OOM (Object-Oriented Memory) types refer to those classifications in C++ that are closely related to object lifecycle and memory management. Understanding these types is crucial for writing safe and efficient C++ code. Main Classifications of OOM Types 1. Trivial Types Characteristics: Has a trivial default constructor Has a trivial copy/move constructor … Read more

Deploying Inference with OpenCV 4.8 and YOLO 11 in C++

Click the blue text above to follow us WeChat Official Account:OpenCV Academy Follow us for more knowledge on computer vision and deep learning Since the release ofYOLOv5 version 7.0, and the introduction of YOLOv8 and YOLO 11, previous versions of OpenCV 4.6 can no longer load exported ONNX format models. Only OpenCV 4.7 and above … Read more

April Programming Language Rankings: C++ Ranks Second!

Click the blue text above to follow us WeChat Official Account:OpenCV Academy Follow us for more knowledge on computer vision and deep learning June TIOBE Index Rankings The TIOBE Programming Community Index is an indicator of the popularity of programming languages. This index is updated monthly. The ratings are based on the number of skilled … Read more

Treasure of the C++ Standard Library: Easily Find Maximum Values with std::max_element

1. Introduction to std::max_element <span>std::max_element</span> is an efficient algorithm provided in the C++ Standard Library’s <span><algorithm></span> header file, used to find the maximum element within a given range. It has the following advantages over manually written loops: Simplicity: One line of code replaces multiple lines of loops Safety: Automatically handles boundary conditions Generality: Applicable to … Read more