Tagged articles
819 articles
Page 8 of 9
Meitu Technology
Meitu Technology
Aug 9, 2019 · Databases

Redis 6 Multithreaded I/O Implementation and Performance Evaluation

The article details Redis 6’s new multithreaded I/O feature—motivated by network‑I/O bottlenecks, implemented with lock‑free pending‑read queues that offload reads, writes, and protocol parsing to worker threads while keeping command execution single‑threaded—and demonstrates through a simple benchmark that using four I/O threads roughly doubles GET/SET throughput compared with Redis 5.

BenchmarkCMultithreaded I/O
0 likes · 11 min read
Redis 6 Multithreaded I/O Implementation and Performance Evaluation
360 Tech Engineering
360 Tech Engineering
Jul 25, 2019 · Backend Development

Building a Simple C++ TCP Server from Scratch with cppbox

This article explains why the author created a custom C++ TCP server framework, outlines the required prerequisites and coding standards, and walks through a minimal echo server implementation together with the key cppbox library interfaces and usage examples.

BackendCNetwork programming
0 likes · 8 min read
Building a Simple C++ TCP Server from Scratch with cppbox
MaGe Linux Operations
MaGe Linux Operations
Jun 7, 2019 · Fundamentals

Mastering Linux Shared Memory: IPC Basics, APIs, and Sample Code

This article explains the principles of Linux shared memory interprocess communication, details the shmid_ds structure and system limits, walks through creation, control, attachment, detachment APIs, and provides a complete C example demonstrating parent‑child data sharing via shmget, shmat, shmdt, and shmctl.

CIPCInterprocess Communication
0 likes · 6 min read
Mastering Linux Shared Memory: IPC Basics, APIs, and Sample Code
58 Tech
58 Tech
Jun 6, 2019 · Mobile Development

Design and Architecture of the 58 IM SDK for Multi‑Platform Mobile Applications

The article details the background, design goals, layered architecture, message flow, UI customization mechanisms, and key class structures of the 58 Group's cross‑platform IM SDK, illustrating how it supports iOS, Android, Web, and H5 with extensible C++ and UIKit components.

AndroidCUI customization
0 likes · 12 min read
Design and Architecture of the 58 IM SDK for Multi‑Platform Mobile Applications
Wukong Talks Architecture
Wukong Talks Architecture
Apr 30, 2019 · Fundamentals

C# Multithreading Journey (4): Introduction to the Asynchronous Programming Model (APM)

This article introduces the Asynchronous Programming Model (APM) in C#, demonstrating how to use delegates and BeginInvoke/EndInvoke to run time‑consuming operations concurrently, includes sample code, explains delegate generation, and discusses practical considerations such as IAsyncResult handling and callback execution.

APMAsynchronousC
0 likes · 8 min read
C# Multithreading Journey (4): Introduction to the Asynchronous Programming Model (APM)
Wukong Talks Architecture
Wukong Talks Architecture
Apr 28, 2019 · Fundamentals

C# Multithreading Journey (3) – Using the Thread Pool

This article explains how C# thread pools reduce thread‑creation overhead, describes several ways to enqueue work (Task Parallel Library, ThreadPool.QueueUserWorkItem, asynchronous delegates, BackgroundWorker), provides practical code examples, and outlines important considerations such as thread naming, priority, and exception handling.

CTask Parallel LibraryThreadPool
0 likes · 9 min read
C# Multithreading Journey (3) – Using the Thread Pool
Wukong Talks Architecture
Wukong Talks Architecture
Apr 27, 2019 · Fundamentals

C# Multithreading Journey (2) – Creating and Starting Threads

This article explains how to create and start threads in C#, covering ThreadStart delegates, lambda expressions, passing parameters, naming threads, foreground/background distinctions, thread priority, and exception handling, with clear code examples and best‑practice recommendations.

CException HandlingLambda
0 likes · 13 min read
C# Multithreading Journey (2) – Creating and Starting Threads
Tencent Music Tech Team
Tencent Music Tech Team
Apr 19, 2019 · Mobile Development

Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture

The article explains BufferQueue’s internal design and shows how Android developers typically use its wrapper classes—Surface as the producer and SurfaceTexture as the consumer—detailing their constructors, dequeue/queue workflows, lock/unlock mechanisms, and a complete SurfaceView example that illustrates buffer production and consumption by SurfaceFlinger.

