Tagged articles

C++

877 articles · Page 3 of 9
Deepin Linux
Deepin Linux
Jul 17, 2025 · Fundamentals

Why Traditional C++ Memory Management Fails and How TCMalloc Boosts Performance

Modern C++ applications face severe performance bottlenecks due to traditional memory management techniques like new/delete and malloc/free, which cause fragmentation and high overhead; TCMalloc, a thread‑caching allocator from Google, dramatically reduces latency, improves memory utilization, and scales efficiently across multithreaded workloads.

C++Memory ManagementTCMalloc
0 likes · 29 min read
Why Traditional C++ Memory Management Fails and How TCMalloc Boosts Performance
Deepin Linux
Deepin Linux
Jul 17, 2025 · Fundamentals

Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation

This article explains why traditional C++ new/delete memory management leads to internal and external fragmentation and performance loss, introduces the concept and principles of memory pools, compares various pool implementations, and provides a complete, thread‑safe example that integrates with std::allocator for high‑efficiency allocation.

C++Memory ManagementMemory pool
0 likes · 29 min read
Unlock Faster C++ Performance: Master Memory Pools and Eliminate Fragmentation
php Courses
php Courses
Jul 17, 2025 · Fundamentals

Master C++11 Range-Based for Loops: Simplify Your Iterations

This article explains C++11’s range-based for loop, covering its syntax, practical examples for arrays, vectors, maps, and how to use auto type deduction and references to modify elements, while highlighting its advantages over traditional loops and outlining suitable use cases and pitfalls.

C++C++11STL
0 likes · 6 min read
Master C++11 Range-Based for Loops: Simplify Your Iterations
php Courses
php Courses
Jul 16, 2025 · Fundamentals

Master C++ Loop Control: When to Use break vs continue

This article explains C++ loop control statements, detailing the syntax, use cases, and differences of break and continue, and provides multiple code examples demonstrating how to exit loops early or skip iterations for tasks such as searching and data filtering.

C++breakcontinue
0 likes · 7 min read
Master C++ Loop Control: When to Use break vs continue
Huolala Tech
Huolala Tech
Jul 16, 2025 · Mobile Development

Why iOS 18 Crashes When exit() Is Called and How to Fix It

This article analyzes a driver‑side iOS 18 crash triggered by BackBoardServices calling exit, explains the underlying XPC and C++ destructor chain, explores failed hook and compiler‑flag workarounds, and presents a reliable atexit‑based solution that eliminates the crash on iOS 18 and later.

C++Crash analysisHooking
0 likes · 15 min read
Why iOS 18 Crashes When exit() Is Called and How to Fix It
Deepin Linux
Deepin Linux
Jul 15, 2025 · Fundamentals

Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies

This article explains the core principles of the Least Recently Used (LRU) cache algorithm, details its operation and complexity, provides a complete C++ implementation with line-by-line analysis, showcases test cases, and offers practical interview tips and extensions such as LFU and LRU‑K.

C++CacheLRU
0 likes · 18 min read
Mastering LRU Cache: Theory, C++ Implementation, and Interview Strategies
php Courses
php Courses
Jul 15, 2025 · Fundamentals

Master C++ Loops: When to Use for, while, and do-while

Learn the three core C++ loop structures—for, while, and do-while—including their syntax, practical examples, control statements like break and continue, plus common pitfalls to avoid for reliable programming.

C++LoopsProgramming Fundamentals
0 likes · 6 min read
Master C++ Loops: When to Use for, while, and do-while
php Courses
php Courses
Jul 14, 2025 · Fundamentals

Master C++ Conditional Statements: if, else, switch, and Ternary Operator

This tutorial explains C++ conditional control structures—including if, if-else, else-if, switch, and the ternary ?: operator—detailing their syntax, usage, and providing clear code examples that demonstrate how to implement each construct for decision-making in programs.

C++Switchconditional statements
0 likes · 5 min read
Master C++ Conditional Statements: if, else, switch, and Ternary Operator
php Courses
php Courses
Jul 11, 2025 · Fundamentals

Master C++ I/O: When to Use cin/cout vs printf/scanf

This article explains C++ input/output fundamentals, comparing the object‑oriented cin/cout streams with the C‑style printf/scanf functions, providing code examples, feature comparisons, common pitfalls, and best‑practice recommendations to help developers choose the right approach for safety and performance.

C++Input/Outputbest-practices
0 likes · 7 min read
Master C++ I/O: When to Use cin/cout vs printf/scanf
Deepin Linux
Deepin Linux
Jul 10, 2025 · Fundamentals

