Tagged articles
366 articles
Page 1 of 4
CodeTrend
CodeTrend
Apr 26, 2026 · Industry Insights

CodeTrend Daily Report – Top Trending GitHub Repos on April 26 2026

The CodeTrend daily report for April 26 2026 highlights the most starred GitHub repositories across languages, featuring projects like LadybirdBrowser, TensorFlow, PostHog, Home‑Assistant, and Claude‑Code, and provides today’s, this week’s and this month’s star gains with direct repository links.

AI toolsC++GitHub trends
0 likes · 43 min read
CodeTrend Daily Report – Top Trending GitHub Repos on April 26 2026
IT Services Circle
IT Services Circle
Mar 22, 2026 · Fundamentals

Bridging Incompatible C++ Logging Interfaces with the Adapter Pattern

This article explains how to use class and object adapters in C++ to reconcile mismatched logging interfaces, allowing seamless integration of third‑party loggers without modifying existing system code, and demonstrates the transition from inheritance‑based adapters to composition‑based adapters for greater flexibility.

Adapter PatternC++Class Adapter
0 likes · 8 min read
Bridging Incompatible C++ Logging Interfaces with the Adapter Pattern
Java Tech Enthusiast
Java Tech Enthusiast
Mar 22, 2026 · Backend Development

How to Bridge Incompatible C++ Logging Interfaces with Adapter Patterns

A C++ developer faces a mismatched logging API between an internal ILogger interface and a third‑party FastLogger library, and the article walks through class‑adapter inheritance, its limitations, and a more flexible object‑adapter composition solution that enables runtime switching across multiple logger implementations.

Adapter PatternC++Design Patterns
0 likes · 9 min read
How to Bridge Incompatible C++ Logging Interfaces with Adapter Patterns
Deepin Linux
Deepin Linux
Mar 22, 2026 · Fundamentals

Mastering const and static in C++: When and How to Use Them

This article provides a comprehensive guide to the const and static modifiers in C/C++, covering their distinct purposes, usage with variables, pointers, functions, and class members, and answering common interview questions with clear explanations and practical code examples.

C++constinterview
0 likes · 17 min read
Mastering const and static in C++: When and How to Use Them
Deepin Linux
Deepin Linux
Mar 17, 2026 · Backend Development

How to Build a High‑Performance gRPC File Transfer Service from Scratch

This step‑by‑step tutorial shows how to configure gRPC, define protobuf service contracts, and implement streaming upload and download in C++, covering environment setup, code generation, server and client logic, testing, and performance tuning for efficient file transfer.

C++MicroservicesProtocol Buffers
0 likes · 44 min read
How to Build a High‑Performance gRPC File Transfer Service from Scratch
DevOps Coach
DevOps Coach
Jan 22, 2026 · Fundamentals

How a Six-Line C++ Lambda Cost $2.3M and Why Rust Saved the Day

A six‑line C++ lambda caused a $2.3 million loss due to a dangling reference, and after months of debugging the team rewrote the order‑matching engine in Rust, cutting latency by 19 % and eliminating the hidden ‘safety tax’ of memory‑unsafe code.

C++Memory SafetyProduction Incident
0 likes · 7 min read
How a Six-Line C++ Lambda Cost $2.3M and Why Rust Saved the Day
IT Services Circle
IT Services Circle
Jan 9, 2026 · Interview Experience

How to Find the Longest Balanced Substring in a Binary String (LeetCode 2609)

The article presents LeetCode problem 2609, defining a balanced substring as a consecutive segment of zeros followed by an equal number of ones, and provides a linear‑time solution using a two‑pointer scan that counts consecutive zeros and ones, with implementations in Java, C++, Python, and TypeScript, along with complexity analysis.

Balanced SubstringC++Java
0 likes · 7 min read
How to Find the Longest Balanced Substring in a Binary String (LeetCode 2609)
ITPUB
ITPUB
Dec 27, 2025 · Fundamentals

How to Test Membership in 4 Billion Numbers Using Only 1 GB Memory

This article explains how to determine whether a given unsigned integer belongs to a set of 4 billion distinct numbers within a 1 GB memory limit, comparing a bitmap approach with a Bloom filter, providing detailed implementation steps and C++ code examples for both methods.

BitmapC++bloom-filter
0 likes · 8 min read
How to Test Membership in 4 Billion Numbers Using Only 1 GB Memory
Deepin Linux
Deepin Linux
Nov 28, 2025 · Backend Development

Boosting C++ Thread Pool Performance: Queue and Memory Optimizations

This article explains why C++ thread pools often hit bottlenecks in high‑concurrency scenarios and provides practical techniques—such as lock‑granularity tuning, lock‑free queues, object‑pool reuse, and pre‑allocation—to improve task scheduling and memory management without relying on external frameworks.