AndroidBufferQueueC
0 likes · 13 min read
Common Wrapper Classes for Android BufferQueue: Surface and SurfaceTexture
Java Captain
Java Captain
Mar 22, 2019 · Fundamentals

Understanding Recursion: Three Essential Elements and Practical Code Examples

This article introduces recursion by outlining its three essential elements—function purpose, base case, and recurrence relation—and demonstrates each step with clear Java/C examples such as factorial, Fibonacci, frog‑jump, and linked‑list reversal, while also covering common pitfalls and optimization techniques.

CData StructuresRecursion
0 likes · 15 min read
Understanding Recursion: Three Essential Elements and Practical Code Examples
21CTO
21CTO
Mar 14, 2019 · Blockchain

Essential Guide to Blockchain Programming: Top Languages, Platforms, and Use Cases

This article explores blockchain programming fundamentals, compares public and permissioned chains, reviews major development platforms, and evaluates the top five languages—C++, JavaScript, Python, Go, and Solidity—highlighting their strengths, weaknesses, and real‑world blockchain applications.

BlockchainCDApp
0 likes · 11 min read
Essential Guide to Blockchain Programming: Top Languages, Platforms, and Use Cases
ITPUB
ITPUB
Mar 5, 2019 · Backend Development

What Do Top Tech Companies Really Test in Linux Server Engineer Interviews?

The article shares a developer’s experience interviewing at over 30 Chinese tech firms, breaking down three main interview focuses—data structures and algorithms, operating‑system and core‑technology knowledge, and project experience—while also offering practical advice on networking questions, open‑source tools, and how to evaluate a company's interview process.

CData StructuresNetworking
0 likes · 16 min read
What Do Top Tech Companies Really Test in Linux Server Engineer Interviews?
21CTO
21CTO
Mar 4, 2019 · Fundamentals

Master Technical Interviews: Data Structures, OS, Networking & C++ Tips

The article shares the author’s interview experiences at over 30 companies and provides a comprehensive guide covering data‑structure and algorithm questions, core C++ concepts, operating‑system fundamentals, networking protocols, open‑source tools, project‑experience expectations, and practical advice for evaluating both technical and non‑technical aspects of potential employers.

CData StructuresNetworking
0 likes · 16 min read
Master Technical Interviews: Data Structures, OS, Networking & C++ Tips
Architecture Talk
Architecture Talk
Feb 23, 2019 · Backend Development

What Tech Companies Really Test in Server Developer Interviews – Insights from 30+ Companies

Drawing from interviews at over thirty tech firms, this article breaks down the three main interview tracks—data structures and algorithms, operating‑system fundamentals, and project experience—while also sharing practical advice on evaluating companies, handling non‑technical questions, and navigating the hiring process.

CSystem Designcareer advice
0 likes · 15 min read
What Tech Companies Really Test in Server Developer Interviews – Insights from 30+ Companies
360 Tech Engineering
360 Tech Engineering
Feb 20, 2019 · Databases

Pika 3.0 New Features Overview

Pika 3.0, the open‑source C++ Redis‑compatible storage built on RocksDB, introduces a new Blackwidow engine, enhanced binlog, and optimized server layer, delivering higher interface performance, reduced disk usage, extended key length, full ZSET compatibility, and improved overall efficiency.

CPikaRocksDB
0 likes · 3 min read
Pika 3.0 New Features Overview
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 15, 2019 · Backend Development

Architecture and Design of ZhaiZhai IM System for a Second‑hand E‑commerce Platform

The article details the design and overall architecture of ZhaiZhai's instant messaging (IM) system, covering product positioning, a four‑layer architecture (user, entry, logic, storage), and analyses of scalability, high availability, reliability, extensibility, and performance, highlighting the use of C++, RPC, MySQL, TiDB, and custom middleware.

CInstant Messagingdistributed databases
0 likes · 13 min read
Architecture and Design of ZhaiZhai IM System for a Second‑hand E‑commerce Platform
Programmer DD
Programmer DD
Dec 17, 2018 · Fundamentals

How to Compute √2 Efficiently: Binary Search, Newton’s Method, and C Tricks

Learn multiple techniques to calculate the square root of 2—including binary search, Newton’s iteration, and a clever C library implementation—through clear explanations, step‑by‑step illustrations, and full JavaScript and C code examples that reveal the underlying mathematics and performance considerations.