Mastering LRUCache: How to Build a High‑Performance Cache in C++

Explore the principles behind Least Recently Used (LRU) caching, understand why it outperforms FIFO and LFU strategies, and follow a step‑by‑step C++ implementation using hash tables and doubly linked lists, complete with detailed code, testing, and performance optimization tips.

C++CacheLRUCache
0 likes · 24 min read
Mastering LRUCache: How to Build a High‑Performance Cache in C++
Deepin Linux
Deepin Linux
Jul 9, 2025 · Fundamentals

Mastering Perfect Forwarding in C++: Boost Performance and Flexibility

This article explains the concept of perfect forwarding in C++11, demonstrates how to preserve value categories using universal references and std::forward, and provides practical examples such as generic factory functions, wrapper functions, reference collapsing rules, and common pitfalls to avoid.

C++Universal Referencesmove semantics
0 likes · 21 min read
Mastering Perfect Forwarding in C++: Boost Performance and Flexibility
php Courses
php Courses
Jul 7, 2025 · Fundamentals

Master the Classic C++ Hello World: Step-by-Step Code Walkthrough

Learn how to write, compile, and run a basic C++ Hello World program, with a complete code listing, line-by-line explanations of each statement, common variations, compilation commands, and tips for understanding the program’s structure and output.

C++Code WalkthroughCompilation
0 likes · 6 min read
Master the Classic C++ Hello World: Step-by-Step Code Walkthrough
Deepin Linux
Deepin Linux
Jul 5, 2025 · Fundamentals

Master GDB: Essential Debugging Techniques for C/C++ Developers

This comprehensive guide explains what GDB is, how to launch it, its core functions, essential debugging commands, multithreaded debugging strategies, and practical code examples, helping developers efficiently locate and fix bugs in C/C++ programs.

C++DebuggingLinux
0 likes · 21 min read
Master GDB: Essential Debugging Techniques for C/C++ Developers
php Courses
php Courses
Jul 4, 2025 · Fundamentals

Set Up a Powerful C++ Development Environment for Windows, Linux, macOS

This guide walks you through installing and configuring four major C++ development tools—Visual Studio, GCC, Clang, and CMake—covering platform-specific steps for Windows, Linux, and macOS, and highlights each tool’s advantages to help you choose the right environment for your projects.

C++CMakeGCC
0 likes · 6 min read
Set Up a Powerful C++ Development Environment for Windows, Linux, macOS
Deepin Linux
Deepin Linux
Jul 4, 2025 · Backend Development

Mastering Protocol Buffers in C++: Installation, Data Types, and Real‑World Use Cases

This comprehensive guide explains what Protocol Buffers are, why they outperform JSON and XML, how to install and configure the library, the supported data types, code generation for multiple languages, practical C++ examples, and typical scenarios such as distributed systems, storage, and network communication.

C++Data StructuresPerformance
0 likes · 23 min read
Mastering Protocol Buffers in C++: Installation, Data Types, and Real‑World Use Cases
Deepin Linux
Deepin Linux
Jul 3, 2025 · Fundamentals

Mastering std::vector: From Basics to Interview‑Level Implementation

This article walks through the fundamentals of C++'s std::vector, covering its basic concepts, common use cases, detailed implementation of key operations like push_back, pop_back, and iterators, deep source‑code analysis, and practical interview strategies for hand‑coding the container.

C++Data StructuresMemory Management
0 likes · 18 min read
Mastering std::vector: From Basics to Interview‑Level Implementation
Deepin Linux
Deepin Linux
Jul 3, 2025 · Fundamentals

Mastering const vs constexpr in C++: Key Differences and Interview Tips

This article explains the distinct roles of const and constexpr in C++, covering their usage with variables, pointers, function parameters, and class members, comparing compile‑time and run‑time behaviors, and offering practical interview strategies and code examples for developers.

C++compile-timeconst
0 likes · 19 min read
Mastering const vs constexpr in C++: Key Differences and Interview Tips
Architect's Guide
Architect's Guide
Jul 2, 2025 · Mobile Development

How We Built a Cross‑Platform Architecture for WeChat Pay on iOS & Android

This article explains how the fragmented iOS and Android implementations of WeChat Pay were unified by introducing a C++ cross‑platform framework, abstracting business flows into UseCases, adding a routing mechanism, redesigning network request handling, and standardizing data passing to improve stability, reduce code size, and boost development productivity.