C++concurrencylock-free queue
1 likes · 44 min read
Boosting C++ Thread Pool Performance: Queue and Memory Optimizations
Liangxu Linux
Liangxu Linux
Nov 24, 2025 · Fundamentals

Understanding Struct Alignment and Over‑Aligned Types in C/C++

This article explains the natural alignment requirements of C/C++ data types, how structs are padded and aligned based on member alignments, the hardware, cache and compiler reasons for alignment, and the concept of over‑aligned types with practical examples and usage guidelines.

CC++compiler
0 likes · 11 min read
Understanding Struct Alignment and Over‑Aligned Types in C/C++
Liangxu Linux
Liangxu Linux
Nov 19, 2025 · Fundamentals

Why C/C++ Static Code Analysis Is Essential: Standards, Tools & Best Practices

This article explains why static code analysis is crucial for C/C++ development, outlines major standards such as MISRA, CWE and CERT, reviews both commercial and open‑source analysis tools, and provides guidance on selecting the right solution based on project needs, budget and integration requirements.

C++CWEMISRA
0 likes · 12 min read
Why C/C++ Static Code Analysis Is Essential: Standards, Tools & Best Practices
Deepin Linux
Deepin Linux
Nov 16, 2025 · Fundamentals

Unlock Asynchronous Power: Master Callback Functions in 3 Minutes

This article explains what callback functions are, how they enable asynchronous programming across languages, demonstrates their implementation with JavaScript, C/C++, Python and HTML examples, and discusses practical use‑cases, advantages, pitfalls like callback hell, and modern alternatives such as Promises and async/await.

AsynchronousC++Event-driven
0 likes · 23 min read
Unlock Asynchronous Power: Master Callback Functions in 3 Minutes
Deepin Linux
Deepin Linux
Oct 20, 2025 · Fundamentals

How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code

This article explains what memory leaks are in C++ on Linux, why they matter, how they occur, and provides practical guidance on detecting them with tools like Valgrind, AddressSanitizer, GDB, and mtrace, followed by concrete solutions such as proper new/delete usage, smart pointers, RAII, custom allocators, and memory pools.

AddressSanitizerC++Linux
0 likes · 39 min read
How to Detect and Fix C++ Memory Leaks on Linux: Tools, Tips, and Code
Liangxu Linux
Liangxu Linux
Oct 3, 2025 · Fundamentals

Why Modern C++ Templates Are Getting Simpler: From SFINAE to Concepts

This article traces the evolution of C++ template constraints—from the cryptic SFINAE and enable_if techniques, through the clearer constexpr if introduced in C++17, to the expressive and user‑friendly Concepts of C++20—showing how each step makes generic programming more readable and maintainable.

C++C++20SFINAE
0 likes · 7 min read
Why Modern C++ Templates Are Getting Simpler: From SFINAE to Concepts
Deepin Linux
Deepin Linux
Sep 28, 2025 · Backend Development

Unlocking High‑Performance Delayed Tasks with Sogou’s C++ Workflow Framework

Workflow, Sogou’s open‑source C++ asynchronous framework, tackles the core challenge of efficiently processing massive delayed tasks in distributed systems by integrating a time‑wheel based scheduler, non‑blocking I/O, and lightweight APIs, delivering millisecond‑level precision and dramatically reduced resource consumption.

AsynchronousC++task scheduling
0 likes · 60 min read
Unlocking High‑Performance Delayed Tasks with Sogou’s C++ Workflow Framework
Liangxu Linux
Liangxu Linux
Sep 27, 2025 · Fundamentals

10 Proven Strategies to Make Embedded C/C++ Code Truly Portable

This article presents twelve practical guidelines—ranging from layered design and adapter patterns to careful handling of standard functions and platform quirks—that help embedded developers write C/C++ code that can be reliably moved across different hardware and operating systems.

CC++Portability
0 likes · 10 min read
10 Proven Strategies to Make Embedded C/C++ Code Truly Portable
IT Services Circle
IT Services Circle
Sep 27, 2025 · Fundamentals

Why Google Is Betting on a New C++ Successor for the Next Decade

Google’s ambitious eight‑year roadmap for the experimental Carbon language aims to create a modern, safer, C++‑compatible system language, detailing its tooling, ecosystem, migration strategy via FFI, and why it’s preferred over Rust despite the long development horizon.

C++CarbonGoogle
0 likes · 6 min read
Why Google Is Betting on a New C++ Successor for the Next Decade
Deepin Linux
Deepin Linux
Sep 27, 2025 · Fundamentals

Why Lock‑Free Queues Are the Secret to Scaling C++ Concurrency

Lock‑free queues replace costly mutexes with atomic operations, eliminating lock contention, deadlocks, and scalability limits, and this article explains their principles, classic implementations, C++ code examples, performance testing, and real‑world applications such as game engines and high‑throughput servers.

C++CASQueue
0 likes · 38 min read
Why Lock‑Free Queues Are the Secret to Scaling C++ Concurrency
Tencent Technical Engineering
Tencent Technical Engineering
Sep 26, 2025 · Fundamentals

10 Hidden C++ Performance Traps Every Developer Must Avoid

This article reveals ten common C++ performance pitfalls—from costly abstractions and virtual functions to hidden copies, destructors, and misuse of smart pointers—while also showcasing practical language features and optimization techniques that can dramatically improve runtime efficiency in production code.

C++best practicesoptimization
0 likes · 28 min read
10 Hidden C++ Performance Traps Every Developer Must Avoid
php Courses
php Courses
Sep 24, 2025 · Fundamentals

Master C++ Debugging: GDB and Valgrind from Basics to Advanced

This article provides a comprehensive guide to C++ debugging, covering the installation, core commands, and practical examples of GDB and Valgrind, along with advanced techniques, common pitfalls, and best‑practice recommendations to help developers efficiently locate and fix memory and segmentation errors.

C++Debugginggdb
0 likes · 9 min read
Master C++ Debugging: GDB and Valgrind from Basics to Advanced
php Courses
php Courses
Sep 23, 2025 · Fundamentals

Unlock C++ Speed: Mastering -O2 and -O3 Compiler Optimizations

This article explains C++ compiler optimization levels, compares -O2 and -O3, provides practical usage examples and best‑practice guidelines, and demonstrates performance gains with benchmark code, helping developers choose the right optimization flag for development and release builds.

C++Compiler OptimizationO2
0 likes · 10 min read
Unlock C++ Speed: Mastering -O2 and -O3 Compiler Optimizations
Liangxu Linux
Liangxu Linux
Sep 3, 2025 · Fundamentals

Can main() Recursively Call Itself? Limits, Risks, and Safer Alternatives

This article examines whether the C/C++ entry‑point function main can call itself recursively, outlines the relevant language standards, shows compiler support and example code, discusses practical limitations such as stack size and portability, and recommends safer programming patterns.

CC++Recursion
0 likes · 8 min read
Can main() Recursively Call Itself? Limits, Risks, and Safer Alternatives
Liangxu Linux
Liangxu Linux
Aug 31, 2025 · Fundamentals

How Linkers Resolve Virtual Addresses Before a Program Runs

This article explains why C/C++ function and global variable addresses are fixed at link time, how modern operating systems provide each process with a private virtual address space, the role of ABI and linker scripts in defining segment layout, and how the loader later maps those virtual addresses to physical memory.

C++ELFLinker
0 likes · 6 min read
How Linkers Resolve Virtual Addresses Before a Program Runs
Liangxu Linux
Liangxu Linux
Aug 31, 2025 · Fundamentals

Mastering C++ static: 6 Powerful Uses You Must Know

This article explains the versatile static keyword in C++ by covering six practical patterns—including local static variables, file‑scope static globals, static class members, static member functions, lazy‑initialized singletons, and compile‑time constants—complete with clear code examples and usage tips.

C++ConstantsSingleton
0 likes · 9 min read
Mastering C++ static: 6 Powerful Uses You Must Know
Liangxu Linux
Liangxu Linux
Aug 28, 2025 · Fundamentals

When to Use Function Templates vs Class Templates in C++? A Practical Guide

This article explains the differences between C++ function templates and class templates, shows when each should be chosen, provides clear code examples for both, and offers practical tips, advanced techniques, and a decision guide to help developers select the right template for their tasks.

C++class templatefunction template
0 likes · 9 min read
When to Use Function Templates vs Class Templates in C++? A Practical Guide
Liangxu Linux
Liangxu Linux
Aug 5, 2025 · Fundamentals

Master C++11 Condition Variables: From Basics to Thread‑Pool Mastery

This article explains what C++11 condition variables are, why they are essential for efficient multithreading, shows their basic usage with std::condition_variable and std::mutex, walks through a producer‑consumer example, demonstrates a thread‑pool implementation, and lists crucial best‑practice tips.

C++C++11concurrency
0 likes · 15 min read
Master C++11 Condition Variables: From Basics to Thread‑Pool Mastery
Liangxu Linux
Liangxu Linux
Jul 10, 2025 · Fundamentals

When to Use const vs constexpr in C++? A Practical Guide

This article explains the differences between C++ const and constexpr, using a kettle analogy, detailed code examples, and practical guidelines to help developers choose the right keyword for compile‑time or runtime constants, improve performance, and write safer code.

C++Compile-timeConstants
0 likes · 8 min read
When to Use const vs constexpr in C++? A Practical Guide
php Courses
php Courses
Jul 8, 2025 · Fundamentals

Master C++ Variables: Types, Declarations, Naming Rules & Conversions

This guide explains what variables are in C++, covers declaration and initialization, details fundamental data types such as int, float, double, char, and bool, outlines naming conventions, and demonstrates both implicit and explicit type conversions with clear code examples.

C++Data TypesVariables
0 likes · 7 min read
Master C++ Variables: Types, Declarations, Naming Rules & Conversions
Deepin Linux
Deepin Linux
Jul 5, 2025 · Backend Development

Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained

This comprehensive guide explores C++ multithreaded network programming for high‑concurrency servers, covering threads, processes, socket basics, TCP/UDP protocols, thread pools, synchronization primitives, lock‑free structures, I/O multiplexing techniques, and a practical high‑performance chat server implementation.

C++I/O MultiplexingNetwork programming
0 likes · 54 min read
Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained
php Courses
php Courses
Jul 2, 2025 · Game Development

Why C++ Dominates Game Development, Systems, and High‑Performance Computing

From powering cutting‑edge 3A games and operating system kernels to accelerating scientific simulations, high‑frequency trading, and embedded IoT devices, C++ remains the go‑to language for high‑performance, low‑level control across diverse domains, thanks to its speed, portability, and fine‑grained memory management.

C++FinTechGame Development
0 likes · 6 min read
Why C++ Dominates Game Development, Systems, and High‑Performance Computing
Deepin Linux
Deepin Linux
Jul 2, 2025 · Backend Development

How to Detect and Fix C++ Deadlocks on Linux Using Shell and GDB

This guide explains why deadlocks occur in Linux C++ multithreaded programs, demonstrates how to reproduce them with sample code, and shows step‑by‑step how to use shell commands and GDB to identify and resolve the deadlock, ensuring stable and efficient execution.

C++DebuggingLinux
0 likes · 18 min read
How to Detect and Fix C++ Deadlocks on Linux Using Shell and GDB
Deepin Linux
Deepin Linux
Jun 21, 2025 · Backend Development

Unlocking High-Concurrency in C/C++: A Deep Dive into Coroutines and Their Implementation

This comprehensive guide explores how coroutines provide a lightweight, lock‑free alternative to traditional threads for high‑concurrency C/C++ server programming, covering their fundamentals, differences from threads, implementation techniques, context switching, scheduler design, epoll integration, timer management, and performance testing.

C++Schedulerasynchronous I/O
0 likes · 57 min read
Unlocking High-Concurrency in C/C++: A Deep Dive into Coroutines and Their Implementation
Liangxu Linux
Liangxu Linux
Jun 21, 2025 · Backend Development

Boost Your Linux C/C++ Skills: 60 Hands‑On Projects from Beginner to Advanced

This article presents a comprehensive, difficulty‑ordered list of 60 small Linux C/C++ projects—ranging from basic command‑line tools to advanced system‑level components—designed to help developers practice core programming concepts, system programming, networking, concurrency, and performance optimization.

Backend DevelopmentC++System Programming
0 likes · 17 min read
Boost Your Linux C/C++ Skills: 60 Hands‑On Projects from Beginner to Advanced
Liangxu Linux
Liangxu Linux
Jun 16, 2025 · Fundamentals

Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained

This article clarifies whether a C++ vector object resides on the stack, heap, or in static storage, explains that its elements are almost always allocated on the heap, covers special cases like small‑vector optimization, and provides interview‑ready answers with sample code and memory‑location experiments.

C++HeapMemory Management
0 likes · 12 min read
Where Does a C++ vector Live? Stack, Heap, or Global Memory Explained
Python Programming Learning Circle
Python Programming Learning Circle
Jun 7, 2025 · Fundamentals

How to Choose the Right Programming Language for Your Project

Choosing the right programming language depends on project requirements such as performance, development speed, platform compatibility, and team expertise, with C++ excelling in low‑level control, Java dominating enterprise back‑ends, Python leading in AI and rapid development, and C# powering Windows and Unity game applications.

CC++Java
0 likes · 9 min read
How to Choose the Right Programming Language for Your Project
Deepin Linux
Deepin Linux
Jun 5, 2025 · Fundamentals

Mastering C++ Move Semantics: Rvalue References and std::move Explained

This article explains C++ move semantics, covering the concepts of lvalues and rvalues, the syntax and rules of rvalue references, how std::move converts lvalues to rvalues, and demonstrates practical applications such as custom class move constructors, STL container optimizations, and return value optimization.

C++move semanticsrvalue references
0 likes · 21 min read
Mastering C++ Move Semantics: Rvalue References and std::move Explained
Deepin Linux
Deepin Linux
May 20, 2025 · Fundamentals

Understanding and Preventing Deadlocks in C++ Multithreaded Programming

