Tagged articles
820 articles
Page 4 of 9
IT Services Circle
IT Services Circle
May 17, 2024 · Fundamentals

Using Lex to Build a Simple cat‑Like Utility and an SQL Syntax Highlighter

This article demonstrates how to use the Lex lexical analyzer generator to build a minimal cat‑like utility by creating an empty rule file, then extends the technique to develop a simple SQL syntax highlighter with colorized output, explaining the role of %% separators, default rules, and compilation steps.

Tutorialc++compiler-tools
0 likes · 9 min read
Using Lex to Build a Simple cat‑Like Utility and an SQL Syntax Highlighter
Liangxu Linux
Liangxu Linux
May 15, 2024 · Fundamentals

Mastering Embedded Software Timers: Two Practical Timeout Designs

This article presents two widely used software timeout mechanisms for embedded systems, explaining their concepts, implementation steps, code examples, and a comparative analysis to help engineers replace CPU‑blocking delays with hardware‑timer‑based solutions.

STM32Timeoutc++
0 likes · 6 min read
Mastering Embedded Software Timers: Two Practical Timeout Designs
Tencent Architect
Tencent Architect
May 14, 2024 · Fundamentals

Unlocking C++ Object Memory Layout: From Basics to Inheritance and ASLR

This article walks through C++ object memory layout using concrete examples, covering basic data members, methods, private and static members, inheritance (with and without virtual functions), compiler optimizations, and address‑space layout randomization, all demonstrated with GDB inspections and code snippets.

ASLRInheritanceObject Layout
0 likes · 22 min read
Unlocking C++ Object Memory Layout: From Basics to Inheritance and ASLR
IT Services Circle
IT Services Circle
May 2, 2024 · Artificial Intelligence

LLM.c: A 1000‑Line C Implementation for Training GPT‑2

Andrej Karpathy’s LLM.c project demonstrates how a compact, pure‑C (and CUDA) codebase of roughly 1000 lines can train a GPT‑2 model, covering data preparation, memory management, layer implementations, compilation, and practical tips for running and testing the model on CPUs and GPUs.

AICUDAGPT-2
0 likes · 10 min read
LLM.c: A 1000‑Line C Implementation for Training GPT‑2
ITPUB
ITPUB
May 2, 2024 · Databases

Boost MySQL Performance 30‑50% with Profile‑Guided Optimization (PGO)

This article explains how Profile‑Guided Optimization (PGO) can increase MySQL throughput by 30‑50% without changing application code, detailing the required compilation steps, necessary CMake flags, and real‑world benchmark results that demonstrate the performance gains and their limitations.

Compiler OptimizationPGOSysbench
0 likes · 10 min read
Boost MySQL Performance 30‑50% with Profile‑Guided Optimization (PGO)
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Zigzag Conversion Algorithm (LeetCode 6)

The Zigzag Conversion algorithm rearranges an input string into a Z‑shaped pattern across a specified number of rows, tracks the current row while toggling direction at the top and bottom, stores characters per row, and finally concatenates the rows to produce the transformed string, with reference implementations in C++, Java, and Python.

LeetCodePythonString
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)
Liangxu Linux
Liangxu Linux
Apr 21, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained

This article explains C language memory partitioning—including stack, heap, global/static, constant, and code sections—illustrates their characteristics and growth directions, then applies the concepts to STM32F103 by showing memory map details and providing a complete Keil‑based C program that prints the addresses of variables in each region.

Data SegmentHeapSTM32
0 likes · 10 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Data Segments Explained
dbaplus Community
dbaplus Community
Apr 19, 2024 · Backend Development

How Justine Tunney Built a Six‑OS C Web Server and Other Groundbreaking Projects

The article showcases Justine Tunney’s remarkable engineering feats—from the RedBean web server that runs the same binary on six operating systems, to the cosmopolitan libc, a 512‑byte sectorLisp, the Blinkenlights visual debugger, the RoseHub security effort, and the llamafile tool that packages large language models into a single portable executable.

LLMLispWeb server
0 likes · 9 min read
How Justine Tunney Built a Six‑OS C Web Server and Other Groundbreaking Projects
Deepin Linux
Deepin Linux
Apr 13, 2024 · Fundamentals

Understanding POSIX: Concepts, Network APIs, and Semaphore Programming in C

This article explains the POSIX standards, their role in providing portable Unix-like system interfaces, demonstrates network client‑server programming with POSIX sockets, analyzes key socket functions and the TCP three‑way handshake, and introduces POSIX named and unnamed semaphores with example code for synchronization and producer‑consumer patterns.

Network programmingPOSIXUnix
0 likes · 26 min read
Understanding POSIX: Concepts, Network APIs, and Semaphore Programming in C
FunTester
FunTester
Apr 12, 2024 · Backend Development

