Tagged articles

C++

890 articles · Page 7 of 9
Liangxu Linux
Liangxu Linux
Mar 9, 2022 · Fundamentals

How to Build a Real‑Time Console Progress Bar in C

This guide explains the differences between carriage return and newline, explores C output buffering strategies, and provides step‑by‑step C code to create a countdown and a dynamic progress bar that updates smoothly in the terminal.

BufferingC++console
0 likes · 6 min read
How to Build a Real‑Time Console Progress Bar in C
MaGe Linux Operations
MaGe Linux Operations
Mar 6, 2022 · Fundamentals

How to Build a Real-Time Console Progress Bar in C

This tutorial explains how to create a console progress bar in C by covering newline versus carriage return handling, output buffering strategies, using fflush to force screen updates, and adapting the code for multi‑digit countdowns.

C++CountdownOutput Buffering
0 likes · 6 min read
How to Build a Real-Time Console Progress Bar in C
Liangxu Linux
Liangxu Linux
Mar 2, 2022 · Backend Development

Unlocking Linux SO_REUSEPORT: How Multiple Processes Can Share the Same Port

Linux kernels 3.9+ introduce the SO_REUSEPORT option, allowing multiple processes to bind and listen on the same port, with the kernel handling load‑balancing and security checks; this article explains the problem it solves, the underlying implementation, and provides practical C examples and verification steps.

C++SO_REUSEPORTload balancing
0 likes · 16 min read
Unlocking Linux SO_REUSEPORT: How Multiple Processes Can Share the Same Port
Cloud Native Technology Community
Cloud Native Technology Community
Mar 2, 2022 · Backend Development

Envoy Outbound Request Flow: Listener Startup, ReusePort Configuration, and Connection Establishment

This article provides an in‑depth analysis of Envoy's outbound request processing, covering listener initialization, the use of SO_REUSEPORT for load distribution, original destination handling, and the detailed steps of connection creation and filter chaining within the Envoy proxy architecture.

C++Envoylistener
0 likes · 12 min read
Envoy Outbound Request Flow: Listener Startup, ReusePort Configuration, and Connection Establishment
IT Architects Alliance
IT Architects Alliance
Feb 27, 2022 · Backend Development

Inside Redis: How Its Single‑Threaded Event Loop Works

This article walks through Redis’s annotated source code to explain how its single‑threaded architecture initializes the server, loads configuration and data, and continuously processes file and time events within a while‑loop, revealing why Redis achieves high performance without spawning additional worker threads.

C++Redisbackend development
0 likes · 9 min read
Inside Redis: How Its Single‑Threaded Event Loop Works
21CTO
21CTO
Feb 22, 2022 · Fundamentals

Which Programming Languages Power Today’s Major Software? A Comprehensive Survey

This article surveys the programming languages and technologies underlying a wide range of operating systems, user interfaces, desktop tools, databases, browsers, servers, and other software, illustrating how C, C++, Java, and other languages dominate different components across the software ecosystem.

C++c++programming languages
0 likes · 14 min read
Which Programming Languages Power Today’s Major Software? A Comprehensive Survey
DaTaobao Tech
DaTaobao Tech
Feb 14, 2022 · Fundamentals

Cross‑Platform C++ Development Pitfalls Guide

This guide outlines practical best‑practice recommendations—such as using C++17, proper header guards, forward‑slash paths, UTF‑8 encoding, restrained inline functions, standard fixed‑width types, careful char handling, readable nested templates, conditional compilation, Clang compiler, thin conversion layers, custom asserts, composition over inheritance, safe static initialization, and limited template use—to help developers write portable, maintainable, efficient C++ code across Windows, macOS, Linux, desktop and mobile platforms.

C++Code Guidelinesdevelopment
0 likes · 17 min read
Cross‑Platform C++ Development Pitfalls Guide
Yiche Technology
Yiche Technology
Jan 27, 2022 · Backend Development

C++ Multithreaded Service Architecture for High‑Throughput AI Inference

The article explains how to design a C++‑based multithreaded service that uses Pthreads, channels, and TensorRT to parallelize deep‑learning inference tasks, thereby reducing latency and dramatically increasing throughput for AI applications such as facial‑recognition access control systems.

AI inferenceC++TensorRT
0 likes · 11 min read
C++ Multithreaded Service Architecture for High‑Throughput AI Inference
Laravel Tech Community
Laravel Tech Community
Jan 4, 2022 · Fundamentals

Differences Between while(1) and for(;;) Loops in C

The article explains the syntax and semantics of while(1) and for(;;) infinite loops in C, compares their generated assembly code, and demonstrates through compiled examples that both constructs produce essentially identical machine code despite minor semantic differences.

C++Loopsassembly
0 likes · 4 min read
Differences Between while(1) and for(;;) Loops in C
Liangxu Linux
Liangxu Linux
Dec 27, 2021 · Fundamentals

Do while(1) and for(;;) Really Differ? A Deep Dive into C Infinite Loops

This article explains the syntax and semantics of C's while(1) and for(;;) constructs, compares their execution flow, shows how to compile each to assembly with gcc, and demonstrates that, aside from file names, the generated code is identical under typical settings.

C++GCCProgramming Fundamentals
0 likes · 6 min read
Do while(1) and for(;;) Really Differ? A Deep Dive into C Infinite Loops
Python Programming Learning Circle
Python Programming Learning Circle
Dec 27, 2021 · Fundamentals

How to Call C/C++ Code from Python Using ctypes

This article explains how to improve Python performance by embedding C or C++ code: write the source, compile it into a shared library, and invoke its functions from Python with the ctypes module, providing step‑by‑step commands and example code for both C functions and C++ classes.

C++Dynamic LibraryInterop
0 likes · 4 min read
How to Call C/C++ Code from Python Using ctypes
WeChat Client Technology Team
WeChat Client Technology Team
Dec 9, 2021 · Fundamentals

How to Build a C++ Stackful Coroutine from Scratch: Deep Dive into Context Switching

This article explains the low‑level principles of C++ coroutine context switching, walks through the owl.context API design, demonstrates assembly implementations for co_getcontext, co_setcontext, co_swapcontext and co_makecontext, and provides practical examples and code to build stackful coroutines on 32‑bit ARM.

ARMC++Low-Level Programming
0 likes · 20 min read
How to Build a C++ Stackful Coroutine from Scratch: Deep Dive into Context Switching
Top Architect
Top Architect
Dec 7, 2021 · Mobile Development

Cross‑Platform Architecture for WeChat Pay: Reducing Bugs and Boosting Productivity

The article describes how a C++‑based cross‑platform framework, combined with UseCase abstraction, routing mechanisms, unified network request handling, and strict data‑transfer rules, solved iOS/Android inconsistencies in WeChat Pay, cut code size by 45%, kept crash rates stable, and dramatically improved development efficiency.

C++WeChat Paycross-platform
0 likes · 14 min read
Cross‑Platform Architecture for WeChat Pay: Reducing Bugs and Boosting Productivity
Douyu Streaming
Douyu Streaming
Dec 1, 2021 · Mobile Development

How to Get, Build, and Extend WebRTC m79 Source for Windows, Android, and iOS

This guide explains how to obtain the WebRTC m79 source, compile it for Windows, Android, and iOS, walk through the basic signaling and peer‑connection workflow, and implement advanced video‑capture and audio‑volume features with custom C++ extensions, while unifying the codebase across platforms.

C++CompilationVideo Processing
0 likes · 19 min read
How to Get, Build, and Extend WebRTC m79 Source for Windows, Android, and iOS
Programmer DD
Programmer DD
Nov 30, 2021 · Game Development

Inside Dwarf Fortress: 20 Years, 700k Lines, and Endless Development

The article explores how Tarn Adams has single‑handedly maintained and expanded the indie game Dwarf Fortress for two decades, growing its C/C++ codebase to over 700,000 lines, funding development through donations, and continuously adding new gameplay modes and AI features without major refactoring.

ASCII graphicsC++Dwarf Fortress
0 likes · 11 min read
Inside Dwarf Fortress: 20 Years, 700k Lines, and Endless Development
21CTO
21CTO
Nov 14, 2021 · Fundamentals