This article explains what deadlocks are in C++ multithreaded programming, outlines their causes and four necessary conditions, presents common scenarios and code examples, and offers practical strategies such as consistent lock ordering, std::lock, std::scoped_lock, recursive mutexes, and lock hierarchies to avoid them.

C++Lockconcurrency
0 likes · 20 min read
Understanding and Preventing Deadlocks in C++ Multithreaded Programming
Liangxu Linux
Liangxu Linux
May 3, 2025 · Fundamentals

Why C++ References Aren’t Just Fancy Pointers – A Deep Dive

Discover the true nature of C++ references—from intuitive aliases and their advantages over pointers, to underlying implementation, right‑value and forwarding references, practical use‑cases, common pitfalls, and modern best practices—empowering you to write safer, cleaner, and more efficient C++ code.

C++programmingreferences
0 likes · 19 min read
Why C++ References Aren’t Just Fancy Pointers – A Deep Dive
Deepin Linux
Deepin Linux
Apr 22, 2025 · Backend Development

C++ Serialization: Concepts, Tools, and Best Practices

Serialization in C++ bridges in‑memory objects and persistent or network formats, addressing challenges like byte order, data type compatibility, and complex structures, while the article reviews core principles, binary and text formats, major libraries such as Protobuf, Cereal, Cista++, ThorsSerializer, and offers guidance on selecting and using them effectively.

C++CerealCista++
0 likes · 41 min read
C++ Serialization: Concepts, Tools, and Best Practices
Liangxu Linux
Liangxu Linux
Apr 20, 2025 · Fundamentals

Master the Latest C++ Features: From Auto to Coroutines (C++11‑C++20)

This article provides a concise overview of the most commonly used new features introduced in C++11 through C++20, including auto type deduction, range‑based for loops, smart pointers, lambda expressions, move semantics, structured bindings, concepts, ranges, coroutines, the spaceship operator, and more, with clear code examples.

C++C++11C++14
0 likes · 6 min read
Master the Latest C++ Features: From Auto to Coroutines (C++11‑C++20)
Deepin Linux
Deepin Linux
Apr 19, 2025 · Fundamentals

Understanding C++ Memory Pools: Concepts, Design, and Implementation

This article explains the problems of memory fragmentation and allocation inefficiency in C++ programs, introduces the concept of memory pools, discusses their design principles, advantages, and common implementations, and provides a complete example of a thread‑safe fixed‑size memory pool with code.

AllocatorC++memory pool
0 likes · 29 min read
Understanding C++ Memory Pools: Concepts, Design, and Implementation
Liangxu Linux
Liangxu Linux
Apr 19, 2025 · Fundamentals

Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory

This article traces the evolution of memory layout from early punched‑card computers through assembly‑level innovations, segment‑based designs, and virtual memory, then demonstrates a real 32‑bit Linux C++ program showing where globals, stack, heap, and mapped regions reside, and explains how this knowledge helps debug segmentation faults, stack overflows, and memory leaks.

BSSC++Virtual Memory
0 likes · 13 min read
Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory
Liangxu Linux
Liangxu Linux
Mar 30, 2025 · Fundamentals

Is C++ Heading for Obsolescence? Inside the Language’s Growing Divide

The article examines the intense debate over C++'s future, highlighting government warnings, industry shifts toward Rust, the C++ standards committee’s focus on ABI stability, and the clash between modern‑tool‑driven teams and legacy‑code enterprises, questioning whether the language can stay relevant.

C++RustStandards
0 likes · 15 min read
Is C++ Heading for Obsolescence? Inside the Language’s Growing Divide
Deepin Linux
Deepin Linux
Mar 28, 2025 · Fundamentals

Comprehensive Guide to Using GDB for Debugging C/C++ Programs

This article provides an in-depth tutorial on the GNU Debugger (GDB), covering its purpose, installation, basic and advanced commands, remote debugging, memory analysis, and practical tips for efficiently debugging C/C++ applications on Linux and Windows platforms.

C++DebuggingMemory analysis
0 likes · 25 min read
Comprehensive Guide to Using GDB for Debugging C/C++ Programs
Didi Tech
Didi Tech
Mar 27, 2025 · Operations

Performance Optimization and Architecture of iLogTail for High‑Scale Log Collection

Didi replaced its legacy agent with Alibaba’s open‑source iLogTail, re‑architected it to use a shared thread‑pool and SIMD‑accelerated parsing, rewrote critical plugins in C++ and added robust Kafka retry logic, achieving over twice the throughput while cutting CPU usage by more than half and maintaining near‑zero latency at massive scale.

C++KafkaPerformance Optimization
0 likes · 10 min read
Performance Optimization and Architecture of iLogTail for High‑Scale Log Collection
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 26, 2025 · Cloud Native

How LoongCollector Doubled Log Collection Speed with Four Key Optimizations

