Python Turtle Graphics 1

We apologize for the two-week hiatus for various reasons. In the coming time, we will maintain a daily update with a fresh approach and different content, allowing more children to experience the charm of Python programming and guiding them to sail in the ocean of code!Welcome to the“Code Little General” classroom, where we are dedicated … Read more

HPX High-Performance Parallel Programming 2: C++ Standard Library

2 C++ Standard Library 2.1 Overview of the C++ Standard Library The above image outlines some components of the C++ Standard Library (SL), including algorithms, iterators, atomic operations, ranges, coroutines, input/output, thread support, and containers. It is important to note that most components are provided by the C++17 standard, with two provided by the C++20 … Read more

Open Source Project – C++ Implementation of Streaming Binary Protocol for Shanghai and Shenzhen Stock Exchanges

📌 Introduction <span>fin-proto-cpp</span> is an open-source C++ protocol parsing library specifically designed for the financial sector, implementing a low-latency streaming binary protocol codec for the Shanghai Stock Exchange (SSE) and Shenzhen Stock Exchange (SZSE). The project features the following characteristics: ⚡ High-performance encoding and decoding: Processes exchange binary data streams in milliseconds, utilizing a zero-copy … Read more

From Scratch: Building a Lightweight Game Engine Core with C++

A game engine serves as a bridge between game creativity and hardware performance. Although there are many mature game engines available on the market, understanding and implementing a lightweight game engine core remains a dream for many game developers and C++ enthusiasts. This process not only hones low-level programming skills but also helps clarify the … Read more

Advanced C++ References and Pointers

1. Basics of Pointers A pointer is a variable that stores a memory address. Pointer definition and initialization:<span><span>int *p = &a;</span></span> Pointer operations:<span><span>++</span></span>, <span><span>–</span></span>, <span><span>+n</span></span>, <span><span>-n</span></span> The relationship between pointers and arrays: the name of the array is the address of the first element. Exercise: Swap Two Values After swap1: x=10, y=20 After swap2: x=20, … Read more

Choosing and Implementing Three Cross-Platform C++ GUI Frameworks: Practical Comparison of Qt, Dear ImGui, and Elements

When developing C++ desktop applications, the choice of GUI framework almost determines the development experience and subsequent maintenance costs of the project. For the past decade, Qt and wxWidgets have been mainstream, but in recent years, lightweight and modern solutions have begun to enter the developers’ field of vision, such as Dear ImGui and Elements. … Read more

From Zero to Your First Mini Game: A Comprehensive Guide to C++ Game Development

If you have always wanted to create a game but found programming too complex or didn’t know where to start, this article is prepared for you.C++ is the core language of many game engines (such as Unreal Engine), not only because of its fast execution speed but also because it allows you to have deeper … Read more

Building a Minimal C++ HTTP Server from Scratch: Core Principles and Implementation

Recently, while assisting a friend with a small tool project, I encountered a requirement: to embed a local HTTP service so that the frontend can access and control the backend logic. It sounds simple, but if we want to implement a minimal HTTP server from scratch using standard C++ network programming without relying on existing … Read more

A Recommended C++ Library for Simplifying Inter-Process Communication: D-Bus

When developing desktop applications or system services, inter-process communication (IPC) is an unavoidable topic. Whether it is for configuration synchronization, event broadcasting, or interacting with system daemons, a stable and scalable communication mechanism is required. Common IPC methods include pipes, shared memory, and sockets, but they often require developers to handle serialization, message routing, permission … Read more