VOOZH about

URL: https://thenewstack.io/google-spends-1-million-to-make-rust-c-interoperable/

⇱ Google Spends $1 Million to Make Rust, C++ 'Interoperable' - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-02-05 09:00:49
Google Spends $1 Million to Make Rust, C++ 'Interoperable'
C++ / Linux / Rust / Security / Software Development

Google Spends $1 Million to Make Rust, C++ ‘Interoperable’

Eager to eliminate memory errors in C++-based Android apps, Google wants to make it easy for devs to write functionality in Rust instead.
Feb 5th, 2024 9:00am by Joab Jackson
👁 Featued image for: Google Spends $1 Million to Make Rust, C++ ‘Interoperable’
Feature image via Pixabay.

Google has pledged $1 million to the Rust Foundation to improve the interoperability between the C++ and Rust programming languages.

Though the project is called the “Interop Initiative,” the goal is more unidirectional in nature, to get “organizations slowly migrate current C++ to Rust,” according to the announcement.

No mean feat, given that C++ tends to be used for large, performance-intensive programs, such as modern games and operating systems.

Software-building collectives, for-profit or otherwise, that are heavily invested in C++ — in terms of talent, tooling, and generations of code — may not be so eager to shift to another (and somewhat challenging) language to learn, despite Rust’s putative benefits of better security and improved dev productivity.

Even given the “growing popularity and adoption of Rust, it would be unrealistic to expect even the most technically advanced organization to easily pivot to Rust and away from the architecture of existing codebases,” admitted Rust Foundation Executive Director and CEO, Dr. Rebecca Rumbul, in a statement.

Still, moves are being made. Microsoft recently spun up a team to bring more Rust to its Office365 app substrate, MSPowerUser reported. The company has also vowed to use more Rust in the Windows kernel, citing ongoing security concerns with C++.

Likewise, Linux head honcho Linus Torvalds is open to the idea of using Rust for some of the core components of Linux, written predominately in C. Rust support is even being written into the GNU C Compiler (GCC).

Why Is Google so Interested in Rust?

For Google’s part, the company seems to be keenly interested in using Rust for memory safety. C++’s design inadvertently encourages programmers to make errors in memory allocation, opening the space for malicious actors to hack into these programs (The C++ tribe is working on this problem now).

“While Rust may not be suitable for all product applications, prioritizing seamless interoperability with C++ will accelerate wider community adoption, thereby aligning with the industry goals of improving memory safety,” wrote Lars Bergstrom, who is both the Google director for the Android platform tools and libraries as well as the chair of the Rust Foundation Board, in a blog post.

The use of Rust has already greatly benefited Google’s Android OS mobile operating system, by preventing hundreds of vulnerabilities that may have happened with a less-memory secure language, the company has estimated.

Rust Code Should Be Able to Call C++ Functions Easily

To get Rust into predominately C++ code bases, you need to provide easy ways for functionality written in Rust to interact with existing C++ libraries, by the way of wrapper libraries, direct tooling and build system support, and modifications to application binary interfaces (ABIs).

Much work has already been done. The software consultancy KDAB has created a set of Rust crates, called cxx-qt is, that would help integrate Rust into C++ applications using CMake build system for C++ via the Qt cross-platform development framework.

Google itself has already invested in interoperability tools for both Android OS as well as for iChromium, including autocxxbindgencbindgendiplomat, and crubit,

To help things along further with Rust Google has also aggregating and publishing audits for Rust crates used in Google projects.

👁 Image

According to Google, many C++ libraries are already available to Rust through existing C++ bindings, such as bindgen.

Rust Programmers Are Interested in C++

According to JetBrains’ The State of Developer Ecosystem 2023, 12% of Rust developers use C++ alongside Rust.

In fact, 23% of Rust developers have already migrated applications from C++ to Rust, which accounts for 35% of all Rust developers that have migrated an app from another language instead of starting with a greenfield.

The Path Forward for the Interoperability Initiative

First up for the initiative: A scope of work proposals, to be drafted by the Rust Project Leadership Council, with the input of Rust project leaders and “relevant” Rust Foundation member organizations, and its board.

No doubt, the initiative will want to hire a few engineers to build more integration points, as well as underwrite existing projects to keep going. The project may even look into the use of AI to speed things along.

TNS Analyst Lawrence Hecht contributed to this post.

TRENDING STORIES
Joab Jackson is a senior editor for The New Stack, covering cloud native computing and system operations. He has reported on IT infrastructure and development for over 30 years, including stints at IDG and Government Computer News. Before that, he...
Read more from Joab Jackson
SHARE THIS STORY
TRENDING STORIES
The Linux Foundation and Microsoft are sponsors of The New Stack. 
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.