This article details the architectural overhaul of iLogtail into LoongCollector, explains why generalization caused a 15% performance drop, and walks through four systematic optimizations—including memory arenas, eliminating shared_ptr, event pooling, and direct serialization—that ultimately restored and doubled log‑collection throughput.

C++GoPerformance Optimization
0 likes · 17 min read
How LoongCollector Doubled Log Collection Speed with Four Key Optimizations
Deepin Linux
Deepin Linux
Mar 21, 2025 · Fundamentals

Understanding Memory Pools: Concepts, Implementations, and Practical Use Cases

This article explains the concept of memory pools, how they reduce allocation overhead and fragmentation compared to traditional malloc/new, describes various pool designs and Linux kernel APIs, provides multiple C and C++ implementations, and discusses performance benefits and typical application scenarios such as servers, real‑time and embedded systems.

C++Linux kernelallocation
0 likes · 40 min read
Understanding Memory Pools: Concepts, Implementations, and Practical Use Cases
Liangxu Linux
Liangxu Linux
Mar 15, 2025 · Fundamentals

How to Quickly Set Up a Full Linux C/C++ Development Environment

This step‑by‑step guide shows how to choose a Linux distribution, install GCC, configure Vim/VS Code/CLion, compile and run C/C++ programs, set up debugging with GDB and Valgrind, automate builds with Makefile or CMake, beautify the terminal, and manage code with Git, all with concrete commands and examples.

C++Development EnvironmentGit
0 likes · 15 min read
How to Quickly Set Up a Full Linux C/C++ Development Environment
Liangxu Linux
Liangxu Linux
Mar 15, 2025 · Fundamentals

How to Catch Memory Bugs with GDB Watchpoints in C/C++

This guide explains how to use GDB watchpoints to monitor specific memory addresses, detect unexpected modifications caused by bugs such as wild pointers or multithreaded writes, and pinpoint the exact code responsible, illustrated with a C++ example that spawns a thread modifying a variable.

C++Memorygdb
0 likes · 8 min read
How to Catch Memory Bugs with GDB Watchpoints in C/C++
IT Services Circle
IT Services Circle
Mar 14, 2025 · Product Management

From a Wedding Seating Problem to a Successful SaaS: The PerfectTablePlan Story

The article recounts how Andy turned a challenging wedding seating arrangement into the PerfectTablePlan software, detailing its development with C++/Qt, use of genetic algorithms and quantum computing, rapid market adoption, extensive marketing tactics, and the eventual creation of a sustainable one‑person business.

C++genetic algorithmproduct-management
0 likes · 9 min read
From a Wedding Seating Problem to a Successful SaaS: The PerfectTablePlan Story
IT Services Circle
IT Services Circle
Mar 11, 2025 · Fundamentals

Ten Modern C++ Features to Boost Readability, Maintainability, and Performance

This article introduces ten widely used modern C++ features—including range‑based for loops with initializers, structured bindings, inline variables, std::optional, std::variant, std::visit, constexpr if, default/delete functions, [[nodiscard]] and std::string_view—explaining their benefits and providing concise code examples.

C++C++17C++20
0 likes · 14 min read
Ten Modern C++ Features to Boost Readability, Maintainability, and Performance
Su San Talks Tech
Su San Talks Tech
Mar 10, 2025 · Fundamentals

Generate All k-Number Combinations from 1 to n (LeetCode 77)

This article explains LeetCode problem 77, describing how to generate every possible combination of k numbers from the range 1 to n using backtracking, and provides complete Java, C++, and Python implementations along with a brief analysis and constraints.

BacktrackingC++Java
0 likes · 6 min read
Generate All k-Number Combinations from 1 to n (LeetCode 77)
21CTO
21CTO
Mar 9, 2025 · Fundamentals

How Bjarne Stroustrup Envisions Safer C++ with Mandatory Guidelines

Bjarne Stroustrup urges the C++ community and the WG21 standards committee to adopt mandatory guideline configuration files, known as Profiles, to improve type and memory safety, while highlighting recent language features, upcoming C++23 and C++26 enhancements, and the broader evolution of the language.

Bjarne StroustrupC++C++23
0 likes · 9 min read
How Bjarne Stroustrup Envisions Safer C++ with Mandatory Guidelines
Liangxu Linux
Liangxu Linux
Mar 5, 2025 · Fundamentals

What Hidden Functions Does C++ Auto‑Generate for Your Classes?

This article explains the seven default special member functions that C++ automatically provides for a class—including constructors, destructors, copy/move operations and address‑of operators—showing when they are sufficient, when they can cause problems such as shallow copies or double frees, and how to implement custom versions to ensure correct resource management.

C++Constructorcopy semantics
0 likes · 17 min read
What Hidden Functions Does C++ Auto‑Generate for Your Classes?
Deepin Linux
Deepin Linux
Mar 1, 2025 · Backend Development

