| ▲ | aw1621107 5 hours ago | |
> No memory allocation means no Rust benefits. This isn't really true; otherwise, there would be no reason for no_std to exist. Data race safety is independent of whether you allocate or not, lifetimes can be handy even for fixed-size arenas, you still get bounds checks, you still get other niceties like sum types/an expressive type system, etc. > OS / Kernel - Nearly all of the relevant code is unsafe. I think that characterization is rather exaggerated. IIRC the proportion of unsafe code in Redox OS is somewhere around 10%, and Steve Klabnik said that Oxide's Hubris has a similarly small proportion of unsafe code (~3% as of a year or two ago) [0] > Browsers - Despite being born in a browser, Rust is unlikely to make any inroads. Technically speaking, Rust already has. There has been Rust in Firefox for quite a while now, and Chromium has started allowing Rust for third-party components. [0]: https://news.ycombinator.com/item?id=42312699 [1]: https://old.reddit.com/r/rust/comments/bhtuah/production_dep... | ||
| ▲ | jitl 4 hours ago | parent [-] | |
The Temporal API in Chrome is implemented in Rust. We’re definitely seeing more Rust in browsers including beyond Firefox. | ||