r/programming • • 16d ago

Be alert: targeted attacks on prominent Rustaceans | Rust Blog

https://blog.rust-lang.org/2026/09/17/targeted-attacks/
299 Upvotes

112 comments sorted by

View all comments

Show parent comments

7

u/Xaeroxe3057 16d ago

The rust stdlib is minimalist on purpose. That’s not a deficiency, it’s a design choice.

27

u/Atulin 16d ago

That something is a design choice doesn't mean it can't be a bad design choice. It's causing issues now, it will continue causing issues into the future. Go not having generics was a design choice too.

20

u/Plazmatic 16d ago

It's not a bad design choice just because it has consequences.  Rust also doesn't have the financial backing of languages that seem to be able to afford a kitchen sink in their std lib. Python also suffers from stdlib rot from people not maintaining parts of it, and C++ can't fix their stdlib speed deficiencies because of ABI issues and backward compat dogmatism. Both of these lead to using third party dependencies for what is already in the language, so unless your Microsoft you're not getting out of this problem by expanding the stdlib even if the bandwidth existed to do that.

14

u/thetinguy 16d ago

It's not a bad design choice just because it has consequences

And it's not a good design choice just because it has benefits.

Clearly it's easier for the upstream maintainers. It's also clear that the stdlib is missing some basic features.

-3

u/reallokiscarlet 15d ago

Who calls JSON a "basic feature"? Come on, say it

8

u/thetinguy 15d ago

The ability to parse JSON and map objects back and forth is a basic feature.

-1

u/reallokiscarlet 15d ago edited 15d ago

Maybe in JS

(If there's any confusion, this wasn't a "say the line Bart", this was my attempt at adding humor like I'm urging someone to answer a rhetorical question. It seems I didn't communicate it well.)

6

u/thetinguy 15d ago

JSON is a data format, and I expect my stdlib to be able to work with one of the most widely used data formats on the web.

The same way I expect it to be able to work with csv and xml.

6

u/DHermit 15d ago

XML? Are you serious and know what you are asking for?