[Nix-dev] Flattening pkgs tree in nixpkgs/pkgs
Mathnerd314
mathnerd314.gph at gmail.com
Fri Jan 8 04:24:26 CET 2016
On Thu, Jan 7, 2016 at 6:56 PM, Tomasz Czyż <tomasz.czyz at gmail.com> wrote:
>
>
> 2016-01-08 1:28 GMT+00:00 Mathnerd314 <mathnerd314.gph at gmail.com>:
>
>> Hosting seems like a good index but there might be something else (month
>> project was founded?).
>>
> wow :-) Maybe first letter?
>
Yeah, I guess alphabetical is OK. But clicking on single letters is
s-l-o-w. So 2-letter prefixes.
1000 websites, 676 2-letter prefixes, and 1000 packages for each prefix,
runs to 676000000 packages.
npm is the largest package repo currently, with 223942 packages and growth
of 335/day; so we'd run out of space in ~4 years and have to move to 3
levels.
On the other hand, most of their packages are garbage like "Peter is
awesome": https://github.com/peterdemartini/peter/blob/master/index.js; I
don't think it's worth packaging any significant fraction of npm for nix.
So the scheme (host/pa/package) seems reasonable.
The other reason I like using hosting as the first level is that it makes
writing update-crawlers easier.
-- Mathnerd314
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160107/253df049/attachment.html
More information about the nix-dev
mailing list