Performance Optimization Techniques for Backend Systems: Replacing Protobuf with C++ Classes, Cache‑Friendly Structures, jemalloc, and Lock‑Free Data Structures

The article presents practical backend performance optimization methods—including substituting Protobuf with native C++ classes, employing cache‑friendly data structures, integrating jemalloc/tcmalloc, using lock‑free double‑buffer designs, and tailoring data formats—to achieve up to three‑fold speed improvements and significant latency reductions.

Cache FriendlyProtobufbackend-development
0 likes · 15 min read
Performance Optimization Techniques for Backend Systems: Replacing Protobuf with C++ Classes, Cache‑Friendly Structures, jemalloc, and Lock‑Free Data Structures
Liangxu Linux
Liangxu Linux
Apr 9, 2024 · Fundamentals

How to Handle Signals in Multithreaded Linux Programs (C Example)

This article explains the differences between threads and processes in Linux, introduces the concept of POSIX signals, describes how signals are delivered and handled in multithreaded programs, and provides a complete C example demonstrating proper signal handling across threads.

LinuxPOSIXThreads
0 likes · 5 min read
How to Handle Signals in Multithreaded Linux Programs (C Example)
21CTO
21CTO
Apr 8, 2024 · Backend Development

What Microsoft’s C# Journey Reveals About Open‑Source Language Evolution

Jared Parsons reflects on two decades at Microsoft, detailing C#'s shift to open source, the compiler’s transformation into an API, rigorous testing practices, and how these changes have shaped the language’s design, ecosystem, and performance for modern developers.

c++open‑source
0 likes · 10 min read
What Microsoft’s C# Journey Reveals About Open‑Source Language Evolution
Liangxu Linux
Liangxu Linux
Apr 5, 2024 · Fundamentals

Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections

This article explains the C language memory segmentation—including stack, heap, global/static, constant, and code areas—illustrates their behavior on STM32F103 with Keil V5, and provides detailed example code that prints the addresses of variables in each region to demonstrate allocation and lifetime.

HeapSTM32Stack
0 likes · 9 min read
Understanding C Memory Layout on STM32: Stack, Heap, and Global Sections
Liangxu Linux
Liangxu Linux
Apr 5, 2024 · Fundamentals

Why Zero‑Length Arrays Matter in Linux Kernel Development

This article explains what zero‑length arrays are, how they are defined in C, why they appear frequently in the Linux kernel as flexible array members, and provides a complete kernel‑style implementation showing creation, expansion, and cleanup of a dynamically sized integer array.

Dynamic memory allocationFlexible array memberLinux kernel
0 likes · 10 min read
Why Zero‑Length Arrays Matter in Linux Kernel Development
DaTaobao Tech
DaTaobao Tech
Apr 1, 2024 · Fundamentals

Fundamentals of Modern C++: Types, Pointers, Functions, and Classes

The article offers a concise, modern C++ (C++11+) tutorial covering fundamental built‑in types, variable declaration with auto and uniform initialization, pointer and array handling, function definitions, overloading, templates, class design—including constructors, move semantics, inheritance, virtual functions—and essential standard‑library utilities such as smart pointers and std::function.

c++classesfunctions
0 likes · 48 min read
Fundamentals of Modern C++: Types, Pointers, Functions, and Classes
ByteDance Cloud Native
ByteDance Cloud Native
Mar 27, 2024 · Cloud Native

How ByteDance Optimized Its Metrics Agent for 70% CPU Savings

This article details how ByteDance's cloud‑native observability team tackled performance bottlenecks in their metricserver2 Agent—reducing memory copies, merging tiny packets, applying SIMD for tag parsing, and switching compression libraries—to cut CPU usage by over 10% and memory usage by nearly 20% while handling petabyte‑scale metric data.

MsgpackSIMDc++
0 likes · 15 min read
How ByteDance Optimized Its Metrics Agent for 70% CPU Savings
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 25, 2024 · Fundamentals

Master Modern C++: Essential Syntax, Types, and Best Practices

This comprehensive guide introduces modern C++ fundamentals, covering core language features such as basic types, memory management, pointers, arrays, functions, object‑oriented concepts, templates, and best‑practice idioms to help developers refresh or build a solid C++ foundation.

Tutorialbasicsc++
0 likes · 51 min read
Master Modern C++: Essential Syntax, Types, and Best Practices
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 15, 2024 · Fundamentals

Unlocking High-Performance Multithreading: Lock-Free Techniques in iLogtail

This article explores the fundamentals of multithreaded programming, comparing traditional lock-based synchronization with advanced lock-free techniques, and demonstrates how iLogtail implements thread models, memory barriers, atomic operations, spin locks, double-buffering, and deferred reclamation to achieve scalable, high-performance concurrency.

