Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’

Rewriting the Linux Kernel in Rust? The Ambitious Project 'moss'

Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’ “Writing an operating system? Isn’t that Linus’s territory?”“Can Rust write a kernel? Aren’t you afraid of unsafe code blowing you up?”“Linux compatibility? You mean it can run BusyBox and that’s considered compatible?” Hold on, today we won’t boast or make empty promises; instead, let’s take … Read more

Asio-grpc: A Comprehensive Guide to the Asynchronous gRPC Library Based on Asio/Executors

Asio-grpc: A Comprehensive Guide to the Asynchronous gRPC Library Based on Asio/Executors

Asio-grpc: A Comprehensive Guide to the Asynchronous gRPC Library Based on Asio/Executors 1. Project Overview Asio-grpc is a header-only library based on C++17 that provides robust asynchronous support for gRPC. It enables developers to write gRPC clients and servers using various modern C++ asynchronous programming paradigms by providing an Asio executor compatible with the grpc::CompletionQueue … Read more

In-Depth Understanding of Python Coroutine Programming

In-Depth Understanding of Python Coroutine Programming

Basics of Coroutines A coroutine is a special software construct that allows a program to pause and resume execution without losing the current execution context. Unlike threads and processes, coroutines run within a single thread and achieve concurrency through a scheduling mechanism, reducing the overhead of context switching and improving program execution efficiency. Coroutines are … Read more

Deep Dive into the Tokio select! Macro: The Art of Concurrency Control in Rust Asynchronous Programming

Deep Dive into the Tokio select! Macro: The Art of Concurrency Control in Rust Asynchronous Programming

Deep Dive into the Tokio select! Macro: The Art of Concurrency Control in Rust Asynchronous Programming In the asynchronous Rust ecosystem, Tokio is undoubtedly the most important asynchronous runtime. It provides a variety of tools necessary for building high-performance, concurrent applications. Among them, the tokio::select! macro is a powerful asynchronous control flow tool that allows … Read more

Rust Microservices: From Service Discovery to Intelligent Load Balancing

Rust Microservices: From Service Discovery to Intelligent Load Balancing

💡 Core Idea in One Sentence: Utilizing microservices built with Rust to achieve intelligent scaling through efficient service discovery and load balancing strategies. In our previous discussion, we introduced how to set up a basic microservice architecture using Rust and Tokio. Today, we will further explore how to implement service discovery and load balancing between … Read more

Rust and Tokio: A New Perspective on Building Microservices Architecture

Rust and Tokio: A New Perspective on Building Microservices Architecture

💡 Core Idea:Combining Rust with Tokio enables the easy implementation of efficient and safe microservices architecture.In our previous discussions, we have learned how to use Tokio to handle asynchronous tasks and network communication. Today, we will explore how to leverage Rust and Tokio to build a microservices architecture, which is a powerful and flexible approach … Read more

Optimization Strategies for HttpClient in High Concurrency Scenarios, Significantly Increasing QPS!

Optimization Strategies for HttpClient in High Concurrency Scenarios, Significantly Increasing QPS!

One memorable instance was a week before the Double Eleven shopping festival when one of our APIs was overwhelmed. At that time, the business logic of the API was quite simple, just calling a few external services to fetch data and then assembling the results. Logically, CPU and memory usage were not high, so the … Read more

Rust as an Alternative for Building AI Workflows: From Technical Breakthroughs to Enterprise Implementation

In 2025, when Cloudflare announced its AI inference workflow achieving over 5000 concurrent tasks on a single node, the entire industry was left wondering: Why Rust? This system programming language, renowned for its memory safety, is quietly revolutionizing the field of AI workflow orchestration. While the Python-dominated LangGraph ecosystem is convenient, it exposes a communication … Read more

Understanding HTTP and WebSocket for Beginners: Run These 8 Python Codes to Grasp Network Communication Principles

When you watch videos, chat on WeChat, or check your delivery status, what are your phone and the server really “talking” about? In essence, all network interactions are driven by two types of “chatting rules”—HTTP is like “sending a text message,” where you send one message and wait for a reply before ending the conversation; … Read more

Learning Rust Today: Rust Pattern Matching – More Than Just an Upgrade to Switch

💡 Core Idea: Rust’s pattern matching provides powerful and flexible control flow, surpassing traditional switch statements. 🧠 Detailed Knowledge Points: Pattern matching is a mechanism in Rust used to check if a value conforms to a specific structure and destructure it to extract the desired parts. It is not limited to integer or string comparisons; … Read more