What’s New in Visual Studio 2022? A Deep Dive into the Latest Features

Visual Studio 2022 has been officially released with a go‑live license, bringing 64‑bit support, .NET 6, C++ 20, Azure Cloud Services, hot‑reload, enhanced debugging, Git integration, UI personalization, and many other productivity improvements for developers across languages and platforms.

C++C++IDE
0 likes · 18 min read
What’s New in Visual Studio 2022? A Deep Dive into the Latest Features
WeChat Client Technology Team
WeChat Client Technology Team
Oct 21, 2021 · Fundamentals

Why We Built Our Own C++ Coroutine Framework and How It Boosts Development Efficiency

This article explains the motivation behind creating the C++ coroutine framework "owl" for the cross‑platform WeChat client, compares callback, promise, and coroutine approaches with code examples, and details its design choices such as stackful coroutines, single‑thread scheduling, structured concurrency, and performance characteristics.

C++Structured Concurrencyasynchronous
0 likes · 19 min read
Why We Built Our Own C++ Coroutine Framework and How It Boosts Development Efficiency
Architect
Architect
Oct 15, 2021 · Databases

Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command

This article investigates the high CPU usage and latency observed after expanding a large Redis cluster, analyzes the root cause in the CLUSTER SLOTS implementation and client MOVED handling, proposes an optimized slot‑traversal algorithm, and demonstrates significant performance improvements through benchmarking and profiling.

C++ClusterOptimization
0 likes · 18 min read
Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command
vivo Internet Technology
vivo Internet Technology
Oct 13, 2021 · Databases

Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command

In large Redis clusters the original CLUSTER SLOTS implementation traversed every master and all 16,384 slots, causing ~52 % CPU usage and high MGET latency during migrations, but redesigning it to iterate the pre‑built slot array reduced complexity to O(total slots), cutting execution time from 2 ms to 0.17 ms and eliminating the CPU hotspot, a fix now merged into Redis 6.2.2.

C++ClusterJava
0 likes · 20 min read
Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command
Alibaba Terminal Technology
Alibaba Terminal Technology
Oct 11, 2021 · Mobile Development

How Android Handles ANR SIGQUIT: Signal Interception Explained

This article explains how Android captures ANR events by intercepting the SIGQUIT signal, covering the relevant signal‑handling functions (kill, signal, sigaction, sigwait, pthread_sigmask), their differences, the SignalCatcher thread implementation, and how developers can create custom SIGQUIT monitors for ANR analysis.

ANRAndroidC++
0 likes · 15 min read
How Android Handles ANR SIGQUIT: Signal Interception Explained
Programmer DD
Programmer DD
Oct 4, 2021 · Backend Development

Build a Secure SMS Verification Service with .NET – Full Code Walkthrough

This article introduces an open‑source SMS verification module, outlines essential security features such as code expiry, length limits, request throttling, and one‑time use, and provides complete C# implementations for generating, sending, and validating both image and SMS captchas.

ASP.NET CoreC++CAPTCHA
0 likes · 9 min read
Build a Secure SMS Verification Service with .NET – Full Code Walkthrough
Baidu Intelligent Testing
Baidu Intelligent Testing
Sep 30, 2021 · Fundamentals

Understanding Core Dumps and Debugging Techniques with GDB

This article explains what program core dumps are, how to interpret core‑dump files, and provides detailed GDB debugging techniques—including register inspection, stack frame analysis, variable printing, memory dumping, and handling optimized code—to locate and resolve the root causes of crashes.

C++LinuxRegisters
0 likes · 16 min read
Understanding Core Dumps and Debugging Techniques with GDB
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Sep 22, 2021 · Mobile Development

Resolving Thread Merging Issues for PlatformView in Multi‑Engine Flutter Applications

This article explains the thread‑merging problem that arises when using PlatformView in multi‑engine Flutter scenarios, analyzes its root causes in both independent and lightweight engines, and presents a comprehensive solution—including code changes, task‑queue merging logic, and practical implementation details — that has been merged into the official Flutter engine repository.

C++DartFlutter
0 likes · 28 min read
Resolving Thread Merging Issues for PlatformView in Multi‑Engine Flutter Applications
Architect
Architect
Sep 15, 2021 · Backend Development