C++RoutingUseCase
0 likes · 15 min read
How We Built a Cross‑Platform Architecture for WeChat Pay on iOS & Android
php Courses
php Courses
Jul 1, 2025 · Fundamentals

From C with Classes to Modern C++: A 40‑Year Evolution

This article traces C++ from its 1979 origins as “C with Classes” through successive standards—C++98, C++11, C++14, C++17, C++20, and C++23—highlighting key features, the language’s modern capabilities, current applications, and future directions up to the planned C++26.

C++Programming Languagehistory
0 likes · 6 min read
From C with Classes to Modern C++: A 40‑Year Evolution
Deepin Linux
Deepin Linux
Jul 1, 2025 · Backend Development

Master C++ Concurrency: Processes, Threads, and IO Multiplexing Explained

This article explores C++ concurrent programming techniques, covering multi‑process fundamentals, process creation with fork(), inter‑process communication methods, multi‑threading using std::thread, synchronization tools like mutexes and condition variables, and efficient I/O handling through select, poll, and epoll multiplexing, with practical code examples.

C++Example CodeIO Multiplexing
0 likes · 26 min read
Master C++ Concurrency: Processes, Threads, and IO Multiplexing Explained
Deepin Linux
Deepin Linux
Jun 30, 2025 · Fundamentals

Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code

This article explains why frequent dynamic memory allocation can cause slowdown and fragmentation, introduces fixed-size memory pools as an efficient solution, details their core principles, data structures, key allocation and deallocation functions, and demonstrates their performance advantage with C++ code examples and benchmarks.

C++Memory poolcustom allocator
0 likes · 20 min read
Boost C++ Performance with Fixed-Size Memory Pools: Theory and Code
IT Services Circle
IT Services Circle
Jun 27, 2025 · Fundamentals

How to Solve the Champagne Tower Problem on LeetCode with Linear DP

The article first reflects on ByteDance's expanding English testing policy, then presents LeetCode problem 799 “Champagne Tower”, describing its mechanics and offering a linear‑DP solution with full implementations in Java, C++, Python and TypeScript, along with complexity analysis.

C++DPLeetCode
0 likes · 8 min read
How to Solve the Champagne Tower Problem on LeetCode with Linear DP
Deepin Linux
Deepin Linux
Jun 23, 2025 · Fundamentals

Mastering std::vector: From Basics to Deep Implementation Insights

This article recounts a challenging Pinduoduo C++ interview question to hand‑write std::vector, then thoroughly explains its basic concepts, core interfaces, memory management, iterator behavior, source‑code analysis, and interview strategies, providing code examples and practical tips for mastering this essential container.

C++Data Structuresstd::vector
0 likes · 18 min read
Mastering std::vector: From Basics to Deep Implementation Insights
Liangxu Linux
Liangxu Linux
Jun 15, 2025 · Fundamentals

Functional vs Imperative Programming in Embedded Systems: Which Wins?

This article compares functional and imperative (non‑functional) programming approaches for embedded applications, examining testability, maintainability, performance, and resource usage, and provides concrete C code examples illustrating each paradigm’s trade‑offs, helping developers choose the right style for their constraints.

C++Functional ProgrammingPerformance
0 likes · 8 min read
Functional vs Imperative Programming in Embedded Systems: Which Wins?
Deepin Linux
Deepin Linux
Jun 15, 2025 · Fundamentals

How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse

This article explains C++ polymorphism, shows how virtual functions and inheritance break tight coupling, improve code reuse, simplify extensions, and enhance maintainability, and demonstrates its role in common design patterns such as Strategy and Factory Method with clear code examples.

C++Design PatternsOOP
0 likes · 20 min read
How C++ Polymorphism Cuts Tight Coupling and Boosts Code Reuse
21CTO
21CTO
Jun 13, 2025 · Fundamentals

Can Rust Outrun C? Exploring When Rust Beats C in Performance

This article examines a Reddit question about whether Rust can be faster than C under identical conditions, discussing inline assembly, struct layout differences, safety checks, compile‑time versus run‑time behavior, and concluding that there is no inherent speed advantage.

C++Language comparisonPerformance
0 likes · 7 min read
Can Rust Outrun C? Exploring When Rust Beats C in Performance
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.

C++C++Java
0 likes · 9 min read
How to Choose the Right Programming Language for Your Project
Liangxu Linux
Liangxu Linux
Jun 7, 2025 · Fundamentals

