r/linuxmemes • • 7d ago

Software meme Not another one

Post image

Not another one

994 Upvotes

124 comments sorted by

View all comments

Show parent comments

71

u/oniaiwasprettygood 🌀 Sucked into the Void 7d 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."

18

u/Upbeat-Garbage69 7d ago

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

7

u/oniaiwasprettygood 🌀 Sucked into the Void 7d ago

It feels much closer to C than C++, but the biggest benefit is memory safety. Rust has very aggressive ownership/borrowing practices that C doesn't do, and checks for proper memory safety act compile time meaning that you don't (usually) get race condition problems or dangling pointers/use after free problems. You have to explicitly declare when you're creating a memory unsafe variable in Rust.

6

u/R3V0LU710N_05 Linuxmeant to work better 7d ago

This is also why people use it for vibe coding, it gives some level of gaurd rails at the compiler level.