Memory Modelc++iLogtail
0 likes · 25 min read
Unlocking High-Performance Multithreading: Lock-Free Techniques in iLogtail
Architect
Architect
Mar 12, 2024 · Backend Development

Boost C++ Service Performance: 3× Faster with Classes, Cache‑Friendly Structures, jemalloc and Lock‑Free Designs

This article walks through a series‑by‑step performance‑tuning process for high‑throughput C++ services, replacing Protobuf with plain classes, adopting cache‑friendly hash tables, switching to jemalloc, implementing a double‑buffer lock‑free data structure, and tailoring data formats, each backed by concrete code examples, benchmark results, and analysis of trade‑offs.

Cache FriendlyProtobufbenchmark
0 likes · 20 min read
Boost C++ Service Performance: 3× Faster with Classes, Cache‑Friendly Structures, jemalloc and Lock‑Free Designs
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 11, 2024 · Operations

Why iLogtail Needed a Complete Architecture Overhaul and How It Was Done

This article explains the motivations behind iLogtail's architectural redesign, details the evolution from a single‑file C++ collector to a modular pipeline with Golang plugins, outlines the refactor goals and implementation practices, and reflects on the challenges and outcomes of the six‑month effort.

GolangPlugin Systemarchitecture
0 likes · 38 min read
Why iLogtail Needed a Complete Architecture Overhaul and How It Was Done
IT Services Circle
IT Services Circle
Mar 8, 2024 · Fundamentals

Interview Q&A: C Language Basics, Algorithms, Memory Management, and System Programming

This article provides concise explanations and code examples for common interview questions covering C global variable defaults, binary representations, finding top‑k elements, double‑pointer and binary search techniques, OOP concepts in C, differences between C++ class and struct, UDP packet limits, TCP read() return values, memory leaks in infinite loops, and resource cleanup on process exit.

Memory ManagementOperating SystemsProgramming Interview
0 likes · 18 min read
Interview Q&A: C Language Basics, Algorithms, Memory Management, and System Programming
High Availability Architecture
High Availability Architecture
Mar 6, 2024 · Backend Development

Performance Optimization Techniques: Replacing Protobuf with C++ Classes, Cache‑Friendly Structures, jemalloc, and Lock‑Free Designs

This article presents practical performance‑optimization strategies for high‑throughput C++ services, including replacing Protobuf with hand‑written classes, adopting cache‑friendly data structures, using jemalloc/tcmalloc instead of the default allocator, employing lock‑free double‑buffer designs, tailoring data formats for specific workloads, and leveraging profiling tools to measure gains.

Cache FriendlyProtobufc++
0 likes · 17 min read
Performance Optimization Techniques: Replacing Protobuf with C++ Classes, Cache‑Friendly Structures, jemalloc, and Lock‑Free Designs
21CTO
21CTO
Mar 5, 2024 · Cloud Native

Why Microsoft Is Embracing Rust Without Abandoning C#

Microsoft confirms its continued commitment to C# while actively recruiting Rust architects to rewrite core cloud services, highlighting Rust's performance and memory‑safety benefits, industry demand, budget considerations, and the broader trend of major tech firms investing in Rust.

Rustc++
0 likes · 9 min read
Why Microsoft Is Embracing Rust Without Abandoning C#
WeChat Client Technology Team
WeChat Client Technology Team
Feb 21, 2024 · Fundamentals

How to Shrink C++ Template Bloat: Practical Strategies for Leaner Code

This article explains why C++ template instantiation can cause code bloat and provides concrete, actionable strategies—such as extracting non‑template parts to base classes, using helper abstractions, avoiding unnecessary template parameters, and measuring binary size—to significantly reduce compiled binary size while keeping code maintainable.

Code size reductionc++performance
0 likes · 22 min read
How to Shrink C++ Template Bloat: Practical Strategies for Leaner Code
Liangxu Linux
Liangxu Linux
Feb 20, 2024 · Fundamentals

9 Essential C Utility Snippets Every Embedded Engineer Should Know

This article presents nine powerful C utility code examples—including a circular buffer, custom assertions, bit reversal, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset—explaining their purpose and demonstrating how they can improve performance and maintainability in embedded system development.

Data Structuresbit manipulationc++
0 likes · 7 min read
9 Essential C Utility Snippets Every Embedded Engineer Should Know
DevOps Engineer
DevOps Engineer
Feb 19, 2024 · Operations

cpp-linter-action v2.9.0 Introduces Pull Request Review Capability

The cpp-linter-action tool, a GitHub Action for C/C++ linting, has been updated to version 2.9.0 adding a Pull Request Review feature that posts suggestions directly in PRs, along with other functionalities such as Annotations, Thread Comments, and Step Summaries.

