News for hackers. Stuff that matters.
Re:Was Rust Worth It? by fawadasaurus on Wednesday October 25, 2023 @08:23PM (#38020094)
I did some analysis on crates.io to find the top name squatters. Then I did some calculations and found that the top name squatter created their crates at a rate of about one ever 30 seconds for a period of a week straight.

I send the analysis to the crates.io team and pointed that they have a no-automation policy.

They told me that it was not sufficient proof that someone was squatting those names. That's my problem with crates.io is that they have a clear policy and they don't enforce it so all the short/easy to remember names for crates are already taken and there is nothing you can do to get it.

Re:Was Rust Worth It? by echelon on Wednesday October 25, 2023 @08:25PM (#38020117)
There's a secret effort in the Rust community to supplant Crates.io and create an entirely new package ecosystem with proper namespacing, security, and much better community.

Not naming names, but I know several people working to put Crates.io out to pasture.

There's a level of playing nice with them for the time being (eg. build reproducibility), but it's only KTLO.

Crates.io needs to die for Rust to thrive. They're a bungled, mismanaged liability. New code, new leadership.

Re:Was Rust Worth It? by jeroenhd on Wednesday October 25, 2023 @08:29PM (#38020149)
Crates.io doesn't need to die necessarily. It needs some competition as a wake-up call.

Once a better alternative is out there, crates.io will either wither and die or improve. If it matches its competition in terms of quality and reliability, everyone is better off. If not, the alternative solution will take over.

I'm eager for this crates.io alternative to land, assuming they don't break too many projects in their improvements.

Re:Was Rust Worth It? by solardev on Wednesday October 25, 2023 @08:26PM (#38020126)
Why does something like that need to be secret...? Isn't it in the community's best interest?
Re:Was Rust Worth It? by TylerE on Wednesday October 25, 2023 @08:28PM (#38020140)
Drama avoidance and avoiding bikeshedding seem obvious. Much easier to present a working system than a design that will get nitpicked into irrelevancy.
Re:Was Rust Worth It? by solardev on Wednesday October 25, 2023 @08:48PM (#38020316)
Yeah, that makes sense.
Re:Was Rust Worth It? by sapling-ginger on Wednesday October 25, 2023 @09:47PM (#38020729)
That quite funny. Just like when some people formed a violent militant group to take down a violent tyranical dictatorship. Of course they would promise that they would absolutely de-arm right after the dictatorship has been overthrown, and immediately establish a peaceful democratic government with fair election. They absolutely would, would they? They would never turn into what they were formed to replace, would they?
Re:Was Rust Worth It? by Conscat on Wednesday October 25, 2023 @10:02PM (#38020816)
If one tyranny has namespaces and the other doesn't, I'll prefer the former.
Re:Was Rust Worth It? by wyldfire on Wednesday October 25, 2023 @11:47PM (#38021391)

    pub use std::sic::semper;
Re:Was Rust Worth It? by TylerE on Thursday October 26, 2023 @11:08AM (#38026589)

     const step_on_snek = false;
Re:Was Rust Worth It? by awesome_dude on Wednesday October 25, 2023 @08:33PM (#38020181)
How secret is it now that you've posted on HN about it?
Re:Was Rust Worth It? by fullarr on Wednesday October 25, 2023 @09:01PM (#38020422)
Wait I thought only I could read the secret
Re:Was Rust Worth It? by fsckboy on Wednesday October 25, 2023 @10:39PM (#38021063)
yes, HN hides secrets automatically

******* is my password, but you can't see it. Type your password back, and I won't be able to see it. Try it!

Re:Was Rust Worth It? by wyldfire on Wednesday October 25, 2023 @11:48PM (#38021395)
I'm not sure it's working the way you described:

hunter2

Re:Was Rust Worth It? by kaycey2022 on Thursday October 26, 2023 @12:52AM (#38021730)
It’s working. I really can’t see it. All I see is ****
Re:Was Rust Worth It? by overtomanu on Thursday October 26, 2023 @02:29AM (#38022376)
Maybe you are getting tricked to give out your password...
Re:Was Rust Worth It? by WJW on Thursday October 26, 2023 @04:46AM (#38023255)
Re:Was Rust Worth It? by 0xfedbee on Thursday October 26, 2023 @07:39AM (#38024245)
tr!pt0ph@n3
Re:Was Rust Worth It? by echelon on Wednesday October 25, 2023 @09:16PM (#38020550)
It's an open secret.
Re:Was Rust Worth It? by nindalf on Thursday October 26, 2023 @12:36AM (#38021639)
Hilarious.
Re:Was Rust Worth It? by epage on Wednesday October 25, 2023 @10:53PM (#38021139)
I find this interersting as most namespacing solutions would need the cargo team involved and I've heard nothing about this.
Re:Was Rust Worth It? by bluejekyll on Wednesday October 25, 2023 @11:57PM (#38021446)
This was my first thought too. And there are a lot of questions that will get asked, like, will all crate library names start being prefixed as well? So you end up with

use::bar; // changing to

use::foo::bar;

I assume the library names that can be overridden in cargo would still be accepted, and then it all gets a little messy. The transition would be very messy.

Re:Was Rust Worth It? by epage on Thursday October 26, 2023 @09:23AM (#38025183)
My preferred syntax route is a new separator in package names and the lib name gets populated by everything after it.

Still doesn't solve all of the policy problems with namespacing.

Re:Was Rust Worth It? by csomar on Thursday October 26, 2023 @02:10AM (#38022239)
crates.io is fine.
Re:Was Rust Worth It? by ogoffart on Thursday October 26, 2023 @12:52AM (#38021729)
> they have a no-automation policy

What's that? I have scripts that automate publishing of new release of my crates. And I think many projects have.

Re:Was Rust Worth It? by hobofan on Thursday October 26, 2023 @01:16AM (#38021867)
Of course that's permitted.

What they stated was only regarding claiming new ownership over crate names:

> Using an automated tool to claim ownership of a large number of package names is not permitted.

Re:Was Rust Worth It? by serial_dev on Thursday October 26, 2023 @03:12AM (#38022647)
Write some automated analysis that looks up popular packages on npm, pub.dev, rubygems, nuget. "Rustify" the package names. Add to it frequently used words, maybe popular names, etc. Then, write a script that creates an empty package, registers a name on crates.io every thirty seconds, and then you have about 20k package names after a week that nobody can use.
Re:Was Rust Worth It? by nindalf on Thursday October 26, 2023 @03:37AM (#38022831)
In July 2023 the crates.io team started asking for feedback around changing their policy around name squatting - https://rust-lang.zulipchat.com/#narrow/stream/318791-t-crat...
Re:Was Rust Worth It? by j1elo on Thursday October 26, 2023 @09:45AM (#38025444)
There's a HUGE gap between

> Using an automated tool to claim ownership of a large number of package names is not permitted.

And

- Hey, I found that someone created crates at a rate of about one every 30 seconds for a period of a week straight.

- That's not sufficient proof of squatting.

Whoever answered that, was either supporting the squatter or explicitly in favor of the practice. I cannot conceive that someone would get that evidence in their hands, and in their right mind think that the claim is bogus. Hell, I'd even be willing to suppress the squatter with evidence of one new crate created every 30 seconds for one hour!

The only reasonable conclusion to make is that they didn't really care. But then don't save face and claim that you do. That's hypocrisy.