News for hackers. Stuff that matters.
Re:Facebook Container Extension by Mozilla Firefox by stuaxo on Thursday January 19, 2023 @06:43AM (#34439284)
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-ru...

There are no comments on this comment yet.