C++/Go Backend Interview Experiences and Preparation Tips

This article shares a 985 graduate's personal background, systematic interview preparation for C++ and Go backend positions, detailed interview question collections from major tech companies, and practical advice on study resources, project presentation, and coding practice to help candidates succeed in technical interviews.

C++Gobackend interview
0 likes · 14 min read
C++/Go Backend Interview Experiences and Preparation Tips
Selected Java Interview Questions
Selected Java Interview Questions
Sep 13, 2021 · Fundamentals

Understanding Merge Sort and Merging Two Sorted Arrays in C#

This article explains the merge sort algorithm’s divide‑and‑conquer principle, analyzes its O(n log n) time complexity, and provides two complete C# code examples—one for a generic merge sort and another for merging two already sorted arrays—along with visual illustrations of the merging process.

C++Divide and Conqueralgorithm
0 likes · 6 min read
Understanding Merge Sort and Merging Two Sorted Arrays in C#
Tencent Cloud Developer
Tencent Cloud Developer
Aug 20, 2021 · Artificial Intelligence

How I Scored 1.38 Million in Tencent’s Tetris Challenge with AI and Dynamic Programming

This article details a graduate student's AI‑driven solution to the Tencent Geek Competition's "E‑Tetris" challenge, describing the EI‑Tetris heuristic, feature‑based evaluation, state‑pruned dynamic programming, C++ implementation, performance results, and potential improvements.

Algorithm CompetitionC++Evaluation Function
0 likes · 12 min read
How I Scored 1.38 Million in Tencent’s Tetris Challenge with AI and Dynamic Programming
TAL Education Technology
TAL Education Technology
Aug 5, 2021 · Backend Development

Understanding epoll Programming and Its Use in Redis Server

This article explains the basic network programming pattern, introduces epoll as an I/O multiplexing solution for high‑concurrency servers, and demonstrates how Redis 5.0 integrates epoll through its event‑loop abstraction with detailed code examples and debugging tips.

C++EpollRedis
0 likes · 13 min read
Understanding epoll Programming and Its Use in Redis Server
Python Programming Learning Circle
Python Programming Learning Circle
Jul 23, 2021 · Artificial Intelligence

Understanding PyTorch's Backward Propagation Engine (BP Engine)

This article explains how PyTorch's BP Engine dynamically builds the computation graph for back‑propagation, detailing its C++ class structure, thread management, task queues, and key functions such as start_threads, compute_dependencies, execute, and evaluate_function, with illustrative code examples.

BackpropagationC++Engine
0 likes · 17 min read
Understanding PyTorch's Backward Propagation Engine (BP Engine)
Taobao Frontend Technology
Taobao Frontend Technology
Jul 14, 2021 · Frontend Development

From Emscripten to WebAssembly: A Decade of Bringing C++ to the Browser

This article traces the ten‑year evolution from Emscripten’s early C++‑to‑JavaScript compiler through asm.js to modern WebAssembly, highlighting key milestones, technical challenges, performance optimizations, and real‑world applications such as games, AutoCAD, and Google Meet, while providing code examples and installation steps.

Browser PerformanceC++Emscripten
0 likes · 17 min read
From Emscripten to WebAssembly: A Decade of Bringing C++ to the Browser
php Courses
php Courses
Jul 7, 2021 · Backend Development

Understanding PHP SAPI Internals: CGI Module Structure and Startup Process

This article provides an in‑depth English overview of PHP’s SAPI architecture, detailing the CGI SAPI module structure, the core _sapi_module_struct and sapi_globals definitions, and walking through the startup sequence including sapi_startup, sapi_globals_ctor, and FastCGI initialization with code examples.

C++CGISAPI++
0 likes · 10 min read
Understanding PHP SAPI Internals: CGI Module Structure and Startup Process
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 31, 2021 · Backend Development

How libtask Implements Coroutines for High‑Performance Servers in C

libtask, a lightweight coroutine library written by Russ Cox, demonstrates how to build a cooperative multitasking scheduler in C, detailing task creation, context switching, epoll‑based I/O handling, and a non‑preemptive FIFO scheduling model that enables asynchronous I/O to appear synchronous for server development.

