Tagged articles
c++
12 articles · Page 1 of 1
This guide explains how to set hardware watchpoints in GDB to monitor specific memory addresses, demonstrates the technique with a simple C++ program that modifies a variable via a thread, and shows how GDB reports the exact location and values of the change.
Threadc++gdb
0 likes · 6 min read

This article benchmarks Python 3.11's speed with a Monte Carlo Pi estimation script, compares it to earlier Python releases and a C++ implementation, shows Docker‑based testing methodology, presents performance results, and extrapolates when Python might surpass C++ in execution time.
Monte CarloPythonbenchmarking
0 likes · 9 min read

Given a circular road with n stations and the distances between each consecutive pair, this article explains how to determine the minimal travel distance between any two stations by evaluating both clockwise and counter‑clockwise routes, providing problem details, examples, solution logic, reference implementations in Python, Java, and C++, and complexity analysis.
AlgorithmJavaSimulation
0 likes · 8 min read

Given a circular road with n stations and the clockwise distances between consecutive stations, this article explains how to calculate the minimum travel distance between any two stations by comparing clockwise and counter‑clockwise routes, with full Python, Java, and C++ implementations.
AlgorithmJavaSimulation
0 likes · 7 min read

Given an initial array of size n and q update operations that replace a single element each time, this article explains how to output the array's total sum after every modification using a simple O(N+q) simulation with constant extra space, and provides Python, Java, and C++ implementations.
AlgorithmJavaSimulation
0 likes · 7 min read

This article examines Rust's rapid rise, its safety‑focused design versus C/C++'s speed emphasis, real‑world adoption by major tech firms, and the ongoing debate about whether Rust can eventually supplant C and C++ for system‑level development.
ConcurrencySystems Programmingc++
0 likes · 9 min read

The author, a veteran C/C++ developer, reflects on two months of using Rust, highlighting how Rust's compile‑time safety checks address common memory problems of C languages, the challenges of reproducing runtime bugs, and the trade‑off between longer compile times and more reliable software.
Compile-time ChecksDebuggingRust
0 likes · 9 min read


21CTOFeb 22, 2022 · Fundamentals
This article surveys the programming languages and technologies underlying a wide range of operating systems, user interfaces, desktop tools, databases, browsers, servers, and other software, illustrating how C, C++, Java, and other languages dominate different components across the software ecosystem.
C++c++programming languages
0 likes · 14 min read

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

The article explains how to analyze core‑dump files with GDB by examining the function call stack, key registers, and memory contents, classifying crash causes, using GDB commands to inspect variables and addresses, reconstructing corrupted stacks, handling optimized‑away data and vtable errors, and following a systematic debugging workflow.
DebuggingLinuxRegisters
0 likes · 17 min read

This article walks through building and deploying C++ shared libraries, demonstrates common pitfalls with missing dependencies, explains how to embed runtime library paths using RPATH, and shows modern CMake techniques for reliable linking on Linux systems.
CMakec++linking
0 likes · 11 min read


21CTOSep 28, 2019 · Backend Development
A candid recount of a ByteDance backend interview reveals how superficial preparation, gaps in Nginx, uWSGI, Redis, and data‑structure knowledge, and nervousness can derail even experienced developers, while offering concrete advice on early preparation, resume framing, and tackling tough technical questions.
AlgorithmBackendInterview
0 likes · 12 min read