Unlock the Hidden Power of C Macros: From Basics to Advanced Tricks

This article explains C preprocessor macros in depth, covering simple constant replacement, parameterized macros, stringification, token‑pasting, predefined macros, variadic macros, conditional compilation tricks, common pitfalls, and best‑practice recommendations for safe usage.

C++DebuggingMacros
0 likes · 11 min read
Unlock the Hidden Power of C Macros: From Basics to Advanced Tricks
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding Heap Memory Management in C: Detailed Guide to malloc and free

This article provides a comprehensive overview of heap memory management in C, explaining the concepts of heap versus stack, the usage and internal mechanisms of malloc and free, common pitfalls such as memory leaks and dangling pointers, and compares these functions with new/delete, calloc, and realloc.

C++Programming Fundamentalsfree
0 likes · 29 min read
Understanding Heap Memory Management in C: Detailed Guide to malloc and free
Liangxu Linux
Liangxu Linux
May 21, 2025 · Fundamentals

Unlock C Memory Layout: From Stack to Heap Explained with Real Code

This article demystifies C's memory layout by comparing it to a house, detailing each segment—from the stack and heap to global variables and the code section—while providing clear examples, common pitfalls, debugging tips, and interactive challenges to solidify understanding.

C++Programming Fundamentalsmemory layout
0 likes · 15 min read
Unlock C Memory Layout: From Stack to Heap Explained with Real Code
Liangxu Linux
Liangxu Linux
May 20, 2025 · Fundamentals

Why Pointers Exist: A Storytelling Guide to Mastering C Pointers

This article explains the historical reasons behind the invention of pointers, walks through early memory manipulation, variable abstraction, the need for shared data, and demonstrates how pointers enable address passing, dynamic memory allocation, and complex data structures such as linked lists and trees, all with clear C code examples.

C++Memory Managementdynamic allocation
0 likes · 15 min read
Why Pointers Exist: A Storytelling Guide to Mastering C Pointers
Linux Code Review Hub
Linux Code Review Hub
Apr 30, 2025 · Fundamentals

Understanding DRM: From Application‑Level Programs to Kernel Drivers

This article explains the Linux DRM graphics framework, its three main components (libdrm, KMS, GEM), the essential elements for display pipelines, and provides step‑by‑step example programs for single‑buffer, double‑buffer, page‑flip, and plane‑based rendering, including complete source code and execution notes.

C++DRMDisplay
0 likes · 19 min read
Understanding DRM: From Application‑Level Programs to Kernel Drivers
Tencent Cloud Developer
Tencent Cloud Developer
Apr 28, 2025 · Backend Development

Performance Optimization Techniques for High‑Throughput Backend Systems

The article outlines seven practical performance‑optimization techniques for high‑throughput back‑ends—including replacing protobuf with native C++ classes, adopting cache‑friendly data structures, using jemalloc/tcmalloc, implementing lock‑free double buffers, simplifying structs for specific scenarios, and leveraging profiling tools—while stressing balanced, incremental improvements.

C++Cache FriendlyLock-Free
0 likes · 16 min read
Performance Optimization Techniques for High‑Throughput Backend Systems
Java Tech Enthusiast
Java Tech Enthusiast
Apr 26, 2025 · Fundamentals

Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights

The article reflects on why mid‑career engineers are often relegated to legacy‑maintenance work, argues that such roles can be leveraged for growth by modernizing systems and adopting AI, and then presents the classic Valid Parentheses coding challenge, explaining a stack‑based solution with implementations, complexity analysis, and common pitfalls.

C++JavaPython
0 likes · 14 min read
Valid Parentheses Problem – Solution, Explanation, and Mid‑Career Insights
Deepin Linux
Deepin Linux
Apr 21, 2025 · Backend Development

POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs

This article introduces the POSIX standard for portable multithreaded and network programming in C, explains thread creation, lifecycle, and synchronization mechanisms such as mutexes, semaphores and condition variables, and provides complete server‑client socket examples together with practical multithreaded file‑processing code and debugging tips.

C++NetworkPOSIX
0 likes · 23 min read
POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs
Liangxu Linux
Liangxu Linux
Apr 17, 2025 · Fundamentals

15 Common C Language Pitfalls Every Developer Should Avoid

This article enumerates fifteen frequent C programming traps—from operator precedence and case‑sensitivity to pointer misuse and multithreading issues—provides clear code examples, explains why each error occurs, and offers practical solutions plus a challenging interview question.

