r/vibecoding • • 2d ago

Discussion Vibe-migrating to Rust

https://medium.com/@ehabhosam/the-rust-rewrite-is-a-matter-of-time-unless-074f7f09989b

Anthropic rewriting their messaging API in Rust opened a discussion that I wanted to share my thoughts on, and I wanna know what you think too.

38 Upvotes

10 comments sorted by

20

u/isene 2d ago • Bravo

Before AI I've coded in some 30 different languages, including my own language XRPN. Since 2003 I coded mostly in Ruby. Never coded in Rust. But with Claude Code I code most of my applications in Rust (except my desktop which is Assembly, my phone apps which is Kotlin and tool set which is in Simpler). CC handles Rust really well in my harness. Really well.

8

u/JoshuaLandy 2d ago

This guys rusts

3

u/NaturallyFarOut 2d ago

This guy this guys

1

u/Saens_Javane 12h ago

yeah the strict compiler errors actually make it way easier for the models to self-correct

6

u/VibeArcade_Becky 2d ago • Bravo

The thing that makes a port like that safe is the test suite, not the language. If you have solid tests and benchmarks the model can move it over piece by piece and you check each step, but without them you mostly get plausible Rust that behaves a little differently.

5

u/agoodpeeboy729 2d ago

semi-relatedly, I feel like Rust becomes more attractive in an agentic world. Lot of the traditional friction of writing Rust is reduced when an agent can iterate against compiler errors on its own.

2

u/oborvasha 2d ago

Vibrating to rust

2

u/MingJackPo 22h ago

I actually started shifting a bunch of our production workflows from python to rust based on that loose guidance. The memory and speed improvements are really kind of insane, for any real production flow definitely recommend it.

2

u/snowrazer_ 19h ago

If AI ever goes down we’re going to be up shit creek with all these cryptic unmaintainable over engineered/complicated Rust apps.

I personally updated a site to be all Rust, it works awesome, super fast, I can read the code, but it is a nightmare to equivalent TypeScript code.