Comprehensive Guide to C++ Network Programming Interview Questions

This article provides an extensive overview of C++ network programming concepts frequently asked in interviews, covering sockets, TCP/UDP differences, I/O multiplexing models, handshake mechanisms, packet framing issues, concurrency strategies, code examples for servers and clients, and performance optimization techniques.

C++Network programmingSockets
0 likes · 85 min read
Comprehensive Guide to C++ Network Programming Interview Questions
IT Services Circle
IT Services Circle
Feb 27, 2025 · Fundamentals

Comprehensive Linux C/C++ Interview Questions and Topics

This article compiles a wide range of Linux C/C++ interview questions covering language fundamentals, data structures, algorithms, operating systems, networking, databases, and general problem‑solving approaches to help candidates assess and improve their technical knowledge.

C++Data StructuresLinux
0 likes · 9 min read
Comprehensive Linux C/C++ Interview Questions and Topics
Liangxu Linux
Liangxu Linux
Jan 25, 2025 · Backend Development

Master GCC, G++ and GDB: From Installation to Advanced Debugging

This guide walks you through installing GCC/G++, compiling single‑ and multi‑file C/C++ programs, using essential compiler options, performing step‑by‑step builds, and leveraging GDB for effective debugging, while also covering common errors and their solutions.

C++CompilationLinux
0 likes · 17 min read
Master GCC, G++ and GDB: From Installation to Advanced Debugging
IT Services Circle
IT Services Circle
Jan 25, 2025 · Fundamentals

Why So Many Programming Languages Start with the Letter “C”

The article explains that the prevalence of programming languages beginning with “C” stems from the historical evolution of BCPL to B to C, after which numerous C‑based derivatives such as C++, C#, Objective‑C, and even unrelated CSS emerged, highlighting C’s foundational role in language design.

CC++language families
0 likes · 7 min read
Why So Many Programming Languages Start with the Letter “C”
Liangxu Linux
Liangxu Linux
Jan 20, 2025 · Fundamentals

Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance

This article explains the fundamental differences between stack and heap memory, covering their structures, allocation strategies, performance characteristics, language-specific examples in Java, C++, and Python, and provides guidance on when to use each type for efficient programming.

C++HeapJava
0 likes · 16 min read
Stack vs Heap Memory: Deep Dive into Allocation, Usage, and Performance
Deepin Linux
Deepin Linux
Jan 13, 2025 · Backend Development

C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study

This article explains why C++ timers are essential for asynchronous programming, presents three implementation approaches—including a simple thread‑chrono version, a Boost.Asio based timer, and a C++11 atomic/condition‑variable design—offers practical optimization tips such as precise intervals, thread‑pool reuse, efficient callbacks, and memory management, and demonstrates their impact with a network‑server case study comparing naïve and optimized solutions.

Boost.AsioC++Thread
0 likes · 22 min read
C++ Timers in Asynchronous Programming: Implementation, Optimization Techniques, and Real‑World Case Study
IT Services Circle
IT Services Circle
Jan 7, 2025 · Backend Development

Fish Shell Rewritten in Rust: Progress, Statistics, and Benefits

Fish Shell, the user-friendly command-line shell for Linux and macOS, is undergoing a major rewrite from C++ to Rust, achieving a near‑complete Rust codebase, extensive contributor activity, and performance improvements while addressing legacy toolchain challenges and enhancing modern functionality.

C++Rustcommand-line
0 likes · 5 min read
Fish Shell Rewritten in Rust: Progress, Statistics, and Benefits
Liangxu Linux
Liangxu Linux
Jan 6, 2025 · Fundamentals

Master Deep vs Shallow Copy in C++ and Follow the Rule of Three/Five

This article explains the concepts of shallow and deep copying in C++, demonstrates their pitfalls such as shared memory and double deletion, and shows how to implement proper copy constructors, assignment operators, and move semantics following the Rule of Three/Five to ensure safe and efficient resource management.

C++Memory ManagementRule of Three
0 likes · 16 min read
Master Deep vs Shallow Copy in C++ and Follow the Rule of Three/Five
Liangxu Linux
Liangxu Linux
Jan 5, 2025 · Fundamentals

Mastering the C++ this Pointer: Usage, Secrets, and Common Pitfalls

This article explains the C++ this pointer, covering its role as a constant pointer to the current object, how it accesses members, resolves name conflicts, enables method chaining, and the way the compiler passes it implicitly, while also noting its limitations in static and global contexts.

C++const pointermember functions
0 likes · 9 min read
Mastering the C++ this Pointer: Usage, Secrets, and Common Pitfalls
IT Services Circle
IT Services Circle
Jan 4, 2025 · Backend Development

Is std::cout Thread‑Safe? Understanding Data Races, Race Conditions, and Practical Solutions in C++

