2 ms·
In this writeup [1] about adding Rust to Chromium there is a note on the architecture shared state in the architure which may explain the difficulty "... Chrom
by stuaxo 4y ago
In this writeup [1] about adding Rust to Chromium there is a note on the architecture shared state in the architure which may explain the difficulty
"... Chrome is built on foundational but really wide C++ APIs, such as the //content/public layer. We examined what it would mean for us to build Rust components against these types of APIs. At a high level what we found was that because C++ and Rust play by different rules, things can go sideways very easily.
For example, Rust guarantees temporal memory safety with static analysis that relies on two inputs: lifetimes (inferred or explicitly written) and exclusive mutability. The latter is incompatible with how the majority of Chromium’s C++ is written. We hold redundant mutable pointers throughout the system, and pointers that provide multiple paths to reach mutable pointers. ..."
[1]
https://security.googleblog.com/2023/01/supporting-use-of-rust-in-chromium.html https://security.googleblog.com/2023/01/supporting-use-of-ru...