Collecting my attempts to improve at tech, art, and life

2020-04-28

Tags: hackers-town

Does any of this enlighten, entertain, or otherwise please you? Please consider a Tip. Every little bit helps!

I last updated this page

How many recent authors on CPAN?

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

Yanickwas concerned about the Perl CPAN.

His tweet:

Sweet meejus. Visiting CPAN these days feels like entering the gloomy, foreboding halls of Moria. :’-(

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

Code Sample
    $ 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.

Activity Log

hackers.town: 2020-04-28 Tue 01:47

at 1:30am they’re all good ideas

From Dotfiles to Org File

2020-04-28 From Dotfiles to Org File

hackers.town: 2020-04-28 Tue 08:56

I’m sure I need to be busy doing stuff but zoning out and staring at trees is pretty good too.

hackers.town: 2020-04-28 Tue 14:11

YAY A HAVE-TO-DO IS DONE

hackers.town: 2020-04-28 Tue 18:05

using Org Mode to configure Taskwarrior feels very much on brand for me

hackers.town: 2020-04-28 Tue 20:55

Somebody mentioned Steely Dan

#NowPlaying

Steely Dan — Can’t Buy a Thrill

https://album.link/i/1440496279

hackers.town: 2020-04-28 Tue 21:02

Instead of mapping the data to tables right away, I’m figuring out what questions I want to ask about the data first.

Getting a little smarter about schema design.

hackers.town: 2020-04-28 Tue 21:24

@genehack Oh nice! I was just pondering the advice advice while looking at hooks for Babel, and decided to skip the hook until I understood it better.

This helps!

hackers.town: 2020-04-28 Tue 21:49

Pretty obvious follow-up to Steely Dan if you ask me

#NowPlaying

Die Antwoord — Ten$ion

https://album.link/us/i/1240204028

hackers.town: 2020-04-28 Tue 22:20

birbsite latency making the fediverse look pretty good tonight

hackers.town: 2020-04-28 Tue 22:31

Got about a dozen topic threads I want to blog about, and it’s taken me most of the day to figure out the one with the fewest “new topic” dependencies.