Tagged articles

C++

877 articles · Page 4 of 9
JD Tech
JD Tech
Nov 13, 2024 · Frontend Development

Dynamic Cross‑Platform Rendering Architecture and Implementation on HarmonyOS

This article explains the end‑to‑end architecture, principles, and code implementation of the dynamic cross‑platform framework (Roma/Dynamic) on HarmonyOS, covering template loading, JS‑C++‑ArkTS instance creation, V‑Dom and Component tree construction, rendering pipeline, view updates, and performance optimizations.

C++HarmonyOSJavaScript
0 likes · 30 min read
Dynamic Cross‑Platform Rendering Architecture and Implementation on HarmonyOS
Huolala Tech
Huolala Tech
Nov 12, 2024 · Fundamentals

Boost Mobile Crash Debugging with Symbolic Demangle: A Complete Walkthrough

This article explains how the Huolala mobile team built a stable symbol demangling system using the open‑source symbolic‑demangle tool, covering the concepts of name mangling, why symbolic was chosen, step‑by‑step adaptation for newer Swift versions, Linux Python‑wheel building, and practical troubleshooting tips.

C++DebuggingRust
0 likes · 15 min read
Boost Mobile Crash Debugging with Symbolic Demangle: A Complete Walkthrough
Ctrip Technology
Ctrip Technology
Nov 1, 2024 · Operations

Ctrip's Weak Network Detection Model: Design, Implementation, and Evaluation

This article details Ctrip's end‑to‑end weak‑network identification model, covering background, metric selection, data collection on iOS and Android, processing pipelines with dynamic weighting, weighted median calculations, success‑rate trends, threshold tuning, and deployment results across multiple platforms.

C++Data ProcessingRTT
0 likes · 25 min read
Ctrip's Weak Network Detection Model: Design, Implementation, and Evaluation
DaTaobao Tech
DaTaobao Tech
Oct 28, 2024 · Fundamentals

Garbage Collection Algorithms and Reference Counting in QuickJS

QuickJS manages memory using reference counting for each object combined with a cycle‑collector that periodically scans roots, decrements child references, and frees objects whose counts drop to zero, while also supporting traditional reachability‑based garbage‑collection techniques such as mark‑sweep, copying, and generational collection.

AlgorithmC++Garbage Collection
0 likes · 9 min read
Garbage Collection Algorithms and Reference Counting in QuickJS
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 27, 2024 · Game Development

Technical Principles and Implementation of Game Memory Modifiers for "Black Myth: Wukong"

This article explains the technical mechanisms behind game memory modifiers—including memory scanning, DLL injection, debugging tools, file editing, anti‑cheat evasion, and pointer scanning—using the "Black Myth: Wukong" trainer as a concrete example, and provides complete C++ code samples.

C++DLL injectionanti-cheat evasion
0 likes · 14 min read
Technical Principles and Implementation of Game Memory Modifiers for "Black Myth: Wukong"
IT Services Circle
IT Services Circle
Oct 19, 2024 · Fundamentals

Understanding Python's Virtual Machine Execution and Runtime Stack

This article explains how the Python interpreter initializes its runtime environment, compiles source code into PyCodeObject bytecode, creates stack frames, and executes the bytecode using functions like PyEval_EvalFrame and _PyEval_EvalFrameDefault while detailing the role of the runtime stack and its associated C macros.

BytecodeC++Programming Fundamentals
0 likes · 21 min read
Understanding Python's Virtual Machine Execution and Runtime Stack
Linux Kernel Journey
Linux Kernel Journey
Oct 17, 2024 · Fundamentals

Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management

The article explains how Linux manages memory page watermarks, when the allocator falls back to kswapd, and the exact conditions that trigger direct compaction via __alloc_pages_direct_compact, then walks through the core compaction functions—try_to_compact_pages, compact_zone_order, compact_zone, and the page‑migration helpers—illustrated with flow diagrams and real kernel code.

C++LinuxMemory Management
0 likes · 37 min read
Inside Linux Memory Compaction: A Source‑Code Walkthrough of Memory Management
BirdNest Tech Talk
BirdNest Tech Talk
Oct 4, 2024 · Fundamentals

Weak Pointers Across Go, Rust, Java, and C#: Design, Implementation, and Use Cases

This article examines the concept of weak pointers and weak references in Go, Rust, Java, and C#, comparing their implementations, explaining their memory‑management semantics, presenting concrete code examples, and discussing the upcoming Go weak‑pointer proposal and practical scenarios such as caching and event handling.

C++Garbage CollectionGo
0 likes · 14 min read
Weak Pointers Across Go, Rust, Java, and C#: Design, Implementation, and Use Cases
Liangxu Linux
Liangxu Linux
Sep 21, 2024 · Fundamentals

Essential C Utility Code Snippets Every Embedded Developer Should Know

This article presents a curated collection of high‑impact C utility code examples—including a circular buffer, assertion macro, bit‑reversal function, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset—explaining their purpose and showing ready‑to‑use implementations for embedded systems.

C++Code SamplesData Structures
0 likes · 7 min read
Essential C Utility Code Snippets Every Embedded Developer Should Know
BirdNest Tech Talk
BirdNest Tech Talk
Sep 17, 2024 · Fundamentals

Why Rust’s Mutex API Looks Different from C’s and What It Means for Safety

The article analyses the design of Rust’s Mutex API, compares it with the classic C/POSIX mutex API, explores alternative Rust designs that mimic C, and demonstrates through concrete code examples why Rust’s guard‑based approach preserves safety while a C‑style API would re‑introduce data‑race hazards.

C++Programming LanguagesRust
0 likes · 27 min read
Why Rust’s Mutex API Looks Different from C’s and What It Means for Safety
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

Unlocking Automatic Module Initialization with Linux Kernel Initcall on STM32

This guide explains how to replicate Linux kernel's initcall mechanism in STM32 projects by using function‑pointer sections, modifying the linker script, and defining ordered initialization macros to replace sequential main‑function calls, enabling modular and loosely‑coupled code execution.

C++InitcallLinux kernel
0 likes · 8 min read
Unlocking Automatic Module Initialization with Linux Kernel Initcall on STM32
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 13, 2024 · Frontend Development

Using ArkUI C/C++ API for Native UI Layout in HarmonyOS

This article explains how to create and bind native UI components in HarmonyOS by leveraging ArkUI's C/C++ API, covering project setup, library linking, module interface acquisition, node creation, attribute setting, and integration with ArkTS through NodeContent and ContentSlot.

ArkUIC APIC++
0 likes · 10 min read
Using ArkUI C/C++ API for Native UI Layout in HarmonyOS
Linux Kernel Journey
Linux Kernel Journey
Sep 7, 2024 · Operations

Building and Running an eBPF Application – Part 1

This article walks through creating a first eBPF program using C and Go on Ubuntu 22.04, covering required dependencies, kernel‑space vs user‑space concepts, event selection, BPF map definition, and a tracepoint function that measures per‑process CPU time.

BPF mapsC++Go
0 likes · 11 min read
Building and Running an eBPF Application – Part 1
Tencent Cloud Developer
Tencent Cloud Developer
Aug 29, 2024 · Game Development

How AI Code Assistant Supercharges 3A Game Development in Unreal Engine

The article examines the launch of the Chinese 3A title "Black Myth: Wukong", analyzes programmers' challenges in high‑cost game development, presents survey data on AI coding tools, introduces Tencent Cloud AI Code Assistant, and provides a step‑by‑step tutorial for integrating the assistant into Unreal Engine projects using Rider.

AI code assistantC++Game Development
0 likes · 19 min read
How AI Code Assistant Supercharges 3A Game Development in Unreal Engine
Liangxu Linux
Liangxu Linux
Aug 28, 2024 · Fundamentals

Mastering GCC: From C Source to ELF Executable in Four Steps

This guide walks through the complete GCC compilation pipeline—preprocessing, compilation, assembly, and linking—demonstrates how to build a simple C program, inspect the resulting ELF file, and use Binutils tools to analyze sections and disassemble the binary.

BinutilsC++Compilation
0 likes · 13 min read
Mastering GCC: From C Source to ELF Executable in Four Steps
Top Architecture Tech Stack
Top Architecture Tech Stack
Aug 28, 2024 · Game Development

Technical Stack of the Chinese AAA Game “Black Myth: Wukong”

The article examines the technology behind the Chinese AAA title “Black Myth: Wukong”, revealing its use of Unreal Engine 5 with C++ as the core language, additional JavaScript integration via Unreal.js, and discusses community speculation about tools like PuerTS while also containing promotional material for development tools.

C++Game DevelopmentJavaScript
0 likes · 4 min read
Technical Stack of the Chinese AAA Game “Black Myth: Wukong”
Architect
Architect
Aug 25, 2024 · Game Development

Technical Analysis of “Black Myth: Wukong” – Engine, Languages, and Cultural Integration

The article examines how the Chinese AAA title “Black Myth: Wukong” leverages Unreal Engine 5, C++, Blueprint visual scripting, and even a custom C#‑based USharp plugin to deliver cutting‑edge graphics, physics, AI, and culturally rich gameplay, illustrating the convergence of advanced technology and Chinese heritage in modern game development.

BlueprintsC++C++
0 likes · 8 min read
Technical Analysis of “Black Myth: Wukong” – Engine, Languages, and Cultural Integration
Java Tech Enthusiast
Java Tech Enthusiast
Aug 23, 2024 · Industry Insights

What Language Powers Black Myth: Wukong and What It Means for China’s Software Industry

The article explains that Black Myth: Wukong is built mainly with C++ on Unreal Engine, outlines the engine's royalty model, and uses this case to highlight why Chinese developers favor Java and Python over C++, the challenges of low‑level software development in China, and the need for more domestic C/C++ talent.

C++Chinese Software IndustryGame Development
0 likes · 6 min read
What Language Powers Black Myth: Wukong and What It Means for China’s Software Industry
Tencent Cloud Developer
Tencent Cloud Developer
Aug 21, 2024 · Game Development

Hot Update Technology in Game Development: Architecture Design and Validation of Asset Bundle + DLL Replacement C# Hot Update Scheme

This article reviews the evolution of hot‑update methods in games, critiques Lua, PuerTS, and HybridCLR, and proposes a minimalist Unity solution that combines AssetBundle resource updates with runtime DLL loading via reflection, demonstrating a simple, low‑dependency architecture validated on Android VR projects.

AndroidVRAssetBundleC++
0 likes · 26 min read
Hot Update Technology in Game Development: Architecture Design and Validation of Asset Bundle + DLL Replacement C# Hot Update Scheme
Liangxu Linux
Liangxu Linux
Aug 12, 2024 · Fundamentals

Understanding C Memory Leaks: Causes, Detection, and Prevention

This article explains why memory leaks occur only with heap allocations in C, describes how malloc and related functions allocate memory, outlines two common ways to obtain heap memory, identifies the three essential elements of a leak, debunks common freeing misconceptions, and provides practical inspection steps to prevent leaks.

C++DebuggingProgramming Fundamentals
0 likes · 6 min read
Understanding C Memory Leaks: Causes, Detection, and Prevention
Liangxu Linux
Liangxu Linux
Jul 30, 2024 · Fundamentals

Mastering C Comment Syntax: Hidden Pitfalls and Correct Usage

This article explains how C's /* */ and // comment delimiters work, shows edge cases where they appear inside strings, macros, or line continuations, and provides concrete code examples illustrating correct and incorrect usages along with the compiler errors they may trigger.

C++Syntaxcode
0 likes · 4 min read
Mastering C Comment Syntax: Hidden Pitfalls and Correct Usage
Liangxu Linux
Liangxu Linux
Jul 27, 2024 · Fundamentals

Master Linked Lists in C: From Arrays to Circular Lists

This article explains the differences between array‑based sequential storage and pointer‑based linked storage, introduces singly, doubly and circular linked lists, and provides complete C implementations for creation, insertion, deletion, and traversal with clear diagrams and step‑by‑step code examples.

AlgorithmArrayC++
0 likes · 25 min read
Master Linked Lists in C: From Arrays to Circular Lists
Liangxu Linux
Liangxu Linux
Jul 25, 2024 · Fundamentals

Master Essential C Language Features: Bitwise Ops, Macros, Conditional Compilation, and More

This guide explains core C programming concepts—including bitwise operators, macro definitions, conditional compilation directives, extern declarations, typedef aliases, struct usage, and the static keyword—providing clear examples and code snippets to help developers write more efficient and maintainable code.

C++Conditional CompilationMacros
0 likes · 10 min read
Master Essential C Language Features: Bitwise Ops, Macros, Conditional Compilation, and More
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jul 24, 2024 · Backend Development

Mastering Domain-Driven Design: Core Concepts, Layers, and Practical C# Examples

Domain-Driven Design (DDD) is a software development methodology that bridges business and technology by defining clear domain models, improving communication, code quality, and handling complexity through layered architecture, with concrete C# examples of entities, value objects, aggregates, and domain services.

C++DDDDesign Patterns
0 likes · 7 min read
Mastering Domain-Driven Design: Core Concepts, Layers, and Practical C# Examples
Java Tech Enthusiast
Java Tech Enthusiast
Jul 23, 2024 · Fundamentals

Understanding __disable_irq() and __enable_irq() Intrinsic Functions in ARM Cortex-M

The article explains that __disable_irq() and __enable_irq() are compiler‑provided intrinsics that expand to CPSID i and CPSIE i instructions, return the prior PRIMASK state, globally mask CPU interrupt handling without stopping hardware events, and contrasts them with CMSIS __NVIC_DisableIRQ/EnableIRQ which control individual interrupt lines.

ARMC++MCU
0 likes · 7 min read
Understanding __disable_irq() and __enable_irq() Intrinsic Functions in ARM Cortex-M
21CTO
21CTO
Jul 21, 2024 · Artificial Intelligence

How JetBrains AI Boosts Code Completion and Refactoring in Rider

This article reviews JetBrains AI, an LLM‑powered assistant for JetBrains IDEs, exploring its code‑completion, code‑explanation, unit‑test generation, and refactoring capabilities through real C# examples and discussing its impact on developer workflows.

C++IDEJetBrains AI
0 likes · 8 min read
How JetBrains AI Boosts Code Completion and Refactoring in Rider
Meituan Technology Team
Meituan Technology Team
Jul 18, 2024 · Fundamentals

Multithreading Programming: Concepts, Synchronization, and Best Practices

Multithreaded programming splits tasks across logical and hardware threads to exploit multicore CPUs, requiring careful use of synchronization primitives such as mutexes, read‑write locks, condition variables, and lock‑free atomics, while avoiding pitfalls like race conditions, deadlocks, and false sharing for correct, high‑performance software.

C++Lockatomic
0 likes · 65 min read
Multithreading Programming: Concepts, Synchronization, and Best Practices
DataFunTalk
DataFunTalk
Jul 11, 2024 · Backend Development

Performance Optimizations and Benchmark Analysis of RaftKeeper v2.1.0

The article presents a detailed engineering analysis of RaftKeeper v2.1.0, describing benchmark methodology, performance gains across create, mixed, and list workloads, and four major optimizations—including response serialization parallelism, list‑request handling, system‑call reduction, thread‑pool redesign, and asynchronous snapshot processing—demonstrating substantial throughput and latency improvements in large‑scale ClickHouse deployments.

C++ClickHouseRaftKeeper
0 likes · 12 min read
Performance Optimizations and Benchmark Analysis of RaftKeeper v2.1.0
Past Memory Big Data
Past Memory Big Data
Jun 27, 2024 · Big Data

Inside Presto 2.0: The Native C++ Query Engine Explained

This article provides a detailed technical overview of Presto 2.0, the native C++ query engine built on the Velox library, covering its motivation, vectorized architecture, memory management, performance benchmarks from Meta and IBM, and deployment practices for large‑scale data warehouses.

Big DataC++SQL
0 likes · 15 min read
Inside Presto 2.0: The Native C++ Query Engine Explained
Meituan Technology Team
Meituan Technology Team
Jun 20, 2024 · Big Data

Vectorized Execution in Apache Spark: Meituan’s Practice with Gluten and Velox

Meituan enhances Apache Spark by integrating the Gluten‑Velox vectorized execution engine, converting row‑wise operations to columnar SIMD processing, which yields over 40 % memory savings and up to 13 % faster runtimes across thousands of ETL jobs, while addressing stability, ORC support, shuffle redesign, and off‑heap memory optimization.

Apache SparkBig DataC++
0 likes · 30 min read
Vectorized Execution in Apache Spark: Meituan’s Practice with Gluten and Velox
Liangxu Linux
Liangxu Linux
Jun 19, 2024 · Fundamentals

Discover TBOX: A Powerful Cross‑Platform C Development Library

TBOX is a C‑based cross‑platform development library that unifies interfaces for multiple operating systems, offers a rich set of modules such as streams, coroutines, databases, networking, and utilities, and provides detailed build instructions and example code for rapid integration.

C++LibrarySystems
0 likes · 13 min read
Discover TBOX: A Powerful Cross‑Platform C Development Library
Liangxu Linux
Liangxu Linux
Jun 16, 2024 · Fundamentals

Build a Cooperative Multitasking System in C Using setjmp/longjmp

This article explains how to use the C standard library functions setjmp and longjmp to create a lightweight cooperative multitasking scheduler without timers, covering their mechanics, stack handling, task creation, time‑slice yielding, and provides complete example code and a Git repository link.

C++cooperative multitaskinglongjmp
0 likes · 7 min read
Build a Cooperative Multitasking System in C Using setjmp/longjmp
Open Source Linux
Open Source Linux
Jun 14, 2024 · Fundamentals

Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques

This article explains how to implement finite state machines in C using three approaches—switch‑case, table‑driven, and function‑pointer—detailing their structures, code examples, trade‑offs, and extensions such as compressed tables and hierarchical state machines for robust embedded systems.

C++Extended State MachineFinite State Machine
0 likes · 17 min read
Mastering C State Machines: Switch‑Case, Table‑Driven, and Function‑Pointer Techniques
Ops Development & AI Practice
Ops Development & AI Practice
Jun 2, 2024 · Fundamentals

Master MSVC: Install, Configure, and Compile C/C++ on Windows

This guide introduces Microsoft Visual C++ (MSVC), covering its key features, installation via Visual Studio or Build Tools, command‑line and VS Code integration, step‑by‑step compilation commands, and advanced options like parallel builds and PGO, helping developers efficiently build C/C++ projects on Windows.

Build ToolsC++Compilation
0 likes · 7 min read
Master MSVC: Install, Configure, and Compile C/C++ on Windows
Alibaba Cloud Observability
Alibaba Cloud Observability
May 29, 2024 · Cloud Native

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

This article explains the evolution of iLogtail from a single‑file collector to a multi‑language, plugin‑based observability pipeline, outlines the motivations for refactoring, describes the new unified data model, plugin abstractions, pipeline design, configuration management, hot‑reload mechanisms, and the separation of enterprise and open‑source code, providing a comprehensive view of the architectural upgrade.

C++Observabilitycloud-native
0 likes · 43 min read
Why iLogtail Needed a Complete Architecture Overhaul and How It Was Done
37 Interactive Technology Team
37 Interactive Technology Team
May 20, 2024 · Game Development

Introduction and Implementation of MaxSDK for Unity Cross‑Platform Game Development

The article presents MaxSDK, a unified C# SDK for Unity that abstracts platform‑specific native SDKs across Android, iOS, Windows, macOS and future platforms, offering a singleton interface, abstract base classes, data models, and callback listeners to dramatically cut integration effort, maintenance cost, and enable easy extension to other engines.

AndroidC++Game Development
0 likes · 21 min read
Introduction and Implementation of MaxSDK for Unity Cross‑Platform Game Development
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.

C++compiler-toolslex
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.

C++STM32software timer
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.

ASLRC++Object 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.

AIC++CUDA
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.

C++MySQLPGO
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.

AlgorithmC++Java
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.

C++Data SegmentSTM32
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.

C++Cosmopolitan libcLLM
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.

C++POSIXUnix
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.

C++Cache FriendlyLock-Free
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.

C++LinuxPOSIX
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.

C++STM32embedded
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.

C++Dynamic memory allocationFlexible array member
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.

C++MsgpackObservability
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.

C++basicspointers
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.

C++Lock-FreeMemory Model
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.

C++Cache FriendlyLock-Free
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.

C++Data CollectionObservability
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.

C++Memory ManagementOperating Systems
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.

C++Cache FriendlyLock-Free
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.

C++Rust
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.

C++Code Size ReductionPerformance
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.

C++Data Structuresbit manipulation
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.

C++CIGitHub Actions
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.

C++JavaPython
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.

C++IO MultiplexingJNI
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.

C++CI/CDSystem 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.

C++LoRAPython
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.

C++Programming LanguagesStandard 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.

C++PerformanceSoftware 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++DebuggingVolatile
0 likes · 7 min read
C volatile Techniques: Multithreading, Embedded, Debugging, Pointer Casting