Binary SearchCNewton's method
0 likes · 4 min read
How to Compute √2 Efficiently: Binary Search, Newton’s Method, and C Tricks
Efficient Ops
Efficient Ops
Oct 13, 2018 · Big Data

Boost Your Kafka Integration with KafkaBridge: Multi-Language SDK Overview

KafkaBridge is a lightweight, multi-language SDK that simplifies Kafka read/write operations, offering unified interfaces, long‑connection reuse for PHP‑FPM, and reliable message delivery, with detailed compilation steps, usage examples, and performance benchmarks across C++, Python, PHP, and Go.

CGolangKafka
0 likes · 7 min read
Boost Your Kafka Integration with KafkaBridge: Multi-Language SDK Overview
Meituan Technology Team
Meituan Technology Team
Jul 26, 2018 · Databases

Understanding and Optimizing Redis Rehash Mechanism and Scan Behavior

The article details how Redis’s incremental rehashing can double memory usage and trigger massive key eviction and scan inconsistencies in large‑scale clusters, explains the underlying dictionary structures, demonstrates the cursor bug when tables shrink, and presents a memory‑guard and scan‑cursor patch that resolves both problems.

CMemory ManagementRehash
0 likes · 26 min read
Understanding and Optimizing Redis Rehash Mechanism and Scan Behavior
Liangxu Linux
Liangxu Linux
Jun 30, 2018 · Fundamentals

Top Open‑Source C Projects Every Developer Should Explore

This article presents a curated list of noteworthy open‑source C projects—including event libraries, caching systems, databases, web servers, testing frameworks, and classic Unix kernels—each with a brief description, key features, and download links for developers seeking practical learning resources.

CSystemsdatabases
0 likes · 13 min read
Top Open‑Source C Projects Every Developer Should Explore
Liangxu Linux
Liangxu Linux
Jun 13, 2018 · Fundamentals

Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation

This tutorial presents a complete enterprise‑level Makefile example, detailing version numbering, dynamic library integration, macro definitions, include paths, compilation flags, output directory handling, and clean targets, while also showing the associated source code layout and how to retrieve the full project from the public account.

Build AutomationCDynamic Library
0 likes · 6 min read
Master Enterprise-Scale Makefiles: Versioning, Libraries, and Build Automation
Liangxu Linux
Liangxu Linux
Jun 10, 2018 · Backend Development

How to Organize Shared C Code Across Multiple Applications with a Simple Makefile

This article explains a practical approach for managing common C source files shared by several applications by placing the shared code in a dedicated folder and using a Makefile that automatically discovers, compiles, and links both the common and application‑specific files, reducing redundancy and simplifying maintenance.

Backend DevelopmentBuild AutomationC
0 likes · 6 min read
How to Organize Shared C Code Across Multiple Applications with a Simple Makefile
Liangxu Linux
Liangxu Linux
Jun 5, 2018 · Backend Development

How to Implement File-Based String Replacement in C: A Step‑by‑Step Guide

This article walks through the design and implementation of a C program that reads a text file, replaces all occurrences of a target substring with a new string using low‑level pointer operations, and writes the modified content back to the file, complete with memory‑allocation calculations and code examples.

Cfile I/Opointer
0 likes · 6 min read
How to Implement File-Based String Replacement in C: A Step‑by‑Step Guide
Tencent Cloud Developer
Tencent Cloud Developer
May 24, 2018 · Game Development

How Unity3D Executes C#: Compilation, Mono, and the .NET Ecosystem

Unity3D runs C# scripts by compiling them to Common Intermediate Language, which the embedded Mono virtual machine executes—mirroring the .NET CLR—allowing cross‑platform execution, while also supporting other languages compiled to IL, and illustrating the compilation pipeline from source to native code.

CCompilationIL
0 likes · 7 min read
How Unity3D Executes C#: Compilation, Mono, and the .NET Ecosystem
21CTO
21CTO
May 10, 2018 · Backend Development

How a Plug‑In Architecture Transforms Cross‑Platform Long‑Connection Components

This article explains how a unified, cross‑platform long‑connection component built on libuv, mbedTLS and WebSocket was refactored into a plug‑in architecture that decouples layers, uses double‑linked structures and function pointers, and dramatically improves flexibility and maintainability.