C++Epollasynchronous I/O
0 likes · 19 min read
How libtask Implements Coroutines for High‑Performance Servers in C
Amap Tech
Amap Tech
May 28, 2021 · Cloud Native

Gaode's Serverless/FaaS Platform: Architecture, Implementation, and Business Impact

Gaode’s new serverless/FaaS platform, built on Alibaba Cloud Function Compute with custom C++, Go, and Node.js runtimes, now processes over 100 000 QPS, enabling a unified client‑cloud codebase, rapid feature iteration, automatic scaling and cost savings, while supporting extensive monitoring, Dapr integration, and future edge‑computing enhancements.

BackendC++FaaS
0 likes · 20 min read
Gaode's Serverless/FaaS Platform: Architecture, Implementation, and Business Impact
Liangxu Linux
Liangxu Linux
May 27, 2021 · Operations

How I Built an Automated Redis Sentinel to Seamlessly Handle Failover

A sysadmin narrates how he monitors four Redis nodes, detects master failure with PING, promotes a slave using SLAVEOF, reconfigures the remaining replicas, and ultimately automates the entire process with a custom Sentinel program and a multi‑node Sentinel cluster for high availability.

C++RedisSentinel
0 likes · 11 min read
How I Built an Automated Redis Sentinel to Seamlessly Handle Failover
DevOps
DevOps
May 10, 2021 · Backend Development

Automated Unit Test Generation for Exception Recall in C/C++ Services

This article presents a white‑box, unit‑test‑driven approach for automatically generating C/C++ test cases that detect and recall runtime stability issues, detailing problem analysis, solution design, code‑analysis, test‑data generation, code generation, failure analysis, and deployment results across large‑scale backend modules.

C++Fuzzingsoftware reliability
0 likes · 19 min read
Automated Unit Test Generation for Exception Recall in C/C++ Services
Liangxu Linux
Liangxu Linux
May 1, 2021 · Fundamentals

Master Linux Kernel Coding Style: Tools, Rules, and Best Practices

This guide explains why adhering to the Linux kernel coding style matters, introduces automatic tools such as checkpatch.pl, Lindent, and astyle for fixing style violations, and details the core conventions for indentation, line length, brace placement, naming, comments, macros, and other critical aspects of kernel C code.

AstyleC++Checkpatch
0 likes · 32 min read
Master Linux Kernel Coding Style: Tools, Rules, and Best Practices
DataFunSummit
DataFunSummit
Mar 28, 2021 · Artificial Intelligence

Deploying Scikit‑learn and HMMlearn Models as High‑Performance Online Prediction Services Using ONNX

This article demonstrates how to convert traditional scikit‑learn and hmmlearn machine‑learning models into ONNX format and integrate them into a C++ gRPC service for fast online inference, covering environment setup, model conversion, custom operators, performance testing, and end‑to‑end pipeline construction.

C++ONNXPython
0 likes · 22 min read
Deploying Scikit‑learn and HMMlearn Models as High‑Performance Online Prediction Services Using ONNX
ITPUB
ITPUB
Mar 28, 2021 · Fundamentals

Is C++ Really Outdated? Exploring the Debate and Real‑World Uses

The article examines the heated discussion about whether C++ is obsolete, presenting TIOBE ranking data, contrasting opinions on its relevance in various domains such as operating systems, game engines, and web development, and offering practical advice for newcomers deciding if C++ should be their first programming language.

C++career advicelanguage relevance
0 likes · 5 min read
Is C++ Really Outdated? Exploring the Debate and Real‑World Uses
Tencent Cloud Developer
Tencent Cloud Developer
Mar 11, 2021 · Fundamentals

High-Performance Object Pool Design and Implementation

The article presents a high‑performance, thread‑safe object pool that combines thread‑local freelists, a global pool, and cache‑line‑aligned structures to reuse expensive objects, dynamically expand capacity, and achieve 50‑70% lower allocation latency than standard malloc/free and existing pool implementations.

C++lock optimizationobject-pool
0 likes · 23 min read
High-Performance Object Pool Design and Implementation
vivo Internet Technology
vivo Internet Technology
Mar 10, 2021 · Fundamentals

