https://github.com/alexpusch/rust-magic-patterns
Magical Rust patterns laid out and simplified
https://github.com/alexpusch/rust-magic-patterns
blog rust
Last synced: 16 days ago
JSON representation
Magical Rust patterns laid out and simplified
- Host: GitHub
- URL: https://github.com/alexpusch/rust-magic-patterns
- Owner: alexpusch
- Created: 2022-09-25T19:09:24.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T11:06:18.000Z (25 days ago)
- Last Synced: 2025-04-07T03:01:40.601Z (23 days ago)
- Topics: blog, rust
- Language: Rust
- Homepage:
- Size: 1.42 MB
- Stars: 1,337
- Watchers: 23
- Forks: 38
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome-ccamel - alexpusch/rust-magic-patterns - Magical Rust patterns laid out and simplified (Rust)
README
# Rust magic patterns
The best way to learn Rust is by looking at simplified examples and building from there. Well, maybe not the best way, but this is the content of this blog repository.
### 2025-04-13 - [A Visual Journey Through Async Rust](visual-journey-through-async-rust/Readme.md)
"Async code is concurrent, not parallel". Have you heard this phrase about Rust/Node.js async runtimes? How about "CPU-bound code will block the async executor"? Let's investigate these claims with some code and visualizations.### 2025-01-18 - [Async Pipeline Pattern - Eager to work](async-pipeline-pattern/Readme.md)
The async pipeline pattern utilizes tasks and channels to concurrently process data. Lets learn about it from scratch and wrap it into a crate.### 2024-04-20 - [Rust Stream API visualized and exposed](rust-stream-visualized/Readme.md)
Rust Stream API is very elegant, but do you really know whats going on? Lets visualize streams and find some surprising results### 2023-11-18 - [Dumbing down Rust Iterator internals](dumbing-down-iterator/Readme.md)
Iterator API and its documentation can be a daunting for a beginner. lets learn about it by implementing a simple version### 2022-09-26 - [Axum style magic function params](axum-style-magic-function-param/Readme.md)
How in the world [Axum](https://github.com/tokio-rs/axum) manage to have methods that receive function pointers to various types of functions? What kind of black magic is this?#### Additional languages
- [Simplified Chinese](https://github.com/yushengguo557/rust-magic-patterns/blob/translation-zh-cn/Readme_ZH_CN.md) - @yushengguo557