C++Code safetypitfalls
0 likes · 13 min read
15 Common C Language Pitfalls Every Developer Should Avoid
Python Programming Learning Circle
Python Programming Learning Circle
Apr 2, 2025 · Fundamentals

Performance Comparison of Over 40 Programming Languages on a 1‑Billion‑Iteration Nested Loop

A comprehensive benchmark on an M3 MacBook Pro measures how compiled languages like C, Rust and Java outperform interpreted languages such as Python, Ruby and PHP when executing a billion‑iteration nested loop and a Fibonacci calculation, providing version details, test methodology, and practical recommendations for compute‑intensive projects.

C++Rustcompiled vs interpreted
0 likes · 6 min read
Performance Comparison of Over 40 Programming Languages on a 1‑Billion‑Iteration Nested Loop
Deepin Linux
Deepin Linux
Mar 29, 2025 · Fundamentals

Deep Dive into Linux task_struct: Core Data Structure for Process Management

This article provides a comprehensive overview of the Linux kernel's task_struct structure, detailing its key fields, process and thread identification, state definitions, memory and credential handling, kernel stack layout, and includes a practical kernel module example for iterating over all processes.

C++Process Managementscheduling
0 likes · 41 min read
Deep Dive into Linux task_struct: Core Data Structure for Process Management
Open Source Linux
Open Source Linux
Mar 20, 2025 · Backend Development

Mastering log.c: A Lightweight C99 Logging Library for Embedded Systems

This article introduces log.c, a compact C99 logging library suitable for any platform—including embedded systems—covers its key features, demonstrates usage with code examples, and explains how to configure log levels, file output, callbacks, multithreading, and colored output.

C++C99embedded
0 likes · 6 min read
Mastering log.c: A Lightweight C99 Logging Library for Embedded Systems
Java Tech Enthusiast
Java Tech Enthusiast
Mar 19, 2025 · Industry Insights

Why Microsoft Switched to Go for the TypeScript Compiler – 10× Faster

Microsoft rewrote the TypeScript compiler in Go, achieving a nine‑to‑tenfold speed boost, and explains that Go’s low‑level design, built‑in garbage collection, cross‑platform compilation, and functional‑style compatibility made it a better fit than C#, reflecting both technical advantages and Microsoft’s internal “Eat Dog Food” culture.

C++GoMicrosoft
0 likes · 5 min read
Why Microsoft Switched to Go for the TypeScript Compiler – 10× Faster
Python Programming Learning Circle
Python Programming Learning Circle
Mar 14, 2025 · Fundamentals

Performance Comparison of Multiple Programming Languages on a 1 Billion Nested Loop

This article benchmarks dozens of programming languages by measuring the time to execute a one‑billion‑iteration nested loop on an M3 MacBook Pro, revealing that compiled languages like C, Rust and Java finish in about half a second while interpreted languages such as Python and Ruby take tens of seconds, and provides detailed version information, test commands, and additional results for many other languages.

C++Rust
0 likes · 6 min read
Performance Comparison of Multiple Programming Languages on a 1 Billion Nested Loop
Tencent Technical Engineering
Tencent Technical Engineering
Feb 28, 2025 · Fundamentals

Understanding C/C++ Runtime Libraries: Concepts, Functions, Platform Implementations, and Common Issues

The article explains what the C/C++ runtime library is, how it implements essential services such as memory allocation, I/O and language features, compares it to Java, Python and JavaScript runtimes, details platform‑specific implementations (glibc, MSVC CRT, libc++, Bionic, etc.), and warns about common pitfalls like multiple CRT instances or version mismatches that can cause crashes.

C++Memory ManagementRuntime Library
0 likes · 24 min read
Understanding C/C++ Runtime Libraries: Concepts, Functions, Platform Implementations, and Common Issues
Linux Kernel Journey
Linux Kernel Journey
Feb 23, 2025 · Fundamentals

Debugging C++ Deadlocks on Linux with Shell Commands and GDB

This article explains how to identify and resolve multithreaded deadlocks in Linux C++ programs by using shell utilities such as ps and top for initial diagnosis, then attaching GDB to inspect thread stacks and pinpoint the exact lock contention causing the freeze.

C++DeadlockLinux
0 likes · 20 min read
Debugging C++ Deadlocks on Linux with Shell Commands and GDB
Java Tech Enthusiast
Java Tech Enthusiast
Feb 21, 2025 · Fundamentals

TIOBE February 2025 Language Rankings and Performance Overview

The TIOBE February 2025 index shows Python leading, C++ rising to second, Go staying in the top ten and Rust hitting a 1.47 % share, while a 1‑billion‑loop benchmark on a MacBook Pro finds Zig, Rust and C finishing in ~0.5 s versus Python’s 31.6 s and R’s 72.6 s, and survey data highlight Python’s dominance across data analysis, web development, DevOps, web crawling, machine learning and education.

C++Programming LanguagesPython
0 likes · 6 min read
TIOBE February 2025 Language Rankings and Performance Overview
Deepin Linux
Deepin Linux
Feb 18, 2025 · Fundamentals

Using backtrace to Diagnose Linux Program Crashes

This article explains common causes of unexpected Linux program termination and demonstrates how to employ the backtrace utility, along with signal handling and related functions, to capture and analyze stack traces, enabling precise identification and resolution of issues such as memory overflows, null pointer dereferences, and other runtime errors.

C++LinuxSignal
0 likes · 24 min read
Using backtrace to Diagnose Linux Program Crashes
Java Tech Enthusiast
Java Tech Enthusiast
Feb 4, 2025 · Fundamentals

LeetCode 31 – Next Permutation: Problem, Analysis, and Code

The Next Permutation problem asks to rearrange an integer array into the immediate lexicographically larger ordering—or the smallest order if none exists—by scanning from the right to find the first decreasing pair, swapping with the next larger element, and reversing the suffix, using O(1) extra space, with implementations provided in Java, C++, and Python.

C++JavaLeetCode
0 likes · 7 min read
LeetCode 31 – Next Permutation: Problem, Analysis, and Code
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.

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

How to Measure Execution Time in C with time(), clock() and gettimeofday()

This guide shows how to benchmark C code by measuring elapsed time using the standard time() function for second‑level precision, clock() for higher CPU‑time accuracy, and gettimeofday() for microsecond‑level resolution, including complete example programs and key considerations.

C++Performancebenchmarking
0 likes · 4 min read
How to Measure Execution Time in C with time(), clock() and gettimeofday()
dbaplus Community
dbaplus Community
Jan 12, 2025 · Backend Development

How Redis Stream Replaced MQ in High‑Throughput Traffic Processing

This article explains why the traffic team switched from traditional MQ to Redis Stream, covering the underlying concepts, design choices, implementation details, load‑balancing strategies, cross‑datacenter handling, monitoring metrics, performance benchmarks, and practical lessons learned.

C++Redis Streambackend development
0 likes · 13 min read
How Redis Stream Replaced MQ in High‑Throughput Traffic Processing
Linux Kernel Journey
Linux Kernel Journey
Jan 12, 2025 · Fundamentals

Master CMake Basics: A Simple, Step‑by‑Step Guide to Build Automation

This article walks you through why CMake is a more elegant, cross‑platform alternative to hand‑written Makefiles, explains its core benefits, and provides a complete, hands‑on tutorial that covers the basic workflow, a minimal project example, multi‑source handling, and multi‑directory organization with clear code snippets.

C++CMakeMakefile
0 likes · 13 min read
Master CMake Basics: A Simple, Step‑by‑Step Guide to Build Automation
Tencent Cloud Developer
Tencent Cloud Developer
Jan 9, 2025 · Game Development

Mastering Finite State Machines for Game Objects: From Basics to NPC Patrols

This article explains why finite state machines (FSM) are essential for game development, outlines their core concepts, demonstrates common pitfalls of if‑else logic, and provides step‑by‑step Unity C# examples for object state switching and intelligent NPC patrol behavior, including code snippets and integration tips.

AI code assistantC++Finite State Machine
0 likes · 14 min read
Mastering Finite State Machines for Game Objects: From Basics to NPC Patrols
Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Mobile Development

Unveiling iOS Blocks: Memory Layout, Types, and Clang Conversion

This article dissects iOS blocks, explaining their struct‑based memory layout, the three block types, how they are transformed into C++ code with clang, and the impact of capturing variables—including value, static, global, and object references—on block behavior and lifecycle.

BlocksC++Objective‑C
0 likes · 12 min read
Unveiling iOS Blocks: Memory Layout, Types, and Clang Conversion
21CTO
21CTO
Jan 6, 2025 · Information Security

How Researchers Auto-Convert C to Safe Rust: The Mini‑C Approach

Researchers from Inria and Microsoft have devised a method to automatically translate a subset of C code, called Mini‑C, into memory‑safe Rust, using the KaRaMeL compiler framework, demonstrating comparable performance on cryptographic libraries while reducing vulnerability risks.