CNetworkingWebSocket
0 likes · 24 min read
How a Plug‑In Architecture Transforms Cross‑Platform Long‑Connection Components
Xianyu Technology
Xianyu Technology
May 5, 2018 · Mobile Development

Porting Video Fingerprinting to Mobile: From Frame Extraction to Bloom‑Filter Retrieval

This article details how to migrate a video‑fingerprinting pipeline—covering video frame extraction, Hessian‑Affine + SIFT feature computation, JPEG and BLAS dependencies, multi‑threading, NEON acceleration, package‑size reductions, and a Bloom‑filter based retrieval system—onto iOS and Android devices while addressing practical pitfalls and performance trade‑offs.

CHessian-AffineMobile Optimization
0 likes · 16 min read
Porting Video Fingerprinting to Mobile: From Frame Extraction to Bloom‑Filter Retrieval
DevOps
DevOps
Apr 19, 2018 · Fundamentals

The Evolution of .NET: From Framework to Core and Beyond

This article provides a comprehensive overview of the .NET platform’s evolution, covering the original .NET Framework, its comparison with Java, the rise of Mono for cross‑platform support, the introduction of .NET Standard, the modern .NET Core and ASP.NET Core, and guidance on tooling and learning resources.

CCoreFramework
0 likes · 21 min read
The Evolution of .NET: From Framework to Core and Beyond
JD Tech
JD Tech
Mar 19, 2018 · Backend Development

Design and Implementation of KDNS: A High‑Performance DPDK‑Based DNS Server

This article presents the design, DPDK‑based implementation, performance optimizations, and test results of KDNS—a C‑language DNS server that replaces ContainerDNS's Go server, achieving near line‑rate processing, high availability, and significant latency improvements over traditional bind9 solutions.

CContainerDNSDNS
0 likes · 12 min read
Design and Implementation of KDNS: A High‑Performance DPDK‑Based DNS Server
UCloud Tech
UCloud Tech
Mar 14, 2018 · Backend Development

How to Call C/C++ Libraries from Java Using JNA: A Practical Guide

This article explains how to access native C/C++ functions and complex structures from Java using JNI, JNA, and SWIG, compares their trade‑offs, provides type‑mapping tables, detailed code examples for struct definitions, passing, and callbacks, and offers practical tips for reliable cross‑language integration.

CJNAJNI
0 likes · 9 min read
How to Call C/C++ Libraries from Java Using JNA: A Practical Guide
Beike Product & Technology
Beike Product & Technology
Feb 7, 2018 · Backend Development

High‑Performance Challenge: Optimizing a C‑Based User Information Service for Tens of Millions of Records

This article recounts a 2017 internal high‑performance competition where a C server handling a 40 million‑row user‑info dataset was progressively optimized through data compression, custom hash tables, memory layout redesign, and a thread‑pool model, ultimately achieving a four‑fold throughput increase.

CMemory Optimizationdata compression
0 likes · 13 min read
High‑Performance Challenge: Optimizing a C‑Based User Information Service for Tens of Millions of Records
Tencent Music Tech Team
Tencent Music Tech Team
Dec 22, 2017 · Mobile Development

Organizing Native Layer Code and Implementing Dynamic Loading/Unloading of .so Libraries in Android

The article outlines a systematic method for structuring native‑layer code and using dlopen, dlsym, and dlclose to dynamically load and unload .so libraries on Android, enabling selective loading, reduced memory usage, hot‑fix updates, and solutions to STL version, permission, and C++ name‑mangling challenges.

AndroidCDynamic Loading
0 likes · 14 min read
Organizing Native Layer Code and Implementing Dynamic Loading/Unloading of .so Libraries in Android
21CTO
21CTO
Nov 14, 2017 · Fundamentals

Why Python Overtook C# in the TIOBE November Rankings

The November TIOBE index shows Python climbing to fourth place, surpassing C#, while other script languages slip down the top‑20, prompting analysis of Python's rapid growth, Java's decline, and the performance challenges facing scripting languages in large‑scale software.

CTIOBEpopularity
0 likes · 4 min read
Why Python Overtook C# in the TIOBE November Rankings
Qunar Tech Salon
Qunar Tech Salon
Oct 24, 2017 · Databases

Design and Implementation of Pegasus: Xiaomi’s Distributed Key‑Value Store

This article explains why Xiaomi built Pegasus to replace HBase, describes its architecture—including MetaServer, ReplicaServer, partitioning, multi‑replica design and the PacificA consensus algorithm—covers implementation challenges such as load balancing, consistency, latency, testing, and outlines current status and future plans.

CConsistencyPEGASUS
0 likes · 23 min read
Design and Implementation of Pegasus: Xiaomi’s Distributed Key‑Value Store
21CTO
21CTO
Oct 8, 2017 · Fundamentals

Which Programming Languages Are Rising in 2017? Insights from the TIOBE Index

According to the October 2017 TIOBE Index, Java, C, and C++ remain the top three languages, while C# and Python hold fourth and fifth places; Swift has slipped to 16th, and the rise of hybrid mobile frameworks is boosting C# and JavaScript at the expense of Java and Swift.

CJavaJavaScript
0 likes · 3 min read
Which Programming Languages Are Rising in 2017? Insights from the TIOBE Index
Qunar Tech Salon
Qunar Tech Salon
Sep 22, 2017 · Backend Development

Interview: The Story Behind Baidu’s Open‑Source RPC Framework brpc

This article interviews Baidu’s chief architect Ge Jun about the origins, design principles, performance advantages, and open‑source release of the high‑performance C++/Java RPC framework brpc, highlighting its extensive internal use, architectural features, and future roadmap.

BackendCRPC
0 likes · 14 min read
Interview: The Story Behind Baidu’s Open‑Source RPC Framework brpc
Architecture Digest
Architecture Digest
Jul 8, 2017 · Fundamentals

A Comprehensive Learning Roadmap for Software Development

This article presents a detailed, game‑like learning roadmap for programmers, recommending foundational scripting languages, Unix/Linux mastery, web development, databases, C/C++ and Java, system programming, design patterns, and advanced topics such as distributed systems and big‑data technologies to guide career growth.

CUnixWeb Development
0 likes · 19 min read
A Comprehensive Learning Roadmap for Software Development
ITPUB
ITPUB
Jul 3, 2017 · Fundamentals

Mastering Finite State Machines in C: From Simple If/Else to Function Pointers

This article explains what a finite state machine (FSM) is, where it is commonly used, and walks through three C implementations—plain if/else, switch‑case, and a function‑pointer table—highlighting their advantages, drawbacks, and providing complete code examples.

CFinite State MachineFunction Pointer
0 likes · 8 min read
Mastering Finite State Machines in C: From Simple If/Else to Function Pointers
ITPUB
ITPUB
Jun 11, 2017 · Fundamentals

The Most Stupid C Bug: How a Backslash Turned tmpfile() Into a Comment

This article recounts a baffling C bug where Microsoft's tmpfile() on Windows creates files in C:\, causing a stray backslash to comment out code, and explains how replacing a ternary operator with an if‑else fixed the issue while illustrating common cross‑platform pitfalls.

CDebuggingbug
0 likes · 5 min read
The Most Stupid C Bug: How a Backslash Turned tmpfile() Into a Comment
ITPUB
ITPUB
Mar 23, 2017 · Fundamentals

Master Linux Pipes and FIFOs: Build a Simple C Chat Application

This article explains the concepts of anonymous and named pipes in Linux, compares their characteristics, shows how to create them with mknod and mkfifo, and provides a complete C example that implements a two‑process chat program using threads and pipe I/O.

CFIFOIPC
0 likes · 8 min read
Master Linux Pipes and FIFOs: Build a Simple C Chat Application
ITPUB
ITPUB
Mar 21, 2017 · Backend Development

Understanding Linux Kernel Clock Management: A Step‑by‑Step Walkthrough

This article walks through the Linux kernel's clock management code, explaining how the clk_get_sys function matches devices, handles mutexes, and enables clocks on Samsung platforms, while illustrating each step with annotated code screenshots.

Backend DevelopmentCClock Management
0 likes · 6 min read
Understanding Linux Kernel Clock Management: A Step‑by‑Step Walkthrough
Continuous Delivery 2.0
Continuous Delivery 2.0
Mar 15, 2017 · R&D Management

Improving Continuous Integration: Reducing Build Times, Enabling Automated Testing, and Managing Estimations

The article discusses practical solutions for long C++ build times, introduces a company‑wide compile cluster with a localbuild.sh script, outlines how developers can run automated tests, defines testing strategies, sets criteria for feature readiness, and presents approaches to performance testing and estimation adjustments within a CI‑driven development workflow.

Automated TestingBuild OptimizationC
0 likes · 9 min read
Improving Continuous Integration: Reducing Build Times, Enabling Automated Testing, and Managing Estimations
Tencent Music Tech Team
Tencent Music Tech Team
Feb 17, 2017 · Game Development

Build a Simple Gaze Interaction for Google Cardboard VR in Unity

This step‑by‑step guide shows how to set up Unity with Google’s Cardboard SDK, import the required assets, add gaze‑based interaction components, write a C# script to change object colors on focus, link events, and finally package the project for Android devices.

Android BuildCGame Development
0 likes · 12 min read
Build a Simple Gaze Interaction for Google Cardboard VR in Unity
21CTO
21CTO
Dec 5, 2016 · Backend Development

How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level

This article explains how to create a PHP extension function named array_concat that merges two arrays by concatenating string values for matching keys, detailing the required C code, Zend hash operations, parameter parsing, and example usage, providing a practical guide for PHP developers.

ArrayCExtension
0 likes · 6 min read
How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level
dbaplus Community
dbaplus Community
Nov 22, 2016 · Databases

How to Add a ‘STOP ALL SLAVES’ Command to MySQL 5.6 Source Code

This guide walks through extending MySQL 5.6.32 by adding a new SQLCOM_STOP_SLAVES command that stops all replication slaves, detailing modifications to lex.h, sql_cmd.h, sql_yacc.yy, sql_parse.cc, and mysqld.cc, along with compilation tips and troubleshooting steps.

CReplicationSQL Command
0 likes · 7 min read
How to Add a ‘STOP ALL SLAVES’ Command to MySQL 5.6 Source Code
ITPUB
ITPUB
Nov 7, 2016 · Databases

Inside MySQL’s MEM_ROOT: How Memory Allocation Really Works

This article provides an in‑depth technical walkthrough of MySQL’s MEM_ROOT memory allocator, covering the key macros, the MEM_ROOT and USED_MEM structures, initialization and allocation routines, pointer‑manipulation logic, and the heuristic algorithm that grows block sizes as usage increases.

CDatabase InternalsMEM_ROOT
0 likes · 8 min read
Inside MySQL’s MEM_ROOT: How Memory Allocation Really Works
ITPUB
ITPUB
Nov 6, 2016 · Fundamentals

How Linux Kernel Memory Pools Work: Structures, Creation, and Allocation

This article explains the concept of Linux kernel memory pools, details the mempool_t structure, shows how to create and destroy a mempool, and walks through the allocation and free functions with code examples, highlighting their role in preventing allocation failures under memory pressure.

CMempoolmemory pool
0 likes · 8 min read
How Linux Kernel Memory Pools Work: Structures, Creation, and Allocation
ITPUB
ITPUB
Nov 5, 2016 · Fundamentals

Understanding Linux Zombie Processes and How to Prevent Them

This article explains what zombie processes are in Linux, how they are created when a child exits without its parent calling wait, demonstrates their detection with ps, provides sample C code to reproduce and handle them, and shows techniques to avoid their accumulation.

Cprocess managementsignal handling
0 likes · 8 min read
Understanding Linux Zombie Processes and How to Prevent Them
ITPUB
ITPUB
Nov 4, 2016 · Databases

Understanding MySQL’s DYNAMIC_STRING: Structure, Initialization, and Manipulation

The article explains MySQL’s DYNAMIC_STRING structure, detailing its fields, how to initialize it with init_dynamic_string, and how functions like dynstr_append_mem, dynstr_trunc, dynstr_realloc, and dynstr_append_os_quoted manage dynamic resizing, truncation, and OS‑quote handling for safe string operations.

CDynamic StringMemory Management
0 likes · 8 min read
Understanding MySQL’s DYNAMIC_STRING: Structure, Initialization, and Manipulation
Architecture Digest
Architecture Digest
Oct 9, 2016 · Backend Development

Building a Minimal Game Server Framework from Scratch

This article explains how to design and implement a simple game server framework, covering the definition of server development, the two main game‑server architectures, core scene‑service requirements, a lightweight network library built on sockets, and sample C# code for connectors, server and client networking components.

CFrameworkNetwork programming
0 likes · 14 min read
Building a Minimal Game Server Framework from Scratch
Architecture Digest
Architecture Digest
Sep 18, 2016 · Fundamentals