This article examines whether std::cout is thread‑safe, explains the concepts of data race and race condition, demonstrates how interleaved output can occur in multithreaded C++ programs, and presents several solutions—including mutexes, custom wrappers, and C++20 std::osyncstream—to ensure orderly output.

C++data racemutex
0 likes · 10 min read
Is std::cout Thread‑Safe? Understanding Data Races, Race Conditions, and Practical Solutions in C++
Deepin Linux
Deepin Linux
Dec 28, 2024 · Fundamentals

Design and Implementation of a High‑Performance C++ Memory Pool

This article explains the problems of frequent new/delete in C++, introduces memory‑pool concepts, details design principles, outlines a multi‑layer architecture (Thread Cache, Central Cache, Page Cache), provides a complete C++ implementation compatible with std::allocator, and discusses common pitfalls and performance considerations.

AllocatorC++
0 likes · 45 min read
Design and Implementation of a High‑Performance C++ Memory Pool
Deepin Linux
Deepin Linux
Dec 27, 2024 · Fundamentals

Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis

This article provides an in‑depth overview of Valgrind, explaining its architecture, the capabilities of its various tools such as Memcheck, Cachegrind, Callgrind, Helgrind and Massif, and offers step‑by‑step installation, configuration, and practical code examples for detecting memory errors, leaks, and performance bottlenecks in C/C++ programs.

C++Toolchainleak detection
0 likes · 28 min read
Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis
ByteDance SYS Tech
ByteDance SYS Tech
Dec 27, 2024 · Backend Development

How ByteDance Tackled C++ Compilation Bottlenecks and Massive Binary Bloat

ByteDance's STE team dissected the severe compile‑time delays and oversized binary artifacts in their data‑center C++ applications, presenting root‑cause analyses, LLVM bug fixes, and a suite of optimization techniques that together cut build times by up to 50% and reduced binary size by over 80%.

C++CompilationLLVM
0 likes · 26 min read
How ByteDance Tackled C++ Compilation Bottlenecks and Massive Binary Bloat
Deepin Linux
Deepin Linux
Dec 26, 2024 · Fundamentals

Understanding C++ Smart Pointers: Types, Mechanisms, and Best Practices

This article explains how C++ smart pointers—unique_ptr, shared_ptr, weak_ptr and the deprecated auto_ptr—use RAII and reference‑counting to automate memory management, avoid leaks and dangling pointers, and provide guidelines, performance analysis, and practical usage tips for modern C++ development.

C++Memory ManagementRAII
0 likes · 36 min read
Understanding C++ Smart Pointers: Types, Mechanisms, and Best Practices
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 23, 2024 · Backend Development

Unlocking High‑Performance C++ Concurrency: Memory Model, Atomics, and Lock‑Free Techniques

This article explains C++11’s memory model and atomic types, demonstrating how lock‑free concurrency, memory ordering, and synchronization primitives such as fences can be used to achieve high‑performance, race‑free multithreaded code for demanding backend systems like game servers.

C++Lock-Free ProgrammingMemory Model
0 likes · 26 min read
Unlocking High‑Performance C++ Concurrency: Memory Model, Atomics, and Lock‑Free Techniques
JD Retail Technology
JD Retail Technology
Dec 17, 2024 · Mobile Development

JDImage: JD’s Self‑Developed HarmonyOS Image Library – Architecture, Implementation, and Performance Optimizations

This article introduces JD’s self‑developed HarmonyOS image library, explaining the background, research on existing solutions, the decision to build a C++‑based cross‑platform library, its modular architecture, performance optimizations, quality assurance mechanisms, and future development plans.

C++HarmonyOSImage Loading
0 likes · 13 min read
JDImage: JD’s Self‑Developed HarmonyOS Image Library – Architecture, Implementation, and Performance Optimizations
21CTO
21CTO
Dec 12, 2024 · Information Security

How Google Added Low‑Cost Memory‑Safety Checks to C++ Production Code

Google's research shows that adding boundary checks to its C++ codebase can automatically fix thousands of CVE‑related memory bugs, cut production crash rates by 30%, and improve performance with only a 0.3% overhead, sparking a broad community discussion on safe legacy code.

C++LLVMMemory Safety
0 likes · 9 min read
How Google Added Low‑Cost Memory‑Safety Checks to C++ Production Code
Tencent Cloud Developer
Tencent Cloud Developer
Dec 12, 2024 · Backend Development

Common Rate Limiting Algorithms: Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket

The article examines five common rate‑limiting algorithms—Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket—detailing their principles, pros and cons, and providing complete C++ implementations to help developers choose the best approach for controlling traffic bursts and ensuring system stability.

BackendC++Distributed Systems
0 likes · 14 min read
Common Rate Limiting Algorithms: Fixed Window, Sliding Window, Sliding Log, Leaky Bucket, and Token Bucket