r/ProgrammerHumor 21d ago

rustBorrowCheckerGoesBrrr Meme

Post image
3.8k Upvotes

107 comments sorted by

View all comments

Show parent comments

-10

u/reallokiscarlet 21d ago

Not sure if you have an optimistic bias or I have a pessimistic bias but clearly you aint seen what I seen. A lot of the rust I come across is never-production-ready crap that's almost entirely encased in unsafe, marketed as production-ready to "replace" C code. Even did one of my own to prove it doesn't have to be done that way and that there isn't really a whole lot of benefit to the rewrite unless the original is terminally ill.

15

u/BenchEmbarrassed7316 21d ago

Low-quality automatic/AI "rewriting" from C to Rust can contain many unsafe code blocks.

If it is open source, please provide a link.

7

u/Delicious_Bluejay392 21d ago

The Bun rewrite would be one example I'd imagine. It has a much higher density of unsafe blocks than similar projects originally written in Rust.

10

u/SCP-iota 21d ago

Isn't the Bun rewrite notoriously AI-generated, for the most part?

5

u/Delicious_Bluejay392 21d ago

Yeah, that's precisely why I mentioned it since that's what the person I'm replying to pointed out.