Makes me miss go, which has channels build in, has a runtime built in, and both are generally solid. None of use flavor A for this, use flavor B for that, or write wrappers for the wrong color function.
Function colors is kind of a meme but maybe-async functions are coming.
https://lib.rs/tokio is king for std environments, https://lib.rs/embassy for no_std.
cargo add crossbeam-channelFor common scenarios and platforms, Rust’s library situation did get way better really quickly.
I don’t have much experience in either language, and I don’t have an opinion on which is better. I am just interested in your opinion.
Personally I think the sibling comment is pretty accurate, and rust is held back by:
- slow compiling of larger projects
- async stuff can quickly lead to very complex shenanigans
- embedded still requires you to write HAL stuff for MCUs that is supported out of the box for C