Re:Writing an OS in Rust: Async/Await
by jfkebwjsbx on Monday March 30, 2020 @09:08PM
(#22734011)
That would explode the state machine size and make its performance characterization very hard.
And you would need to avoid having any kind of call to external code (or yield before and after every such call, and pray for the best).
For this to work, perhaps Rust should cooperate too, inserting .await points at strategic places in the code, to keep cost low but still guaranteeing a certain responsiveness of the overall system.