The Chrome team also started to try Rust. In the recently released document on Chromium’s official website, “Rust and C++ interoperability” is proposed as an unsolved challenge .
At this stage, Chrome engineers know very well that C++ is the first and “remains the ruler of the code base for the foreseeable future.” They believe that if you use Rust, you need to make it compatible with C++, rather than let C++ work with Rust in turn. What the Chrome team is currently exploring is whether and how Rust can call C++ code.
Judging from the current research results, the Chrome team has explored several important ways to call C++ functions, including avoiding the use of “unsafe” as much as possible, using libraries such as cxx to expand support, instantiating C++ objects, and passing ownership safely and many more. However, there are still many problems and difficulties to be solved.
In May of this year, Google engineers analyzed Chrome’s security vulnerabilities over the years and found that 70% were memory security issues. So Google plans to try to explore some “safe” languages, and Rust is among them.
The Chrome team is still investigating and exploring Rust. They stated that if this kind of interoperability is possible, they will consider the widespread use of Rust in Chrome and will “achieve this goal through a robust production quality solution.”
For more such interesting article like this, app/softwares, games, Gadget Reviews, comparisons, troubleshooting guides, listicles, and tips & tricks related to Windows, Android, iOS, and macOS, follow us on Google News, Facebook, Instagram, Twitter, YouTube, and Pinterest.