Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-01-23

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
02:33 klapperl_ joined #metacpan
03:43 mtj joined #metacpan
04:39 Khisanth joined #metacpan
05:23 metacpan joined #metacpan
05:23 metacpan [metacpan-web01] monken pushed 1 new commit to mo/bootstrap: http://git.io/UwxFzg
05:23 metacpan metacpan-web/mo/bootstrap 32fdcb0 Moritz Onken: fix test
05:23 metacpan left #metacpan
05:23 dipsy [ fix test · 32fdcb0 · CPAN-API/metacpan-web · GitHub ]
05:31 metacpan joined #metacpan
05:31 metacpan [metacpan-web01] monken pushed 1 new commit to mo/bootstrap: http://git.io/JW-sRw
05:31 metacpan metacpan-web/mo/bootstrap 8c51363 Moritz Onken: fix test
05:31 metacpan left #metacpan
05:31 dipsy [ fix test · 8c51363 · CPAN-API/metacpan-web · GitHub ]
06:32 [Sno] joined #metacpan
06:59 jayallen joined #metacpan
07:32 dpetrov_ joined #metacpan
09:15 dolmen left #metacpan
09:21 kentnl_ joined #metacpan
10:30 jayallen joined #metacpan
10:53 jayallen joined #metacpan
12:44 brilo joined #metacpan
12:45 brilo given the name of a distribution what is the best way to get the name of the main module it provides? ie the main module for libwww-perl is LWP, how do i get this name through the API?
12:47 brilo asking for the latest release say libwww-perl-6.05 will give you back data that contains a 'provides' array, but its just an array and don't see any rules anywhere that say the first element in that array is actually the main module for the distributution
13:12 brilo joined #metacpan
13:31 mo_ brilo: the only way is heuristics
13:32 mo_ possible way would be: look for $dist =~ s/-/::/g
13:32 mo_ if that doesn't exist, pick the shortest module name the dist provides
13:32 mo_ will probably cover 99% percent of dists
13:38 mo left #metacpan
13:38 mo joined #metacpan
13:47 rwstauner brilo: the api doesn't have a "main module" because technically there's no such thing... it's just a guess.  long ago i suggested that the api have a "main module" b/c a lot of things want to use it, but it's still just a guess
14:04 neilb joined #metacpan
15:34 brilo joined #metacpan
16:40 bobtfish joined #metacpan
17:13 neilb joined #metacpan
17:39 neilb joined #metacpan
18:20 ether if there is a desire for a 'main module' to be formalized, the place to do it is in the meta spec (CPAN::Meta::Spec) -- now's a good time to get requests/suggestions in, as the metaspec is likely to be on the agenda for the next hackathon in Lyon, in March
18:22 ether I think it's a good idea, FWIW - it will definitely help metacpan know what module name to list on top or give other prominence to
18:22 ether although the current metacpan heuristic can be improved, too
18:23 ether e.g. look at https://metacpan.org/release/Moose -- since there's a module that matches the dist name, it might be reasonable to assume that's the module that contains the most introductory documentation, and list that on top
18:23 dipsy [ Moose-2.1202 - A postmodern object system for Perl 5 - metacpan.org - Perl programming language ]
18:23 ether but right now, all modules are simply listed alphabetically
18:26 neilb joined #metacpan
18:30 rwstauner https://github.com/CPAN-API/cpan-api/issues/149
18:30 dipsy [ Attempt to determine "main module" for a release · Issue #149 · CPAN-API/cpan-api · GitHub ]
18:32 leont I think it's not a good idea, actually
18:33 rwstauner it's probably not, but lots of things seem to want it
18:45 ether the dist-module relationship is very loose right now, to the point of being undefined, but a lot of things try to make assumptions
18:45 ether e.g. RT and its assignment of queue ownership based on PAUSE permissions on modules
18:45 ether so, perhaps having a formal $dist->main_module definition might help -- in RT's case, it can assign queue ownership according to the PAUSE permissions on the main module
19:00 neilb joined #metacpan
19:28 neilb joined #metacpan
19:57 neilb joined #metacpan
21:34 bowtie_ joined #metacpan
22:28 AirDisa joined #metacpan
22:51 brilo joined #metacpan
22:52 hanekomu joined #metacpan

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary