|
|
Log in / Subscribe / Register

Rustaceans at the border

Rustaceans at the border

Posted Apr 15, 2022 7:31 UTC (Fri) by tlamp (subscriber, #108540)
Parent article: Rustaceans at the border

> "Async Rust" knows nothing about kernel threads or how context switching is done in the kernel, for example.

Hmm, but it doesn't know that stuff for the user space either. Async is basically sugaring to wrap handling a pinned future type, each runtime, and future type (with a poll funciton, and a pending and ready state), can map that to their actual, underlying execution model of choice. I mean, that's why the Rust ecosystem can have multiple async runtime libaries like tokio, async-std or smol.

https://rust-lang.github.io/async-book/02_execution/01_chapter.html


to post comments

Rustaceans at the border

Posted Apr 18, 2022 3:32 UTC (Mon) by Paf (subscriber, #91811) [Link]

Ok, but none of those implementations know anything about the kernel. We’ll have to add one and if we don’t it won’t work - that’s the point being made. Can’t generally bring in user space stuff without issues.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds