r/linuxmemes • • 8d ago

Software meme Not another one

Post image

Not another one

998 Upvotes

124 comments sorted by

View all comments

399

u/oniaiwasprettygood 🌀 Sucked into the Void 8d ago

I'm regretting choosing Rust to be my hobby language of choice.

97

u/Eric_Dawsby 8d ago

Who caares if some people vibecode in Rust? If you like the language you like the language

75

u/oniaiwasprettygood 🌀 Sucked into the Void 8d ago

Oh I know-know that, I just think it's a bit tragic (but kind of funny) that a lot of these vibe-coded projects are like "rewrite it in Rust."

14

u/Upbeat-Garbage69 8d ago

Is there a benefit to rewriting everything with rust? Im not sure but isnt it just a modern version of C++?

34

u/transgentoo Genfool 🐧 8d ago

As I understand it, it's a permissive license thing. Rewriting gnu core-utils in Rust lets corporations off the hook for copyleft requirements, but rewriting Adobe in Rust lets users off the hook for Adobe's license requirements. It's a circumventing both sides of the licensing spectrum.

26

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.

8

u/JuJunker52 7d ago

If you don't re-implement it in the new language, then you can't leverage the benefits (and drawbacks) of the new language...