This guide explains the GCC compiler's evolution, how to compile C and C++ programs using gcc and g++, highlights their differences, and provides practical command examples and linking options for successful builds.
This tutorial explains how GCC version 10.2 compiles C and C++ programs, clarifies the differences between the gcc and g++ commands, shows how file extensions and the -x option affect language selection, and provides concrete command examples for successful compilation and linking.
The article examines the September 2020 TIOBE programming language index, highlighting C’s rise to the top spot, Java’s decline, the rapid growth of C++ and Python, and discusses how these trends can guide developers in choosing which language to learn.
In September, developers saw a notable C++ ranking rise, Java’s decline, Huawei’s HarmonyOS 2.0 open‑sourcing, Android 11’s release, WeChat’s expanded search, OpenJDK’s move to GitHub, and Angular 10.1 and 11.next.1 updates, highlighting major shifts across programming languages and platforms.
The article explains how a C++‑based cross‑platform framework was built to unify iOS and Android implementations of WeChat Pay, reducing code size, improving crash stability, streamlining feature delivery, and addressing architectural issues such as inconsistent UI, poor scalability, and network request management.
Facing divergent iOS and Android implementations, the WeChat Pay team built a C++‑based cross‑platform framework that consolidates payment flows, introduces a UseCase‑driven routing mechanism, refactors network requests, and enforces strict data passing, resulting in reduced code size, fewer bugs, and faster feature delivery.
A Bilibili creator named NyeJu generated 120,000 lines of compilable C++ code that, through precise color‑coded patterns, animates a singing, dancing, rap‑performing version of Cai Xukun, detailing the workflow from theme selection to frame‑by‑frame color mapping and automated code generation.
This article systematically presents ten classic sorting algorithms—bubble, selection, insertion, quick, heap, merge, shell, counting, bucket, and radix—detailing their concepts, time and space complexities, step‑by‑step logic, animated illustrations, and complete source code examples in C++ and JavaScript.
The article examines the historical shift from mainframes to x86, highlights the emerging limitations of x86 in the era of mobile and cloud computing, and presents Huawei's ARM‑based Kunpeng platform with its performance advantages, ecosystem support, and step‑by‑step tools for migrating Java, Python, C/C++ and Go applications from x86 to ARM.
An ex‑consultant recounts a twelve‑year French government software project that spiraled into a disastrous 600‑plus‑million‑line C++ codebase, plagued by outdated technology, chaotic version control, absurd management practices, and massive inefficiencies, ultimately ending in prison for its leaders.
The article explains why Java does not support operator overloading, highlighting reasons such as maintaining language simplicity and clarity, preventing programming errors, reducing JVM complexity, and facilitating tool development, while contrasting Java’s design choices with C++ capabilities.
The article analyzes the inconsistencies and maintenance challenges of separate iOS and Android implementations of WeChat Pay, then presents a C++‑based cross‑platform framework with UseCase‑driven business flow, routing, unified network handling and strict data passing, showing how these changes cut code size, keep crash rates stable and dramatically improve development productivity.
This article explains how WeChat Pay tackled inconsistent iOS and Android implementations by creating a C++‑based cross‑platform framework, introducing UseCase and UIPage abstractions, a routing mechanism, unified network request handling, and standardized data flow, resulting in reduced code, faster feature delivery, and higher stability.
This article explains the challenges of separate iOS and Android implementations in WeChat Pay, describes the design and benefits of a C++ cross‑platform framework, and shows how it improves code reuse, reduces bugs, accelerates feature delivery, and enhances overall software quality.
WeChat Pay’s new C++ cross‑platform framework unifies iOS and Android payment flows, reducing code by 45%, cutting development time, improving crash stability, and introducing a routing mechanism, use‑case abstraction, and disciplined data handling to boost productivity and quality across mobile payment services.
This guide outlines a comprehensive learning path for C and C++ covering essential language concepts, core computer science fundamentals, practical Linux development tools, and recommended resources to help beginners transition into backend development roles.
This article describes how a C++‑based cross‑platform framework was designed and implemented to unify iOS and Android payment flows in WeChat Pay, covering architectural motivation, business‑process abstraction, routing mechanisms, network request management, and standardized data transmission to improve quality and productivity.
The article examines why Tesla’s AI team combines Python for rapid prototyping with C++ for high‑performance inference, discussing the trade‑offs between ease of use and latency, the role of frameworks like TensorFlow and PyTorch, and the broader debate over language choice in modern AI development.
This article explains the principles and challenges of migrating software from x86 to Huawei's Kunpeng ARM64 platform, covering instruction‑set differences, dependency analysis, compilation adjustments, performance testing, and the suite of tools Huawei provides to streamline the migration process.
This article explains the classic binary search algorithm, shows how to find the first and last occurrence of a target in a sorted array, presents a combined solution, and extends the technique to efficiently locate elements in a rotated sorted array using one or two binary searches.
This guide walks you through downloading, extracting, and configuring C++ library man pages on a Linux system so that the standard "man" command can provide offline documentation for C++ functions and classes.
An independent evaluation compares aiXcoder’s AI‑driven code suggestions against built‑in IDE completions across TensorFlow (Python), Java, and C++ examples, measuring keystroke reductions and highlighting speed, language support, and current limitations of the tool.
This article explains the concept and history of coroutines, surveys language support, and provides an in‑depth analysis of Swoole’s coroutine implementations from version 1.x to 4.x, including PHP Zend VM integration, C‑stack management with assembly, and practical code examples.
An intriguing experiment shows that a seemingly harmless "y += 0" operation can be seven times slower than "y += 0.1f" due to CPU handling of denormalized floating‑point numbers, and the article explains the binary representation, performance impact, and how to disable it for faster code.
The September 2019 TIOBE and PYPL programming language rankings show Python surging to third place, Java holding first, C++ slipping, while detailed analysis highlights trends, salary expectations, and the evolving popularity of languages such as Java, C, C++, Rust, Go, and Kotlin across the industry.
This guide shares practical experience and step‑by‑step solutions for migrating C/C++ and other language projects from x86 servers to ARM64 TaiShan platforms, covering compilation differences, code adjustments, compiler options, and performance tuning to achieve stable and efficient execution.
This article explains why a C# char literal like '\x1d11e' is illegal, how Unicode code points map to glyphs, the role of code pages on Windows and Linux, and practical tips to avoid encoding mishaps across different programming languages.
This article provides a detailed, step‑by‑step explanation of Qt's signals‑and‑slots system, covering its core concepts, the role of the Meta‑Object Compiler (moc), generated code structures, connection types, and runtime activation, illustrated with a concrete demo project and reference images.
The paper presents a custom JavaScript automatic binding tool for iQIYI’s React Node Desktop framework that parses C++ headers with libclang, applies user‑written YAML rules, generates multi‑inheritance‑aware wrappers via the Mate abstraction, and abstracts engine specifics through a Node‑Addon‑API‑based common layer to support both V8 and JavaScriptCore.
This article explains the distinction between function pointers and function types in C++, shows how to declare, assign, and pass them as parameters, and demonstrates returning pointers to functions with clear code examples and typedef/decltype techniques.
This article explains how FBString improves performance over std::string by using a three‑tier storage strategy, tight integration with jemalloc, and specialized techniques like SSO, eager copy, and copy‑on‑write, detailing its core implementation and key functions.
This article explains how 58.com’s in‑house C++ search kernel ESearch was architected to provide second‑level real‑time indexing, high‑concurrency low‑latency querying, flexible ranking models, and efficient storage structures for billions of daily queries across massive classified data.
Meituan‑Dianping built a custom C++11 real‑time advertising index featuring a hierarchical model, lock‑free three‑layer architecture, specialized memory allocators, and forward/inverted indexes to achieve millisecond updates, high throughput, and scalability for search ads, with plans for Java integration and SQL support.
This article introduces WebAssembly, explains its performance advantages over JavaScript, details the setup of development tools like Emscripten, CMake, and WABT on macOS, and provides step‑by‑step examples for compiling C/C++ code to .wasm, loading modules in JavaScript, and using advanced features.
Google continues to lead in open‑source contributions, showcasing a diverse set of newly released projects—including Puppeteer for headless Chrome automation, the JPEG optimizer Guetzli, ML visualization tool Facets, Python‑to‑Go compiler Grumpy, CLI generator Python Fire, and many more—spanning AI, cloud, and development tools.
This article compares Python, C++, Java, Lisp, and Prolog, outlining their strengths and weaknesses for artificial intelligence projects to help beginners decide which language to start with.
Learn how to unlock JavaScriptCore's hidden debugger on iOS by locating the framework version, building the source with private headers, creating a custom Debugger subclass, and integrating it into an Xcode project, complete with code examples and configuration tips.
This article explains the evolution of JavaScript performance, introduces WebAssembly concepts and browser support, provides step‑by‑step installation of Emscripten, WABT, and related tools on macOS, demonstrates WebAssembly APIs such as validate, Module, compile, Instance, Memory and Table, and shows practical examples of compiling and invoking C/C++ and Rust code from JavaScript.
This article argues that clean, readable C++ code should be the default, explaining the difference between performance and efficiency, why premature optimization can be harmful, and how thoughtful data structures and libraries can deliver both simplicity and speed when needed.
The article chronicles Bjarne Stroustrup’s creation of C++, his pivotal role in its evolution, the prestigious 2017 Faraday Medal honor, and how C++ remains essential in large‑scale and infrastructure applications such as telecommunications, banking, and embedded systems.
The article examines the September TIOBE ranking, highlighting that Java, C, and C++ have held the top three spots for 15 years, discusses the limited progress of C# and Python, notes the narrowing gap among other languages, and explains how the index reflects popularity rather than quality.
Learn how to create a C/C++ extension for Node.js using the stable N-API ABI, covering environment setup with node-gyp, writing the module code for a simple multiply-by-two function, building the add-on, and running it across platforms with minimal compilation hassle.
This article introduces a C++ Snake game project from GitHub that showcases two AI approaches—Hamiltonian‑cycle based and graph‑search based—to let the snake fill the entire map, and provides step‑by‑step setup, keyboard controls, and detailed algorithm explanations.
This article examines WCDB’s design principles for efficient, complete, and easy-to-use client-side databases, explains the pitfalls of SQL string concatenation such as code redundancy, debugging difficulty, and injection attacks, and describes how WCDB’s WINQ abstraction and ORM layer safely encapsulate SQLite syntax to enable concise, compile-time-checked queries.
WebAssembly enables programs written in languages like C/C++ to run in browsers, and Mozilla’s WebAssembly Explorer provides a visual UI that reveals compiler optimizations—such as choosing between division and shift operations—while developers can also use Emscripten for production‑grade compilation.
This article demonstrates how to replace the classic linear search loops for arrays and strings with a sentinel‑based approach, reducing boundary checks and improving performance, especially on large datasets, and includes a concrete performance test.
This article explores C++’s origins, key language features, performance‑driven design, typical application domains, evolution over four decades, and why it remains essential for high‑performance systems, cloud infrastructure, and modern development despite its complexity.
An in‑depth look at WeChat’s Mars library reveals how a cross‑platform, high‑availability network component was designed, evolved through three phases, tackled real‑world mobile challenges, and was refactored and open‑sourced to support Android, iOS and other platforms.
This article explains why and when to write native Node.js modules in C/C++, outlines performance‑critical scenarios, OS‑level hooking, and library bridging, and provides a step‑by‑step guide to using the NAN library to simplify development despite V8 API changes.
WeChat’s Mars library, a C++‑based cross‑platform network component used across Android, iOS, macOS, Windows and more, offers optimized signaling (STN), logging (XLOG), diagnostics (SDT) and core utilities, enabling reliable mobile connections and simplifying development, and will soon be open‑sourced.
libco, the high‑performance C/C++ coroutine library powering WeChat’s backend since 2013, enables agile synchronous‑style programming with massive concurrency, offering features like CGI support, shared‑stack mode, hook‑based API interception, and coroutine‑private variables, allowing seamless, non‑intrusive async transformation of hundreds of services.
In this interview, Lu Pengcheng, a platform architect at Mogu Street, discusses the company’s large‑scale e‑commerce architecture, the evolution of its monitoring platform, design choices for high‑availability distributed systems, and future open‑source plans, providing practical insights for engineers and technical managers.
An objective comparison of Go, Java, and C/C++ (including C++98 and C++11) examines concurrency, performance, syntax, type systems, initialization, error handling, ecosystem, tooling, and industry adoption, offering practical insights for language selection without bias.
libco is a high‑performance C/C++ coroutine library open‑sourced by Tencent, enabling WeChat’s backend to transform synchronous code into non‑intrusive asynchronous execution, achieve massive concurrency, support shared‑stack coroutines, hook network APIs, and simplify variable handling for million‑scale connections.
This article examines the design of Mars's cross‑platform xlog module, explaining why traditional file‑based logging harms app smoothness, how memory buffering, mmap, and stream‑compression overcome performance and reliability issues, and what practical challenges remain on Android and iOS.
This article explains how to implement a memory‑leak detection subsystem for Linux C++ programs by overloading the global new/delete operators, recording allocation sites with file and line information, handling mismatched deletions, supporting dynamic monitoring, and addressing nested‑delete and mutex re‑entrancy issues.
PhxRPC is a compact, 450KB RPC framework from the WeChat backend team that uses Protobuf for IDL, offers semi‑sync/async processing with Epoll‑based IO threads, provides built‑in overload protection, and includes performance benchmarks, usage instructions, and code generation details.
This article examines the challenges of Linux platform‑specific code in C++ projects, critiques simple preprocessor‑macro approaches, and presents three progressively refined design‑pattern solutions—including interface abstraction, binary layering, and a combination of Proxy, Bridge, and Singleton—culminating in extensible, maintainable implementations.
The article explores the historical and practical reasons for mastering C, compares it with Lisp, C++, Java, Perl, Ruby, and Python, and reflects on how language choices shape software development, performance, and developer culture within large engineering teams.
The article explains why allocating an array with new sample[10] yields zero‑initialized memory on Linux but uninitialized memory on Windows, clarifies the difference between default and value initialization in C++, and shows how various new expressions behave with concrete code examples.
This article compiles 17 common C++ backend interview questions covering algorithms, data structures, language nuances, Linux process handling, SQL, networking, and system design, providing concise explanations and complete code examples to help candidates prepare effectively.
This article explains how to apply the Pareto principle and gprof profiling to identify and fix costly C++ code patterns—such as large object initialization and inefficient map usage—resulting in up to a 10% overall performance improvement with minimal code changes.
This guide walks through the typical problems faced when linking C++ applications to MySQL on CentOS—missing Boost headers and undefined driver references—and provides step‑by‑step solutions, including installing Boost, adjusting compile commands, and a working connection code sample.
This guide outlines the core competencies, project experience, and communication abilities a new C++ programmer should develop, recommending key resources and practical focus areas to accelerate learning and become an effective software developer.
In this interview, Meizu system architect Yu Xiaobo shares practical insights on high‑concurrency distributed systems, language choices, long‑connection heartbeat handling, and the evolution of their real‑time push platform, offering concrete advice for backend engineers facing massive user growth.
This guide explains why good naming is essential for maintainable C++ code, presents eight concrete principles—such as being true to the name, avoiding misleading terms, using searchable identifiers, and leveraging meaningful context—and shows bad versus good examples for variables, functions, classes, and constants.
This article compiles 33 notable open‑source web crawler projects across multiple programming languages, detailing their core features, licensing, supported platforms, and typical use cases, helping developers choose the right tool for large‑scale data harvesting and analysis.
The Tweetable Mathematical Art contest asks programmers to craft three ultra‑short C++ functions—each under 140 characters—to generate a full‑resolution 1024×1024 image, and this article showcases several impressive submissions with their resulting graphics and code snippets.
This article explains the fundamentals of TCP/IP and UDP protocols, clarifies where sockets fit in the network stack, describes their role as a façade layer, and provides a complete MFC‑based client‑server example with full source code for initializing, binding, listening, connecting, sending, and receiving data.