CIGitHub ActionsPull Request Review
0 likes · 8 min read
cpp-linter-action v2.9.0 Introduces Pull Request Review Capability
Python Programming Learning Circle
Python Programming Learning Circle
Feb 18, 2024 · Fundamentals

Hello World Examples in 12 Popular Programming Languages

This article showcases the correct "Hello World" syntax for twelve widely used programming languages, providing clear code snippets and brief explanations to help beginners understand the fundamental first program across Java, C, Python, C++, C#, Visual Basic .NET, JavaScript, PHP, Objective‑C, SQL, Ruby, and MATLAB.

Hello WorldPythonc++
0 likes · 4 min read
Hello World Examples in 12 Popular Programming Languages
Code Ape Tech Column
Code Ape Tech Column
Feb 17, 2024 · Backend Development

Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server

This article explains Netty’s reactor‑based asynchronous architecture, compares classic multithread, select, poll and epoll I/O multiplexing models, demonstrates Java‑C interaction via JNI, and provides a complete hand‑written epoll server implementation with detailed code and performance insights.

IO MultiplexingJNINetty
0 likes · 36 min read
Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing: Theory, JNI Integration, and a Hand‑Written Epoll Server
Architect
Architect
Feb 4, 2024 · Backend Development

How We Revamped QQ Browser Content Architecture: From Microservices to a High‑Performance Monolith

Facing low development efficiency, poor CPU utilization, and fragile fault tolerance, the QQ Browser content ingestion team rebuilt a 93‑service microservice system into a single‑process, plugin‑driven architecture, achieving up to 13‑fold throughput gains, 10‑fold batch‑processing speedups, and dramatically reduced lead times and code complexity.

BackendMicroservicesSystem Design
0 likes · 22 min read
How We Revamped QQ Browser Content Architecture: From Microservices to a High‑Performance Monolith
Open Source Tech Hub
Open Source Tech Hub
Jan 26, 2024 · Fundamentals

How Smaz2 Compresses LoRa Messages on Tiny Devices

This article explains the motivation, dictionary design, bigram table, encoding rules, and real‑world compression results of the Smaz2 library, a space‑optimized C/Python compressor for short LoRa messages on microcontrollers with less than 2 KB RAM.

LoRAPythonc++
0 likes · 8 min read
How Smaz2 Compresses LoRa Messages on Tiny Devices
Java Tech Enthusiast
Java Tech Enthusiast
Jan 19, 2024 · Industry Insights

Why Is C++ Struggling to Find Its Place? An Industry Perspective

The article examines C++'s identity crisis, arguing that a weak ecosystem, limited standard‑library support, and a focus on language features by the standards committee and Microsoft have left the language awkwardly positioned compared to languages like Java, Python, and Go.

EcosystemIndustry AnalysisStandard Committee
0 likes · 6 min read
Why Is C++ Struggling to Find Its Place? An Industry Perspective
Tencent Cloud Developer
Tencent Cloud Developer
Jan 19, 2024 · Backend Development

Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs

This article revisits a 2017 decision to ban exceptions in a large codebase, examines the technical and organizational reasons behind that rule, analyzes exception mechanics, coroutine interactions, and performance impacts with concrete C++ examples, and finally proposes a pragmatic action plan for safely adopting exception‑driven design.

ConsistencyException HandlingSoftware Architecture
0 likes · 33 min read
Should You Use Exceptions in Modern C++? A Deep Dive into Consistency, Coroutines, and Real‑World Trade‑offs
Liangxu Linux
Liangxu Linux
Jan 17, 2024 · Fundamentals

C volatile Techniques: Multithreading, Embedded, Debugging, Pointer Casting

This article explores advanced applications of the C volatile keyword, demonstrating its role in multithreaded synchronization, embedded hardware register access, disabling compiler optimizations for debugging, and safe pointer type casting, each illustrated with complete, runnable code examples.

c++debuggingpointer casting
0 likes · 7 min read
C volatile Techniques: Multithreading, Embedded, Debugging, Pointer Casting
Tencent Cloud Developer
Tencent Cloud Developer
Jan 9, 2024 · Fundamentals

C#'s Rise in TIOBE Rankings: A Comprehensive Analysis

Rising to the top of the 2023 TIOBE rankings, C#—born in the early 2000s to simplify complex software—combines type safety, cross‑platform .NET support, and modern tooling, enabling developers to build AI, cloud‑native, game, full‑stack web, desktop, mobile, and IoT applications with increasing popularity worldwide.

AICloud NativeGame Development
0 likes · 16 min read
C#'s Rise in TIOBE Rankings: A Comprehensive Analysis
Java High-Performance Architecture
Java High-Performance Architecture
Jan 5, 2024 · Databases

Why Manticore Search Could Replace Elasticsearch: 10× Faster, Open‑Source DB

Discover how Manticore Search, an open‑source C++‑based high‑performance search engine, claims to outperform Elasticsearch by up to 15‑times, offering cost‑effective, multi‑threaded full‑text search, SQL compatibility, Docker deployment, and extensive language client support for diverse data workloads.

DockerElasticsearch alternativeManticore Search
0 likes · 6 min read
Why Manticore Search Could Replace Elasticsearch: 10× Faster, Open‑Source DB
Java Tech Enthusiast
Java Tech Enthusiast
Jan 3, 2024 · Fundamentals

Anders Hejlsberg: Pioneer of Turbo Pascal, Delphi, C# and TypeScript

Anders Hejlsberg, a Copenhagen‑born programming prodigy, created the Turbo Pascal compiler, led Borland’s Delphi that sold millions, then at Microsoft designed Visual J++, the .NET framework, the C# language, and co‑authored TypeScript, shaping software development across three decades.

Anders HejlsbergDelphiTurbo Pascal
0 likes · 5 min read
Anders Hejlsberg: Pioneer of Turbo Pascal, Delphi, C# and TypeScript
Bilibili Tech
Bilibili Tech
Dec 29, 2023 · Artificial Intelligence

Performance Optimization of Bilibili's Online Inference Service for the Effect Advertising Engine

To cope with soaring traffic on Bilibili’s effect‑advertising engine, the team systematically measured latency, eliminated redundant Redis calls, switched JSON to Protobuf, applied branch‑prediction hints, loop‑unrolling and AVX256 SIMD, introduced object‑pooling and an inverted‑index request format, cutting CPU usage by 21 % and boosting peak throughput 13 %.

CPUMemory ManagementNetwork I/O
0 likes · 21 min read
Performance Optimization of Bilibili's Online Inference Service for the Effect Advertising Engine
Liangxu Linux
Liangxu Linux
Dec 28, 2023 · Fundamentals

Essential Open‑Source C Unit Testing Frameworks and Unity on STM32

This note introduces several open‑source C unit‑testing frameworks, compares their features, and provides a step‑by‑step guide for porting and using the Unity framework on an STM32 platform, including configuration, test case writing, and result interpretation.

Unityc++embedded
0 likes · 9 min read
Essential Open‑Source C Unit Testing Frameworks and Unity on STM32
Liangxu Linux
Liangxu Linux
Dec 25, 2023 · Fundamentals

Mastering C Pointers: From Memory Basics to Advanced Usage

This comprehensive guide explains the fundamentals of pointers in C, covering memory layout, variable storage, address arithmetic, const and void pointers, pointer arrays, function pointers, and common pitfalls, with clear diagrams and runnable code examples to deepen your understanding of low‑level programming.

Code ExamplesData Typesc++
0 likes · 30 min read
Mastering C Pointers: From Memory Basics to Advanced Usage
Liangxu Linux
Liangxu Linux
Dec 19, 2023 · Fundamentals

Master DHT11 Temperature & Humidity Sensor on STM32: Full Code Walkthrough

This tutorial provides a comprehensive, step‑by‑step guide to using the DHT11 temperature and humidity sensor with an STM32F103C8T6 MCU, covering hardware wiring, sensor specifications, timing diagrams, HAL‑based driver implementation, and complete source code for reliable data acquisition.

DHT11HALSTM32
0 likes · 13 min read
Master DHT11 Temperature & Humidity Sensor on STM32: Full Code Walkthrough
Liangxu Linux
Liangxu Linux
Dec 9, 2023 · Fundamentals

Why Adding a printf Can “Bless” a Crashing C Program

A humorous tale reveals how an uninitialized stack variable caused a segmentation fault in C, how inserting a printf unintentionally altered memory to hide the bug, and why proper debugging with GDB is essential to understand such hidden issues.

c++debuggingprintf side effect
0 likes · 9 min read
Why Adding a printf Can “Bless” a Crashing C Program
21CTO
21CTO
Nov 27, 2023 · Backend Development

Explore BOTLIB: A Minimal C Telegram Bot Framework by Redis Creator

Redis founder antirez has open‑sourced BOTLIB, a lightweight C library for building Telegram bots, featuring clear code structure, global chat state management, client handling, and a step‑by‑step event loop, making it an ideal learning project for C network programming enthusiasts.

Bot FrameworkNetwork programmingTelegram bot
0 likes · 4 min read
Explore BOTLIB: A Minimal C Telegram Bot Framework by Redis Creator
Deepin Linux
Deepin Linux
Nov 24, 2023 · Fundamentals

Embedded Software Interview Experience and Technical Review

This article shares a comprehensive embedded software interview guide, covering written‑test topics such as structs vs. unions, linked lists, pointer safety, endianness detection, and a strcpy implementation, followed by technical interview tips, HR interview advice, and concluding remarks.

