Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PackageRank from lib.rs #986

Open
gbaz opened this issue Oct 24, 2021 · 2 comments
Open

Implement PackageRank from lib.rs #986

gbaz opened this issue Oct 24, 2021 · 2 comments

Comments

@gbaz
Copy link
Contributor

gbaz commented Oct 24, 2021

A very impressive amount of research and thought here: https://github.com/rust-lang/rfcs/blob/master/text/1824-crates.io-default-ranking.md

It would be useful to add this as an explicit metric to sort by. 🤔

@Bodigrim
Copy link
Contributor

It seems lib.rs essentially orders by number of recent downloads, or am I missing something? It should be straightforward to add alongside with existing total downloads.

@gbaz
Copy link
Contributor Author

gbaz commented Jan 11, 2022

Crates.io orders by recent downloads, which we have (though inaccurate because of cdn and can do). I should have really linked this, which explains lib.rs uses a much more sophisticated algorithm: https://lib.rs/about

When I made this ticket, I was under the misapprehension the crates ticket somehow contained this algo, but I don't think it does (just related research). The ranking itself can be figured out from the code here: https://gitlab.com/crates.rs/crates.rs/-/blob/main/ranking/src/lib_ranking.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants