On the other hand the registry is immutible, so perhaps we should just embrace not needing everything in std?
-
-
-
That's great until you get append-only malware
- 6 more replies
New conversation -
-
-
I took a stab at this, extracting info about the top 500 crates via the http://crates.io API, putting it into a spreadsheet, and dividing the number of recent downloads by the crate size. Here's the top 25 crates with the highest "left-pad index" https://docs.google.com/spreadsheets/d/1wwahRMHG3buvnfHjmPQFU4Kyfq15oTwbfsuZpwHUKc4/edit?usp=sharing …pic.twitter.com/PJGTyNLBZl
-
Neat! As I suspected, matches, atty, cfg-if, lazy_static, memoffset, scopeguard, nodrop could all easily be in the stdlib.
- 1 more reply
New conversation -
-
-
Isn't the left-pad phenomenon (and likewise inane js packages for things like "isequal" or "ispositive" or whatever) a matter of library functions that simply shouldn't exist anywhere, standalone or in aggregate, because they're shorter/simpler written out where used?
-
Yeah, there are probably some subset of those crates that aren’t worth it at all.
- 5 more replies
New conversation -
-
-
Fun story: I made a micro-crate after a function was removed from the standard library. A few years later, after determining that it was popular by looking at usage, it recently got put back in. It now serves as a polyfill if you want to support old rust versions.
- End of conversation
New conversation -
-
-
Sounds like a fun thing for the
@rustsecurecode WG to tackle. We already did something like that for the "most commonly screwed up unsafe pattern leading to memory unsafety/RCE":https://github.com/rust-lang/rfcs/pull/2714 …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Aha this proves that "what goes in the standard library" is an NP-complete problem
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.