Data StructuresLinuxMicrocontroller
0 likes · 22 min read
Embedded Software Interview Experience and Technical Review
Liangxu Linux
Liangxu Linux
Nov 18, 2023 · Fundamentals

How to Build a Fully Decoupled Time‑Slice Scheduling Framework for Microcontrollers

This article explains why a solid program architecture is essential for embedded projects, introduces a lightweight time‑slice scheduling framework that separates OS logic from user code, and provides complete C source files—including an intrusive doubly‑linked list implementation—to help developers quickly create and manage tasks on a microcontroller.

Intrusive Linked ListMicrocontrollerTime Slice Scheduling
0 likes · 11 min read
How to Build a Fully Decoupled Time‑Slice Scheduling Framework for Microcontrollers
Efficient Ops
Efficient Ops
Nov 12, 2023 · Backend Development

How We Revamped QQ Browser’s Content Engine: From Micro‑services Chaos to High‑Performance Monolith

This article details the complete redesign of QQ Browser's content ingestion system, explaining why the original micro‑service architecture caused low efficiency and performance, and how a zero‑base redesign using a monolithic service, plugin framework, fault‑tolerant pipelines, and thread separation dramatically improved throughput, latency, and developer productivity.

BackendMicroservicesSystem Design
0 likes · 21 min read
How We Revamped QQ Browser’s Content Engine: From Micro‑services Chaos to High‑Performance Monolith
Bilibili Tech
Bilibili Tech
Nov 7, 2023 · Artificial Intelligence

Technical Overview of Bilibili Vision Toolkit (BVT): Architecture, Features, and FFmpeg Filter Integration

The Bilibili Vision Toolkit (BVT) is a C++ SDK that unifies multimedia AI algorithms through a low‑coupling core, modular dynamic libraries, and a multi‑engine backend, enabling configurable DAG pipelines, asynchronous parallel execution, and seamless FFmpeg filter integration for high‑performance, cross‑platform video processing.

BVTSDKc++
0 likes · 15 min read
Technical Overview of Bilibili Vision Toolkit (BVT): Architecture, Features, and FFmpeg Filter Integration
ITPUB
ITPUB
Nov 3, 2023 · Backend Development

Cutting 80% of Legacy Query Code: Refactoring Lessons for Faster, Safer Backend Services

After inheriting a decade‑old query optimizer with massive code duplication and performance issues, our team reduced the codebase by 80%, improved stability, cut startup time from 18 minutes to seconds, and enabled cloud deployment, sharing the code smells we encountered, their motivations, and concrete fixes.

Code Refactoringbackend-developmentc++
0 likes · 12 min read
Cutting 80% of Legacy Query Code: Refactoring Lessons for Faster, Safer Backend Services
FunTester
FunTester
Oct 30, 2023 · Backend Development

How to Build a High‑Performance Object Pool for Multithreaded Systems

This article explores the motivation, design, implementation, and performance testing of a high‑performance object pool that reduces allocation overhead in multithreaded environments by using thread‑local storage, freelists, and lock‑optimized global resources.

Memory Managementc++cacheline alignment
0 likes · 25 min read
How to Build a High‑Performance Object Pool for Multithreaded Systems
Liangxu Linux
Liangxu Linux
Oct 25, 2023 · Fundamentals

Master C Pointers: From Memory Basics to Advanced Techniques

This tutorial explains C pointers in depth, covering memory addresses, declaration, initialization, dereferencing, pointer arithmetic, function pointers, passing by reference, and dynamic memory allocation, with clear code examples and practical usage tips.

c++pointers
0 likes · 8 min read
Master C Pointers: From Memory Basics to Advanced Techniques
Selected Java Interview Questions
Selected Java Interview Questions
Oct 22, 2023 · Game Development

Red Alert (Command & Conquer) Source Code Open‑Sourced: History, Details, and Community Impact

The classic real‑time strategy game Red Alert, originally released by Westwood Studios and later acquired by EA, has had parts of its 1996 source code for both Tiberian Dawn and Red Alert released on GitHub, offering C++ developers insight into the well‑structured game logic while excluding assets and the engine.

Command & ConquerGame DevelopmentRed Alert
0 likes · 4 min read
Red Alert (Command & Conquer) Source Code Open‑Sourced: History, Details, and Community Impact
Liangxu Linux
Liangxu Linux
Oct 21, 2023 · Fundamentals

Master C Pointers: From Memory Basics to Advanced Usage

This article explains C pointers in depth, covering memory layout, declaration, initialization, dereferencing, pointer arithmetic, function pointers, passing by reference, dynamic memory allocation, and common use cases, with clear code examples for each concept.

