I posted How many recent authors on CPAN? on Tuesday, 28 April, 2020

Note perl gist

How many recent authors on CPAN?

Sorry, I couldn’t fit this in a tweet.

Yanick's concerned about CPAN.

So I grabbed the authors of the last 5,000 releases and counted authors, using Mojolicious and the MetaCPAN API.

$ export MCP_LATEST='https://fastapi.metacpan.org/v1/release/_search?q=status:latest&fields=author&sort=date:desc&size=5000'
$ http $MCP_LATEST > _search.json
$ perl -Mojo -E 'say c(j(f("_search.json")->slurp)->{hits}{hits}->@*)->map( sub { $_->{fields}->{author} } )->uniq->size . " authors made the last 5000 releases"'
974 authors made the last 5000 releases

Downloaded the file with httPie because I felt bad hammering MetaCPAN with -Mojo g() while sorting out the rest of the :v:one-liner:v:.

I have no idea if these results are good or bad, but I half-expected less than 100 authors.

Getting useful information like spread of release dates is left as an exercise for the reader.

Social

Got a comment? A question? More of a comment than a question? Talk to me about this note!

Indieweb Social

Did you mention this somewhere? I'd love it if you sent me the link!

disclaimer about timing

Mentions are sent to webmention.io. I fetch the latest mentions when building the site, so I may not see your feedback right away. Especially if my site's broken, which is often the case.

Public replies and mentions might be shared on the site, but I try to do a little quality check first.

Site Links