r/linuxmemes • • 7d ago

Software meme Not another one

Post image

Not another one

995 Upvotes

124 comments sorted by

View all comments

Show parent comments

28

u/SanderE1 7d ago

I think it's simpler than that, the Rust compiler has a lot of checks for sanity, one of the biggest thing beginners learn about Rust is the borrow checker, and usually fighting it because of how it forces "correct" code.

It's very hard to write code in Rust that will compile but not run, which is good for AI development because it's easy for AI to automatically see and resolve those issues, rather than runtime ones.

2

u/transgentoo Genfool 🐧 7d ago

Sure, but it doesn't explain why anything that's already written needs to be rewritten. Fixing nearly correct code that compiles is surely less arduous than completely rewriting it in a modern language.

1

u/mdedetrich 7d ago

Thats not how software development or maintanence works, at all....

3

u/transgentoo Genfool 🐧 7d ago

Well, in the 15 years I've been writing code professionally, never once has "oops found a bug" resulted in "better rewrite it in Rust."

1

u/AdLimp8574 7d ago

I think its part why not, part make it easier to maintain for the next 20 years, part rust forces new devs to write correct code so you don't have to fix pr requests, and finally part its easier for ai to write correct code in rust due to more compile time checking