Code Examplesc++pointers
0 likes · 9 min read
Master C Pointers: From Memory Basics to Advanced Usage
Alipay Experience Technology
Alipay Experience Technology
Oct 20, 2023 · Mobile Development

Boost Android Native C++ Quality with Clang‑Tidy and the C++ Core Guidelines

This article explains how to integrate the C++ Core Guidelines checker via Clang‑Tidy into Android C++ projects, covering setup in ndk‑build and Android Studio, using quick‑fixes to automatically refactor code, generating a JSON compilation database, and highlighting the guidelines' impact on modern C++ talent development.

AndroidClang-TidyCompilation Database
0 likes · 14 min read
Boost Android Native C++ Quality with Clang‑Tidy and the C++ Core Guidelines
Liangxu Linux
Liangxu Linux
Oct 15, 2023 · Fundamentals

Mastering C Structs: Definitions, Alignment, and Practical Usage

This guide explains C structs—from basic definitions and declaration styles to memory alignment, byte sizing, bit‑field handling, nested structures, and using structs as function parameters—providing clear code examples and practical tips for efficient embedded and systems programming.

Initializationbit-fieldsc++
0 likes · 29 min read
Mastering C Structs: Definitions, Alignment, and Practical Usage
Deepin Linux
Deepin Linux
Oct 13, 2023 · Fundamentals

Understanding Sockets: Concepts, TCP/UDP, System Calls, and Sample C Code

This article explains the fundamentals of sockets as a network communication abstraction, covering process communication, TCP/UDP protocols, socket descriptors, key system calls, the TCP three‑way handshake and four‑way termination, Linux kernel basics, and provides complete C examples for a server and client.

LinuxSocketSystem Calls
0 likes · 45 min read
Understanding Sockets: Concepts, TCP/UDP, System Calls, and Sample C Code
Java High-Performance Architecture
Java High-Performance Architecture
Sep 30, 2023 · Fundamentals

Common Rookie Mistakes Every Programmer Should Avoid

This article reviews a series of typical programming blunders—from incorrect local file includes and obscure character usage to excessive if‑else chains, meaningless variable names, hard‑coded outputs, missing returns, and thread‑sleep misuse—offering concrete examples and community comments to help developers learn from these errors.

c++coding best practicesprogramming mistakes
0 likes · 5 min read
Common Rookie Mistakes Every Programmer Should Avoid
Liangxu Linux
Liangxu Linux
Sep 29, 2023 · Backend Development

5 Common Socket Programming Pitfalls and How to Avoid Them

This article outlines five frequent mistakes in C socket programming—ignoring return values, mishandling peer closures, address‑in‑use errors, endianness issues when sending structured data, and false assumptions about TCP framing—while providing concrete code examples and Linux debugging tools to help developers write more reliable network code.

Error HandlingLinux networkingc++
0 likes · 13 min read
5 Common Socket Programming Pitfalls and How to Avoid Them
Amap Tech
Amap Tech
Sep 27, 2023 · Fundamentals

Crash Analysis of C++ LooperObserverMan: Memory Reordering and Segmentation Fault

The crash in asl::LooperObserverMan::notifyIdle was traced to a compiler‑level store‑store reordering that exposed an uninitialized observer pointer, causing an illegal memory access, and was fixed by inserting a memory barrier or using proper atomic ordering to enforce correct initialization order.

Memory Reorderingc++crash analysis
0 likes · 32 min read
Crash Analysis of C++ LooperObserverMan: Memory Reordering and Segmentation Fault
Liangxu Linux
Liangxu Linux
Sep 21, 2023 · Fundamentals

When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros

This article explains the three common techniques for wrapping C function‑like macros—plain braces, do{…}while(0), and the GNU ({}) extension—detailing their syntax, usage pitfalls, advantages, disadvantages, and recommendations for safe macro design.

GNU extensionMacrosc++
0 likes · 8 min read
When to Use {} vs do{…}while(0) vs ({}) in C Function‑like Macros
Top Architect
Top Architect
Sep 20, 2023 · Mobile Development

Cross‑Platform Architecture for WeChat Pay: Reducing Code, Improving Quality and Productivity

This article explains how WeChat Pay solved the fragmented iOS/Android implementations by building a C++‑based cross‑platform framework, introducing UseCase‑driven flow abstraction, a unified routing mechanism, disciplined network request handling, and standardized data passing, resulting in up to 45% code reduction and faster feature delivery.

Data FlowNetwork RequestsWeChat Pay
0 likes · 17 min read
Cross‑Platform Architecture for WeChat Pay: Reducing Code, Improving Quality and Productivity
IT Services Circle
IT Services Circle
Sep 16, 2023 · Artificial Intelligence

Porting Llama2 to Mojo: Massive Performance Boosts and Insights

Former Meta engineer Aydyn Tairov quickly ported the Python implementation of Llama2 to the newly released Mojo language, demonstrating that Mojo’s SIMD primitives can accelerate Python code by up to 250 times and even make the Python version run 20% faster than the original C implementation.

AILlama2Meta
0 likes · 2 min read
Porting Llama2 to Mojo: Massive Performance Boosts and Insights
Liangxu Linux
Liangxu Linux
Sep 14, 2023 · Fundamentals

Master the Essential C Standard Library Functions for Professional Coding

This guide explores the most commonly used C standard library headers—stdio.h, stdlib.h, and string.h—detailing each function’s purpose, usage, and providing clear code examples such as printf, malloc, strcpy, and qsort to help programmers write cleaner, more efficient C code.

Code ExamplesSTDIOStandard Library
0 likes · 11 min read
Master the Essential C Standard Library Functions for Professional Coding
dbaplus Community
dbaplus Community
Sep 13, 2023 · Backend Development

How We Boosted Content Ingestion Performance 13× by Redesigning a Microservice System

This article details the complete redesign of a large‑scale content ingestion platform, explaining why the original microservice‑heavy architecture suffered from low development efficiency and poor performance, how a monolithic‑plus‑plugin approach solved these issues, and the resulting 13‑fold speedup, 10‑fold batch improvement, and 70% latency reduction.

BackendMicroservicesc++
0 likes · 20 min read
How We Boosted Content Ingestion Performance 13× by Redesigning a Microservice System
Open Source Linux
Open Source Linux
Sep 1, 2023 · Fundamentals

Mastering C Pointers: From Basics to Advanced Function Passing

This article explains the fundamentals of C pointer variables, covering their memory layout, declaration, initialization, pointer arithmetic with arrays, passing pointers between functions, and using arrays as function parameters, illustrated with clear code examples and diagrams.

ArraysMemoryc++
0 likes · 8 min read
Mastering C Pointers: From Basics to Advanced Function Passing
Sanyou's Java Diary
Sanyou's Java Diary
Aug 31, 2023 · Backend Development

How a Monolith Redesign Boosted Content Ingestion Performance 13‑Fold

The article details how QQ Browser's content architecture was transformed from a fragmented micro‑service system into a single monolithic service with a plugin framework, dramatically improving processing speed, fault tolerance, and development efficiency while handling thousands of content types.

BackendMicroservicesc++
0 likes · 20 min read
How a Monolith Redesign Boosted Content Ingestion Performance 13‑Fold
Architect's Guide
Architect's Guide
Aug 25, 2023 · Mobile Development

Cross‑Platform Architecture for WeChat Pay: Reducing Bugs and Boosting Productivity with a C++ Framework

The article describes how a C++‑based cross‑platform framework was built to unify iOS and Android implementations of WeChat Pay, addressing bugs, scalability, quality assurance, routing, network request management, and data‑flow discipline, ultimately improving development efficiency and user experience.

UseCaseWeChat Payc++
0 likes · 13 min read
Cross‑Platform Architecture for WeChat Pay: Reducing Bugs and Boosting Productivity with a C++ Framework
Liangxu Linux
Liangxu Linux
Aug 23, 2023 · Fundamentals

Master Linux Process Creation & IPC: System Calls, Queues, Shared Memory, Sockets, Pipes, Semaphores

This guide explains what a process is, how it differs from a thread, various ways to create and terminate processes in Linux, and provides detailed examples of inter‑process communication mechanisms—including message queues, shared memory, UNIX domain sockets, pipes, and semaphores—complete with C code samples.

IPCLinuxMessage Queue
0 likes · 31 min read
Master Linux Process Creation & IPC: System Calls, Queues, Shared Memory, Sockets, Pipes, Semaphores
DeWu Technology
DeWu Technology
Aug 21, 2023 · Backend Development

Design and Implementation of DGraph: A High‑Performance Recommendation Engine

DGraph, a C++ recommendation engine launched in 2022 for 得物, combines an index layer with a service layer, uses lock‑free RCU structures, a custom mmap‑based D‑Allocator, RoaringBitmap invert indexes, and a multi‑operator fusion scheduler to achieve high‑performance, eventually consistent, scalable recommendations.

Distributed SystemsMemory ManagementRCU
0 likes · 12 min read
Design and Implementation of DGraph: A High‑Performance Recommendation Engine
21CTO
21CTO
Aug 20, 2023 · Fundamentals

Build Your Own Unix Shell in C: A Step‑by‑Step Tutorial

This tutorial walks you through creating a simple Unix shell in C, covering its lifecycle, input handling, command parsing, process launching, built‑in commands, and full source compilation, while providing complete code examples and explanations.

ShellSystem CallsTutorial
0 likes · 19 min read
Build Your Own Unix Shell in C: A Step‑by‑Step Tutorial