logoalt Hacker News

CupricTeatoday at 8:39 PM3 repliesview on HN

Title should be changed. Async Rust != RTOS. RTOS's are preemptively multithreaded while async is done cooperatively with yield points.

Perhaps "Embedded async Rust vs. C RTOS"


Replies

bArraytoday at 8:54 PM

The title in the article is literally "Async Rust vs RTOS showdown!" and the article shows "Embassy/Rust against FreeRTOS/C". There should also be a (2022) appended.

You just need to read the Reddit comments to see why this is not a useful comparison [1] [2].

[1] https://www.reddit.com/r/rust/comments/sik3g0/async_rust_vs_...

[2] https://www.reddit.com/r/embedded/comments/she3u9/async_rust...

odo1242today at 8:53 PM

The article itself seems to have the right title: Async Rust vs RTOS showdown!

The title on HN should probably be updated to that

flatoday at 9:20 PM

Technically RTOS’s can also be cooperatively multithreaded, to some degree at least (see FreeRTOS). The comparison is valid IMO as threading with fixed yield points is an abstraction that isn’t exclusive to async Rust.