Welcome to Rexai Programming

Inspire dreams, achieve future. Rexai Programming focuses on adult education of AI programming, starting from zero to help you master future skills, and start the infinite possibilities of the intelligent era.

关注我们

微信公众号二维码

微信公众号

助手二维码

学习助手

Complete Guide to Rust WebSocket Actor Implementation

Hands-On Code! Perfect WebSocket + Actor System Implementation - I Pulled Another All-Nighter

From zero to hero WebSocket transport layer implementation, every line of code has a story, performance so good it makes you wonder if the compiler is cheating

January 10, 2025 · 9 min · 1744 words · Rexai Programming
Rust Async Programming: 7 Common Mistakes That Cause Performance Bottlenecks and Crashes

I Built a Distributed Actor System in Rust and Even Surprised Myself

Step-by-step guide to building cross-machine communication Actor systems with Rust, with performance that will make you question reality

January 9, 2025 · 6 min · 1126 words · Rexai Programming
Claude Code UI with reverse‑engineering insights

Reverse‑Engineering Claude Code: The Surprisingly Simple Secret Behind the Best AI Coding Tool

Have you ever felt this way? When you ask ChatGPT to write code, it often sounds like a “textbook theorist.” The code looks fine, but once you run it—bug city. Claude Code feels different. It’s like a senior engineer sitting next to you. It can write code, run it, debug it, and proactively catch issues. People who use it often say it’s strangely addictive. ...

August 27, 2025 · 4 min · 677 words · Rexai Programming
Mini Actor framework visualized in a night coffee shop: Actor, Addr, Inbox, Supervisor

Build Your Own Mini Actor Framework: Run Concurrency Like a Coffee Shop

Using a coffee shop metaphor, build a practical mini Actor framework in Rust covering Addr, spawn, supervise, a registry, and message passing.

August 21, 2025 · 6 min · 1137 words · Rexai Programming
Rust async microservices: rate limiting, backpressure, batching and middleware

Rust Async Microservices, Tamed: Rate Limiting, Backpressure, Batching, and Middleware

Bold claim up front: stability is not “slow.” Stability is making “fast” happen in an orderly way. With the gates placed at the right spots, even a flood can be channeled into rivers. Think about a subway during Monday rush hour. Entry turnstiles regulate inflow, platforms enforce headcount, trains add extra cars, and the PA system orchestrates everything. That is exactly what microservices must do under high concurrency. Your Rust service needs the same four gates: rate limiting, backpressure, batching, and a smart brain of middleware. ...

August 20, 2025 · 6 min · 1130 words · Rexai Programming
Node.js Middleware Optimization Architecture Diagram

The Middleware Optimization Trick That Made My Node.js Server 40% Faster

Have you ever been in this situation: your Node.js server is getting slower and slower, users are complaining about page lag, but you don’t want to undertake a massive rewrite of your entire project? Don’t panic! Today I’m sharing a “lazy but effective” optimization approach—middleware refactoring. Using this method, my server performance improved by 40%, and the code became cleaner too. What is Middleware? Let’s Get This Concept Clear First Simply put, middleware is like a restaurant server. You order a dish (make a request), the kitchen prepares it (processing logic), but before the dish reaches your table, the server has to do many things: ...

August 19, 2025 · 4 min · 675 words · Dream Beast Programming

3 Steps, Zero Cost: 2000 tokens/s Coding Backend for Claude Code (Cerebras × Cloudflare)

Three steps to wire up an OpenAI-compatible route to Cerebras so Claude Code runs fast and cheap. Includes CLI config and curl smoke test.

August 18, 2025 · 3 min · 588 words · Rexai Programming

Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown

If async tasks keep waking you up at 3 a.m., this guide is for you. We’ll build a resilient microservice with Rust + Axum that processes jobs reliably, scales well, and shuts down gracefully. The mental model: a busy coffee shop An HTTP request is like a customer placing an order. You shouldn’t block the cashier until the coffee is brewed. Instead: accept the order, hand it to the kitchen, and move on to the next customer. Our job queue is the order slip; workers are the baristas. ...

August 17, 2025 · 4 min · 797 words · Rexai Programming
Complete implementation and best practices for Rust Axum graceful shutdown

Rust Axum Graceful Shutdown, The Ultimate Guide: Fix the pitfall 99% of engineers hit

Rust Axum Graceful Shutdown, The Ultimate Guide: Fix the pitfall 99% of engineers hit Follow Moshou Coding on WeChat to learn Rust the easy way. Do these production nightmares look familiar? You reboot the server and lose user data. DB connections fail and transactions get rolled back. WebSocket links drop and the UX craters. The root cause is a detail 99% of developers overlook — Rust Axum graceful shutdown. Let’s make it practical and friendly while staying production‑grade. ...

August 17, 2025 · 3 min · 449 words · Rexai Programming

Customize Your AI Coder: A Deep Dive into Claude Code Output Styles

What’s up, developers? Still playing the basic “Q&A” game with your AI? That’s old news. Today, I’m going to show you a “nuclear weapon” that can revolutionize your programming workflow: the new Output Styles feature in Claude Code. In simple terms, it lets you inject a “soul” into your AI, transforming it from a mere tool into any “character” you desire. Imagine your AI is no longer just a “tool” that mechanically spits out code. It can instantly become a “Senior Architect” to help you untangle legacy code, and the next moment, it’s a “TDD fanatic” guiding you to write the most robust test cases. ...

August 16, 2025 · 6 min · 1112 words · Rexai Programming