News for hackers. Stuff that matters.
Re:Thoughts on Rust bloat by majewsky on Thursday August 22, 2019 @05:16AM (#20766124)
My main gripe with crates.io is that they allowed everyone to take every name. The "foo" crate just belongs to the first person who took (or squatted) that name, regardless of whether that person actually implements a nice library under that name.

What they should've done is allow uploads only to "<username>/<cratename>". So if I decide to make a regex crate, it's called "majewsky/regex" at first and Alice can make "alice/regex" and Bob can make "bob/regex". Then at some point, the community (through some open process) decides that Alice's crate has the best API, so "alice/regex" gets aliased to just "regex".

That way, everything in the main namespace adheres to some sort of quality standard and has community support behind it. Because there's some explicit process gate to getting stuff into the main namespace, you could attach any number of beneficial requirements to it, e.g.:

- test coverage

- documentation coverage

- at least 3 people having committer rights to the repo, at least 2 of which must not be affiliated with the same company

Re:Thoughts on Rust bloat by fnord123 on Thursday August 22, 2019 @07:33AM (#20766904)
Apparently that was done in the Ruby community and Github "helpfully" uploaded all the Ruby packages to the gems repository meaning all 217 forks of https://github.com/httprb/http became potential gems.

But the underlying idea is sound: namespace and federation. Rust should ideally follow Java's solution. And it's completely forward portable: when namespacing is introduced, the crates.io/regex crates become io.crates.regex. Then you can have your com.github.majewsky.regex.

Re:Thoughts on Rust bloat by majewsky on Thursday August 22, 2019 @11:37AM (#20769271)
I don't particularly like URL-derived package names, esp. with Go where the repo URL is auto-derived from the package name, because that makes it an absolute pita to move the repo to a new canonical location.
Re:Thoughts on Rust bloat by fnord123 on Thursday August 22, 2019 @05:47PM (#20772682)
That's not an issue in Java.
Re:Thoughts on Rust bloat by Macha on Thursday August 22, 2019 @08:05AM (#20767096)
That basically just moves the problem to a land grab for the group name. Because people don't think Alice/regex looks professional enough, there will be a rush for regex/regex.
Re:Thoughts on Rust bloat by apta on Thursday August 22, 2019 @08:19PM (#20773604)
You don't see that with Java/Maven.
Re:Thoughts on Rust bloat by Macha on Friday August 23, 2019 @11:23AM (#20778562)
Thats because it's based on domain names and the land grab has already occured prior to names being chosen