News for hackers. Stuff that matters.
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.