wishawa / async_ui

Lifetime-Friendly, Component-Based, Retained-Mode UI Powered by Async Rust
Mozilla Public License 2.0
551 stars 11 forks source link

`async_ui` as a tool for learning? #3

Open rtavenner opened 1 year ago

rtavenner commented 1 year ago

Bearing in mind that I have no idea what I'm talking about, could this somehow be used to make a visual tool for learning async Rust? I'm thinking the learner creates a future, and can then visually inspect how it behaves.

Is there any merit to this idea, or is it nonsense?

wishawa commented 1 year ago

Something like that could work. Being based on async Rust, Async UI can be incorporated into existing async programs pretty easily. You could do something like make a box appear when an async function is running and disappear when it is done without too much effort.

The hard part, however, is designing and implementing the actual UI. How do you visualize async code? Async UI doesn't have the tool to do complex visualization like drawing graphs yet.