C++KaRaMeLRust
0 likes · 6 min read
How Researchers Auto-Convert C to Safe Rust: The Mini‑C Approach
Deepin Linux
Deepin Linux
Jan 2, 2025 · Fundamentals

Understanding the Linux Kernel Initcall Mechanism for Driver Initialization

The article explains how the Linux kernel’s initcall mechanism automatically orders and executes driver initialization functions through specially defined macros and linker sections, improving maintainability, memory usage, and system stability during the boot process.

C++Driver InitializationInitcall
0 likes · 23 min read
Understanding the Linux Kernel Initcall Mechanism for Driver Initialization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 2, 2025 · Mobile Development

Introduction to JNI and NDK Development for Android

This article provides a comprehensive introduction to Android NDK development, covering JNI fundamentals, data type mappings, method registration (static and dynamic), JNIEnv usage, CMake build configuration, and multiple practical code examples in Kotlin, C++, and C.

AndroidC++CMake
0 likes · 12 min read
Introduction to JNI and NDK Development for Android
Open Source Linux
Open Source Linux
Jan 2, 2025 · Backend Development

Unlock Fast C Utilities: Struct Sizes, CPU Temp, File Size, IP & More

This article presents a collection of handy C code snippets that demonstrate how to quickly obtain struct member sizes and offsets, read CPU temperature, determine file sizes, fetch system timestamps, retrieve MAC and IP addresses, perform file I/O, display progress bars, format log output, and enable core dump generation, each accompanied by sample usage and expected results.

C++CPU temperatureFile I/O
0 likes · 15 min read
Unlock Fast C Utilities: Struct Sizes, CPU Temp, File Size, IP & More
JD Tech
JD Tech
Dec 25, 2024 · Mobile Development

JD's Self‑Developed HarmonyOS Image Library (DImage): Architecture, Implementation, and Performance Optimizations

This article details JD's self‑built HarmonyOS image library (DImage), covering its background, research on existing solutions, C++‑based cross‑platform architecture, core modules, performance‑focused pipeline, monitoring and recovery mechanisms, and future optimization directions, all aimed at high‑performance image handling for the JD app on HarmonyOS.

C++HarmonyOSImage Library
0 likes · 12 min read
JD's Self‑Developed HarmonyOS Image Library (DImage): Architecture, Implementation, and Performance Optimizations
Deepin Linux
Deepin Linux
Dec 22, 2024 · Fundamentals

Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage

This article provides a comprehensive analysis of the Linux kernel's task_struct data structure, detailing its members such as task IDs, parent‑child relationships, state flags, credentials, scheduling information, signal handling, memory and file management, kernel stack layout, and its role in process creation via system calls like fork.

C++LinuxProcess Management
0 likes · 22 min read
Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage
Deepin Linux
Deepin Linux
Dec 19, 2024 · Fundamentals

Understanding the Implementation and Mechanisms of the C malloc Function

This article explains the purpose, prototype, and usage of C's malloc function, delves into its underlying implementation using free‑list mechanisms, virtual‑memory translation, system calls like brk and mmap, and compares it with related functions such as calloc, realloc and new, while providing practical code examples and best‑practice guidelines.

C++Dynamic MemorySystem Calls
0 likes · 32 min read
Understanding the Implementation and Mechanisms of the C malloc Function
Deepin Linux
Deepin Linux
Dec 18, 2024 · Backend Development

Understanding Linux Kernel Sockets: Concepts, Types, and API Functions

This article provides a comprehensive overview of Linux socket programming, covering socket definitions, classifications such as stream, datagram, and raw sockets, connection-oriented versus connectionless communication, IP/port/MAC addressing, byte order considerations, and practical C API examples for creating and using sockets.

C++LinuxSocket
0 likes · 35 min read
Understanding Linux Kernel Sockets: Concepts, Types, and API Functions
Deepin Linux
Deepin Linux
Dec 14, 2024 · Fundamentals

Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques

This article provides a comprehensive overview of the Linux ptrace system call, explaining its role in process debugging, detailing request parameters, demonstrating practical C examples for tracing system calls, single‑stepping, setting breakpoints, and exploring how DWARF debugging information links source code to executable addresses.

AssemblyC++DWARF
0 likes · 62 min read
Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques
Java Tech Enthusiast
Java Tech Enthusiast
Dec 12, 2024 · Fundamentals

LeetCode 814: Binary Tree Pruning

