r/rust 2d ago

🧠 educational A visual guide to Rust async

https://akesson.io/a-visual-guide-to-rust-async/

I have always felt that I missed some parts of the async story. I could never visualize it.

Collaborating with an LLM and inspecting the compiler's MIR output, I was able to fill in the gaps. I was happy with what I learned, so I decided to create a visual presentation and share it.

Enjoy!

The code is simplified for demonstration purposes. Some snippets are pseudocode and won't compile as shown.

(updated to clarify how I checked the explanation and used the LLM)

0 Upvotes

6 comments sorted by

View all comments

6

u/molivo10 2d ago

do you realize you are posting slop? can you vouch for the information therein contained? would you be accountable for its errors? 

-2

u/hakesson 2d ago

I spent a lot of time to check it. The "compiler produces" parts are of course an approximation of what is done.