by bluejekyll · 2y ago · 0 comments
As Niko Matsakis puts it, async/await is Rust in hard mode, you don't need that when having to also worry about everything writing an OS from scratch entails.
I’m not sure if these are blocking issues or not, thus my question.
If you are targeting a posix syscall interface, a lot of that doesn't really require async to pull off. You need to switch threads whenever an operation is blocked rather than run unrelated work on that thread. I suppose you can still model that with async, but it certainly doesn't feel as helpful.
File I/O will move to this model later (the current file I/O code is quite old and mostly a placeholder).
Very cool. Thanks for pointing this out.