Tutorial
5 posts

Karpathy's Latest Work: Complete GPT in 200 Lines of Code - The Most Adorable AI Tutorial
Andrej Karpathy has done it again! This time he implemented a trainable, inferable GPT model in just 200 lines of pure Python with no dependencies. This might be the most concise large language model implementation ever.

Rust Compiler Error 'cannot borrow as mutable'? Think of s.clear() as 'Tearing a Book'
Why does s.clear() cause a mutable borrow error? This article uses a ’library book’ analogy to help you thoroughly understand Rust’s borrowing rules and lifetime conflicts.

Stop Writing Some(...): The impl Into<Option<T>> Trick in Rust
Learn how to use Rust’s Into Trait with Option to let functions accept both raw values and Option types, eliminating tedious Some() wrapping.

Rust Macros 2.0 Starter Guide: Build Code Like Lego
A panoramic Rust Macros 2.0 guide: unify macro namespaces, master the TokenStream pipeline and macro hygiene, and migrate from macro 1.0 to macro 2.0 metaprogramming with practical examples.
Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown
Build a production-ready async microservice with Rust and Axum: job queue, background workers, exponential backoff retries, and graceful shutdown. Includes full project structure and Docker example.