Smart Audio Recorder Based on Volume Threshold – Implementation and Code

This article describes a C# program that continuously captures microphone audio, uses volume thresholds derived from Fourier analysis to automatically start and stop recording, and provides the full configuration and source code needed to build a smart recorder for capturing dream speech.

CProgramming tutorialSignal Processing
0 likes · 7 min read
Smart Audio Recorder Based on Volume Threshold – Implementation and Code
Tencent Music Tech Team
Tencent Music Tech Team
Aug 25, 2016 · Frontend Development

Introduction to WebAssembly, Emscripten, and Binaryen: Installation, Compilation, and Usage

This guide introduces WebAssembly and its ecosystem—explaining how Emscripten compiles C/C++ to asm.js or .wasm, how Binaryen converts asm.js to the final binary, and provides step‑by‑step Ubuntu installation, simple hello‑world compilation, build‑process wrappers, and real‑world examples such as FFmpeg, SQLite, and game engines.

BinaryenBrowserC
0 likes · 10 min read
Introduction to WebAssembly, Emscripten, and Binaryen: Installation, Compilation, and Usage
ITPUB
ITPUB
Jul 7, 2016 · Fundamentals

Mastering Linux printk: Levels, Macros, and Kernel Logging Mechanics

This article provides a comprehensive guide to Linux's printk system, covering its ring‑buffer design, log level definitions, early boot usage, helper macros, rate‑limiting techniques, kernel‑side implementation details, and ways to access logs from user space.

CDebuggingOperating Systems
0 likes · 14 min read
Mastering Linux printk: Levels, Macros, and Kernel Logging Mechanics
Baidu Intelligent Testing
Baidu Intelligent Testing
Jun 14, 2016 · Fundamentals

Analysis of Common C/C++ Memory Issues: Leaks and Performance Degradation

This article examines typical C/C++ memory problems, classifying them into memory leaks and performance issues caused by fragmentation, explains root causes such as lost pointers, improper releases, unbounded allocations, and provides diagnostic examples and mitigation strategies using memory pools like tcmalloc.

CDebuggingMemory Fragmentation
0 likes · 13 min read
Analysis of Common C/C++ Memory Issues: Leaks and Performance Degradation
Architecture Digest
Architecture Digest
Jun 6, 2016 · Backend Development

Refactoring a 3000‑Line C# Factory Class into a Concise 15‑Line Implementation

The article recounts how the author transformed a massive, repetitive three‑tier factory class in a C# data‑center management system into a clean, reflection‑based solution of just a few lines, while sharing practical refactoring lessons, pitfalls of code generators, and advice on unit‑testing and architecture design.

CCode Generationrefactoring
0 likes · 17 min read
Refactoring a 3000‑Line C# Factory Class into a Concise 15‑Line Implementation
Baidu Intelligent Testing
Baidu Intelligent Testing
Jun 1, 2016 · Backend Development

Analysis of Common CPU Performance Issues in C/C++ Programs and Profiling Tool Comparison

This article examines fourteen typical CPU‑related performance problems in C/C++ applications—such as excessive memset, inefficient string handling, improper container usage, lock contention, and heavy I/O—explains their causes, presents real‑world examples, and compares popular CPU profiling tools to guide developers toward effective optimization.

CCPU performanceMemory
0 likes · 12 min read
Analysis of Common CPU Performance Issues in C/C++ Programs and Profiling Tool Comparison
Baidu Intelligent Testing
Baidu Intelligent Testing
May 19, 2016 · Fundamentals

Common Causes of C/C++ Core Dumps and Case Analyses

This article categorizes typical reasons why C/C++ programs generate core dumps, such as unreasonable program design, misuse of system libraries, memory leaks, type errors, thread ID handling, infinite loops, and improper initialization or cleanup, and provides illustrative case analyses for each scenario.

CDebuggingcore dump
0 likes · 6 min read
Common Causes of C/C++ Core Dumps and Case Analyses
21CTO
21CTO
May 14, 2016 · Backend Development

How to Find and Understand PHP Internal Function Definitions (e.g., strpos)

This guide walks you through locating PHP internal function definitions in the source tree, using strpos as an example, and explains the surrounding C code structure, parameter parsing, error handling, and macro usage for deeper insight into PHP's backend implementation.

Backend DevelopmentCPHP
0 likes · 12 min read
How to Find and Understand PHP Internal Function Definitions (e.g., strpos)
ITPUB
ITPUB
Apr 25, 2016 · Fundamentals

Essential C Interview Questions for Embedded Systems: Preprocessor, Macros, and More

This article compiles a comprehensive set of embedded‑C interview questions covering preprocessors, macros, infinite loops, data declarations, static, const, volatile, bit manipulation, fixed‑address memory access, interrupts, code snippets, dynamic allocation, typedefs and obscure syntax, each with detailed explanations and example code.

CMacrosMemory
0 likes · 19 min read
Essential C Interview Questions for Embedded Systems: Preprocessor, Macros, and More
ITPUB
ITPUB
Apr 12, 2016 · Backend Development

Understanding MySQL’s MEM_ROOT: Structure, Macros, and Allocation Mechanics

This article explains MySQL's widely used MEM_ROOT memory allocator, detailing its macros, the MEM_ROOT and USED_MEM structures, initialization routine, allocation algorithm, and pointer handling, while illustrating how free and used blocks are managed via linked lists.

Backend DevelopmentCMEM_ROOT
0 likes · 8 min read
Understanding MySQL’s MEM_ROOT: Structure, Macros, and Allocation Mechanics
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 24, 2016 · Mobile Development

Using Clang Static Analyzer for iOS Projects: Setup, Common Issues, and Report Generation

Clang Static Analyzer, integrated in Xcode, provides static code analysis for C, C++ and Objective‑C, and this guide explains its core checkers, common warning types such as null‑pointer dereference and division‑by‑zero, and demonstrates how to run it via scan‑build on an iOS project to generate HTML reports.

CClang Static AnalyzerObjective‑C
0 likes · 3 min read
Using Clang Static Analyzer for iOS Projects: Setup, Common Issues, and Report Generation
Architecture Digest
Architecture Digest
Mar 24, 2016 · Backend Development

A Curated List of Open‑Source .NET Components and Frameworks

This article compiles a comprehensive, English‑language overview of numerous open‑source .NET libraries and frameworks—including caching, logging, NoSQL, scheduling, IoC containers, ORMs, serialization, cross‑platform runtimes, web, mobile, networking, graphics, desktop, testing, transaction, search, validation, charting, and messaging solutions—providing brief descriptions for each.

BackendCnet
0 likes · 17 min read
A Curated List of Open‑Source .NET Components and Frameworks
21CTO
21CTO
Mar 23, 2016 · Backend Development

Mastering High-Performance TCP Servers in .NET/C#: APM, TAP, SAEA & RIO Explained

This article explores four high‑performance TCP server models in .NET/C#—Asynchronous Programming Model (APM), Task‑based Asynchronous Pattern (TAP), SocketAsyncEventArgs (SAEA), and Registered I/O (RIO)—detailing their accept and read loops, implementation nuances, pooling strategies, and sample code, while highlighting performance considerations and real‑world usage.

CNetworkingSocket
0 likes · 14 min read
Mastering High-Performance TCP Servers in .NET/C#: APM, TAP, SAEA & RIO Explained
21CTO
21CTO
Mar 8, 2016 · Backend Development

How Stack Exchange Scales 40 Billion Requests with a Monolith‑Plus Architecture

David Fullerton explains how Stack Exchange uses a C#‑centric monolith‑plus design, Redis caching, ElasticSearch, and continuous rolling deployments across two data centers to reliably handle billions of monthly requests while maintaining performance and scalability.

CMS SQLMonolith Architecture
0 likes · 7 min read
How Stack Exchange Scales 40 Billion Requests with a Monolith‑Plus Architecture
21CTO
21CTO
Jan 4, 2016 · Fundamentals

Why Chinese Text Gets Garbled and How to Fix It: A Deep Dive into Encoding Standards

This article explains why Chinese characters often appear as garbled text on Windows and Linux, introduces the history and hierarchy of Chinese encoding standards such as GB2312, GBK, GB18030 and Unicode, compares ASCII, UTF‑8/16/32, shows practical command‑line experiments, and offers guidance for handling Chinese text in C and Python programs.

CGB2312Python
0 likes · 25 min read
Why Chinese Text Gets Garbled and How to Fix It: A Deep Dive into Encoding Standards