The article explains LeetCode 814, where a binary tree of 0s and 1s is pruned by recursively removing subtrees lacking a 1, using a post‑order traversal that returns null for nodes with value 0 and no retained children, achieving O(n) time and O(h) space.

C++JavaLeetCode
0 likes · 6 min read
LeetCode 814: Binary Tree Pruning
Open Source Linux
Open Source Linux
Dec 12, 2024 · Fundamentals

Measure Execution Time in C: time(), clock() and gettimeofday()

This guide demonstrates how to use the C standard library functions time(), clock(), and the POSIX gettimeofday() to measure code execution duration, comparing their precision levels and showing sample code snippets that illustrate typical usage and output.

C++clockgettimeofday
0 likes · 4 min read
Measure Execution Time in C: time(), clock() and gettimeofday()
Top Architecture Tech Stack
Top Architecture Tech Stack
Dec 9, 2024 · Fundamentals

Performance Impact of Clean Code Practices: A C++ Case Study

This article examines how strict adherence to clean‑code principles in C++—such as using polymorphism, limiting function size, and avoiding internal knowledge—affects runtime performance, comparing virtual‑function hierarchies, switch‑based implementations, and table‑driven approaches, and revealing up to fifteen‑fold speed differences.

C++clean codepolymorphism
0 likes · 21 min read
Performance Impact of Clean Code Practices: A C++ Case Study
Java Tech Enthusiast
Java Tech Enthusiast
Dec 7, 2024 · Interview Experience

Solve LeetCode 739 ‘Daily Temperatures’ Using a Monotonic Stack

This article explains the LeetCode 739 'Daily Temperatures' problem, describing how to compute the next warmer day for each temperature using a monotonic stack, and provides complete implementations in Java, C++, and Python, along with step‑by‑step analysis and example walkthroughs.

C++Daily TemperaturesJava
0 likes · 6 min read
Solve LeetCode 739 ‘Daily Temperatures’ Using a Monotonic Stack
Code Ape Tech Column
Code Ape Tech Column
Dec 4, 2024 · Backend Development

Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code

This article explains Netty’s asynchronous architecture, compares classic multithread, Reactor, select, poll and epoll models, clarifies level‑triggered versus edge‑triggered event handling, and provides step‑by‑step JNI and hand‑written epoll server examples in C to illustrate high‑performance backend development.

C++IO MultiplexingJNI
0 likes · 33 min read
Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code
Java Tech Enthusiast
Java Tech Enthusiast
Dec 1, 2024 · Fundamentals

LeetCode 34: Binary Search Range

LeetCode 34 asks for the first and last indices of a target in a non‑decreasing integer array, returning [-1,-1] when absent, and can be solved in O(log n) time by applying two binary‑search passes—one locating the leftmost occurrence and the other the rightmost—illustrated with Java, C++, and Python implementations.

C++JavaLeetCode
0 likes · 8 min read
LeetCode 34: Binary Search Range
BirdNest Tech Talk
BirdNest Tech Talk
Dec 1, 2024 · Fundamentals

Step-by-Step Guide to RDMA Programming with the ibverbs API

This tutorial walks through the complete RDMA programming workflow using the ibverbs API, covering device initialization, memory registration, completion queue and queue pair creation, state transitions, send/receive operations, completion handling, and resource cleanup with concrete C code examples.

C++RDMAibverbs
0 likes · 5 min read
Step-by-Step Guide to RDMA Programming with the ibverbs API
Java Tech Enthusiast
Java Tech Enthusiast
Nov 15, 2024 · Fundamentals

C++26 Reflections, Safety, and Emerging Security Guidelines

After 22 years at Microsoft, Herb Sutter departs for Citadel while staying ISO C++ chair, declaring 2024 pivotal as C++26 introduces reflection‑driven compile‑time libraries and default safety—potentially the most impactful release since C++11—while U.S. CISA and the FBI urge memory‑unsafe language users to publish safety roadmaps by January 2026.

C++C++26Safety
0 likes · 6 min read
C++26 Reflections, Safety, and Emerging Security Guidelines
Liangxu Linux
Liangxu Linux
Nov 14, 2024 · Databases

Master SQLite with C: Essential Functions and Sample Code

This guide walks through using SQLite's C API—including opening databases, executing queries with and without callbacks, handling results, and performing insert, delete, and display operations—complete with code snippets, table schemas, and compilation instructions.

APIC++Database
0 likes · 12 min read
Master SQLite with C: Essential Functions and Sample Code