2min chapter

 Rustacean Station  cover image

Refactoring to Rust with Lily Mara

Rustacean Station

CHAPTER

How to Use a Function to Reallocate Data in Python

Dart has its own ffi package that you can add into your project from the Dart team or this is actually built into Dart language itself because they have their own ffi. It's also confusing in Rust too because it's like, should I pull in this C-lib or should I, you know, there's an ffi section within Rust and then there's also C-string and it just gets kind of overwhelming. They're all over the place. Yeah, it's really had to get you around it. If you are sharing allocations, if you allocate something in Rust, you should not expect that allocation to be cleaned up by some other language. Because that cleanup is either

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode