Skip to content

63: The key to a happy Rust/C++ relationship

May 30, 2024 · 45 min

Show notes

Aida was part of one of the first Rust teams here at Meta. One of the biggest challenges was interacting with the large amount of existing C++. With the release of cxx, safe interop between C++ and even async Rust has become a lot easier.

Got feedback? Send it to us on Threads (https://threads.net/@metatechpod), Twitter (https://twitter.com/metatechpod), Instagram (https://instagram.com/metatechpod) and don't forget to follow our host @passy (https://twitter.com/passy, https://mastodon.social/@passy, and https://threads.net/@passy_). Fancy working with us? Check out https://www.metacareers.com/.

Links

Timestamps

  • Intro 0:06

  • Aida Intro 2:06

  • Rust in Meta Source Control 2:50

  • State of Rust at Meta 10:11

  • bindgen 13:25

  • cxx vs bindgen 17:49

  • async Rust and C++ 19:04

  • Dealing with Lifetimes 28:19

  • Fixing Memory Leaks 31:25

  • Thread safety with Send and Sync 33:48

  • A Magic Wand for Async Rust 39:52

  • Outro 43:04

  • Outtakes 43:50

All episodes of Meta Tech Podcast

Settings

Display

Language

Decides which stations you see first on the home page.

History

Recently played stations and episodes and your latest searches are only stored in this browser.

Notifications

A short notice when a podcast you follow has a new episode. Turn off single podcasts with the bell on their page.

Account

Save favorites – in the app and on the website.

Keyboard shortcuts

/
Open search
Space
Play or pause
← →
In the player: back 15 s, forward 30 s (episodes) · in a row: next tile
↑ ↓
In a row: target within the tile
Home / End
In a row: first or last tile
Esc
Close window or menu
?
This overview
Now playing

Go to station page

Play next

    Add episodes with “Play next” – they play after the current episode.