CPU Performance Optimization Using Top‑Down Micro‑architecture Analysis (TMAM)

The article demonstrates how Top‑down Micro‑architecture Analysis Methodology (TMAM) can quickly pinpoint CPU bottlenecks—such as front‑end, back‑end, and bad speculation stalls—in a simple C++ accumulation loop, and shows that applying targeted compiler, alignment, and branch‑prediction optimizations reduces runtime by roughly 34 % while increasing retiring slots.

C++CPU performanceTMAM
0 likes · 20 min read
CPU Performance Optimization Using Top‑Down Micro‑architecture Analysis (TMAM)
Fulu Network R&D Team
Fulu Network R&D Team
Mar 9, 2021 · Backend Development

Using FluentValidation for Model Validation in ASP.NET Core

This article explains how to integrate FluentValidation into ASP.NET Core for robust model validation, covering installation, defining validators, registering services, handling validation errors, conditional rules, cascade modes, asynchronous validation, and advanced features, with complete code examples.

ASP.NET CoreC++FluentValidation
0 likes · 10 min read
Using FluentValidation for Model Validation in ASP.NET Core
Baidu Geek Talk
Baidu Geek Talk
Feb 22, 2021 · Fundamentals

Can Embracing Hash Collisions Boost Performance? Inside B16 Hash Table

This article revisits traditional hash table design, then introduces a novel approach that deliberately leverages a controlled probability of hash collisions combined with SIMD parallelism, presenting the B16 and B16Compact hash tables, their structures, algorithms, and experimental results showing superior speed and space efficiency compared to unordered_map and F14.

B16C++Data Structures
0 likes · 17 min read
Can Embracing Hash Collisions Boost Performance? Inside B16 Hash Table
Laravel Tech Community
Laravel Tech Community
Feb 21, 2021 · Fundamentals

C/C++ Commenting Guidelines and Best Practices

This article explains the importance of comments in C/C++ code and provides detailed guidelines for file, function, variable, spelling, and TODO annotations, including examples and best‑practice recommendations to improve code readability and maintainability.

C++code commentssoftware engineering
0 likes · 6 min read
C/C++ Commenting Guidelines and Best Practices
macrozheng
macrozheng
Feb 18, 2021 · Backend Development

How Tesla Built Its Own ERP in 4 Months Using Low‑Code and C#

Tesla’s CTO Vijayan led a 25‑person team to create the company’s proprietary ERP, Warp, in just four months—starting with the low‑code platform Mendix, then rewriting it in C# on .NET for private‑cloud deployment—offering insights into rapid ERP development, low‑code choices, and architecture trade‑offs.

.NETC++Cloud Computing
0 likes · 5 min read
How Tesla Built Its Own ERP in 4 Months Using Low‑Code and C#
Java Architect Essentials
Java Architect Essentials
Feb 15, 2021 · Fundamentals

Operating Systems Used in Modern Aircraft: VxWorks, Integrity‑178B, and C++ in the F‑35

The article explains that aircraft software relies on standard computer components but requires highly reliable, robust, real‑time operating systems such as VxWorks for Boeing 787 and AH‑64, Integrity‑178B for many fighter jets and Airbus A380, and recent C++ implementations with CompCert for the F‑35, highlighting the unique demands of aerospace computing.

C++CompCertIntegrity-178B
0 likes · 4 min read
Operating Systems Used in Modern Aircraft: VxWorks, Integrity‑178B, and C++ in the F‑35
21CTO
21CTO
Feb 6, 2021 · Fundamentals

Why Are Reusable Components So Hard? A FP vs OO FizzBuzz Experiment

The article explores why building truly reusable components is challenging by comparing a concise functional F# implementation of FizzBuzz with a more verbose object‑oriented C# version, highlighting how language paradigms and design assumptions affect modularity, coupling, and extensibility.

C++Component ReuseF*
0 likes · 11 min read
Why Are Reusable Components So Hard? A FP vs OO FizzBuzz Experiment
Liangxu Linux
Liangxu Linux
Feb 3, 2021 · Fundamentals

10 Proven Techniques to Supercharge Your C Code Performance

This article presents ten practical low‑level optimization strategies—ranging from reducing computational workload and extracting common subexpressions to loop unrolling, accumulator parallelism, and conditional‑move coding—each illustrated with C examples, detailed analysis, and before‑after performance comparisons.

C++LoopsOptimization
0 likes · 18 min read
10 Proven Techniques to Supercharge Your C Code Performance
Liangxu Linux
Liangxu Linux
Jan 27, 2021 · Fundamentals

Is for(;;) Faster Than while(1) in C? A Practical Comparison

The article compares the infinite loop constructs for(;;) and while(1) in C by compiling simple programs, examining the generated assembly with gcc, and shows that both produce identical machine code, while also noting compiler warnings and style preferences.

C++GCCassembly
0 likes · 5 min read
Is for(;;) Faster Than while(1) in C? A Practical Comparison
Liangxu Linux
Liangxu Linux
Jan 25, 2021 · Fundamentals

How Linux Kernel Invokes Module Init Functions via fs_initcall

The article explains how the Linux kernel discovers and calls module initialization functions like inet_init by using the fs_initcall macro, which creates static initcall variables placed in specially‑named sections that the linker groups and the kernel iterates at boot time.

C++InitcallKernel
0 likes · 8 min read
How Linux Kernel Invokes Module Init Functions via fs_initcall
Architects' Tech Alliance
Architects' Tech Alliance
Jan 18, 2021 · Backend Development

Migrating Services to ARM‑Based Kunpeng Cloud Servers: Architecture Evolution, Benefits, and Practical Steps

This article explains the shift from x86 to ARM architectures, outlines why services should be migrated to ARM‑based Kunpeng cloud servers, describes Huawei's migration tools and community support, and provides concrete C/C++ migration examples and common pitfalls for backend developers.

ARMC++Cloud Computing
0 likes · 11 min read
Migrating Services to ARM‑Based Kunpeng Cloud Servers: Architecture Evolution, Benefits, and Practical Steps
Amap Tech
Amap Tech
Jan 8, 2021 · Backend Development

Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service

Gaode’s navigation service adopted test‑driven development using Google’s GTest to replace slow diff‑based checks with fast, lightweight unit tests, enabling incremental refactoring of legacy code, improving quality, handling data‑dependency challenges, and demonstrating that writing tests first clarifies requirements while adding minimal overhead.

C++TDDbackend development
0 likes · 9 min read
Applying Test‑Driven Development and GTest for Unit Testing in Gaode’s Navigation Service
Alibaba Cloud Developer
Alibaba Cloud Developer
Jan 4, 2021 · Fundamentals

How TDD and GTest Transform Legacy Navigation Systems: A Practical Guide

This article explores how Test‑Driven Development and Google Test can improve quality and enable incremental refactoring of a complex, legacy online navigation system by addressing the shortcomings of traditional diff‑based testing, introducing unit‑testing fundamentals, and sharing practical implementation details and lessons learned.

C++TDDgtest
0 likes · 10 min read
How TDD and GTest Transform Legacy Navigation Systems: A Practical Guide
Architects' Tech Alliance
Architects' Tech Alliance
Jan 3, 2021 · Backend Development

Code Migration Experience: Porting C/C++ Applications from x86 to TaiShan aarch64 Servers

This article presents a comprehensive guide on migrating business code from x86 to TaiShan aarch64 servers, covering language differences, compilation toolchains, architecture‑specific issues such as compiler options, assembly rewrites, memory ordering, floating‑point behavior, and recommended GCC optimizations.

C++Code Migrationaarch64
0 likes · 14 min read
Code Migration Experience: Porting C/C++ Applications from x86 to TaiShan aarch64 Servers
High Availability Architecture
High Availability Architecture
Dec 28, 2020 · Fundamentals

Performance Comparison of C and Rust Using Common Sorting Algorithms

This article benchmarks C and Rust by implementing five classic sorting algorithms—Bubble, Insertion, Selection, Shell, and Heap Sort—across three data sizes, analyzes the execution times on a macOS system, and discusses the nuanced performance differences and broader implications for language choice.

C++Sorting Algorithmsperformance benchmark
0 likes · 5 min read
Performance Comparison of C and Rust Using Common Sorting Algorithms
Meituan Technology Team
Meituan Technology Team
Dec 10, 2020 · Operations

Optimizing C++ Build Times in Large-Scale Projects: Analysis and Practices

By systematically analyzing compilation stages and applying a mix of generic tactics—parallel and distributed builds, precompiled headers, ccache, C++20 modules, include pruning—and code‑level changes such as forward declarations, external templates, and replacing heavy Boost headers, the Meituan Search & NLP team cut a 20‑minute C++ build to about 100 seconds, a 70 % reduction, and instituted a compile‑fingerprint system to guard against regressions.

C++Compilationperformance
0 likes · 23 min read
Optimizing C++ Build Times in Large-Scale Projects: Analysis and Practices
ITPUB
ITPUB
Dec 9, 2020 · Fundamentals

ImHex: The Vision‑Friendly Open‑Source Hex Editor Taking GitHub by Storm

ImHex is a rapidly popular open‑source hex editor designed for eye‑friendly binary editing, offering features such as hex view, byte patching, custom language support, multi‑architecture disassembly, data import/export, and a sleek dark‑theme UI, with compilation instructions for Windows and Linux provided.

C++hex editorreverse engineering
0 likes · 7 min read
ImHex: The Vision‑Friendly Open‑Source Hex Editor Taking GitHub by Storm
Liangxu Linux
Liangxu Linux
Dec 6, 2020 · Fundamentals

Build a Linux Clipboard Translator with C, xclip, and translate-shell

This guide walks through creating a Linux word‑and‑phrase translation tool that captures selected text via the X clipboard, translates it with translate‑shell, and displays the result in the terminal, using only a few command‑line utilities and a small C program.

C++Linuxclipboard
0 likes · 10 min read
Build a Linux Clipboard Translator with C, xclip, and translate-shell
Laravel Tech Community
Laravel Tech Community
Dec 4, 2020 · Backend Development

gRPC Core 1.34.0 Release Highlights

The gRPC Core 1.34.0 release introduces numerous improvements and bug fixes across multiple language implementations, including new environment variable security support, Unix abstract socket URIs, enhanced xDS handling, updated platform compatibility, and added support for recent PHP, Python, and Ruby versions.

C++C++Python
0 likes · 5 min read
gRPC Core 1.34.0 Release Highlights
ITPUB
ITPUB
Dec 2, 2020 · Backend Development

Why Thread Safety and Reentrancy Matter in C++ Backend Development

The article uses a casual conversation between two backend engineers to introduce multithreading concepts, explain shared vs. private resources, define thread‑safe and reentrant functions, illustrate common pitfalls with code examples, and provide practical guidelines for writing correct concurrent C++ services.

C++ReentrancyThread Safety
0 likes · 11 min read
Why Thread Safety and Reentrancy Matter in C++ Backend Development
Top Architect
Top Architect
Nov 16, 2020 · Mobile Development

Building a C++ Cross‑Platform Framework for the WeChat Pay Client

This article describes how a C++‑based cross‑platform framework was created to unify iOS and Android implementations of WeChat Pay, detailing the architectural challenges, the introduction of UseCase‑driven business flow, a routing mechanism, improved network request handling, and standardized data passing that together reduced code size, improved stability, and boosted development productivity.

C++Mobile DevelopmentWeChat Pay
0 likes · 14 min read
Building a C++ Cross‑Platform Framework for the WeChat Pay Client
Tencent Cloud Developer
Tencent Cloud Developer
Nov 11, 2020 · Operations

An Overview of TarsBenchmark: A High‑Performance Microservice Load‑Testing Tool

TarsBenchmark is an open‑source, high‑performance microservice load‑testing tool from Tencent that uses a multi‑process, event‑driven architecture with connection reuse and lock‑free monitoring, supports extensible protocols via JSON test cases, and offers both single‑machine and cloud‑distributed testing, outperforming traditional tools like Apache Bench, Wrk, and JMeter.

C++Distributed TestingLoad Testing
0 likes · 22 min read
An Overview of TarsBenchmark: A High‑Performance Microservice Load‑Testing Tool