Camelia, the Perl 6 bug

IRC log for #metacpan, 2013-07-08

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

All times shown according to UTC.

Time Nick Message
00:58 clintongormley joined #metacpan
02:14 oalders dsteinbrunner: https://github.com/CPAN-API/metacpan-examples is a good starting point
02:14 dipsy [ CPAN-API/metacpan-examples · GitHub ]
02:15 oalders let us know if there's still a particular query you're having issues with
02:55 gshank joined #metacpan
03:58 preflex_ joined #metacpan
04:17 jayallen joined #metacpan
06:06 ether joined #metacpan
06:13 shmuel joined #metacpan
06:15 shmuel Hi. I'm doing an API request to get the list of files inside a release
06:15 shmuel and it is quite slow. surely there is a faster way to get this info?
06:16 shmuel I'm posting to /v0/file
06:17 shmuel with filter including release, author and mime='text/x-script.perl-module'
06:18 dpetrov_ joined #metacpan
06:26 shmuel pinging mo and rwstauner
06:27 shmuel query slow =~ 1.67 seconds per call. I'd expect it to be fast, as the release information is supplied
07:52 dolmen joined #metacpan
07:56 shmuel still need help...
07:59 dpetrov_ shmuel: what's the issue
07:59 shmuel I asked it seconds before you arrived.
08:00 shmuel a slow request to /v0/file
08:00 shmuel with filter including release, author and mime='text/x-script.perl-module'
08:00 shmuel 1.67 seconds per call. I'd expect it to be fast, as the release information is supplied
08:01 shmuel is there a faster way to do it?
08:01 shmuel dpetrov_: this is the issue.
08:18 dpetrov_ hm
08:18 dpetrov_ probably someone who knows the internals better
08:18 dpetrov_ could help
08:25 shmuel can you recommend me who to ping?
08:26 ranguard shmuel: mo is best bet, but otherwise oalders or clinton (when he's around)
08:27 shmuel thanks. it seen that clinton isn't around right now
08:28 shmuel I'll try pinging them from time to time.
08:36 daxim joined #metacpan
08:53 dpetrov_ they'll response once they are arround I guess
08:53 dpetrov_ :)
08:54 ranguard shmuel: probably worth opening a ticket and then pointing people at that
08:55 shmuel where can I open a ticket? on github?
08:55 ranguard shmuel: https://github.com/CPAN-API/cpan-api/issues
08:55 dipsy [ Issues · CPAN-API/cpan-api · GitHub ]
08:55 shmuel wow. 97 open.
08:56 ranguard patches welcome :)
08:56 ranguard we need more developers
08:56 ranguard that said lots of them are ideas or minor issues, other things to investigate
08:56 ranguard some are major as well :)
08:57 daemon joined #metacpan
08:58 ranguard that and others just need closing (just found one like that)
09:02 shmuel https://github.com/CPAN-API/cpan-api/issues/275
09:02 dipsy [ search to /v0/file is slow, even with release information · Issue #275 · CPAN-API/cpan-api · GitHub ]
09:02 shmuel ranguard: I believe in having a very short bug list.
09:02 ranguard mo: ^^ any ideas?
09:04 ranguard shmuel: sure - great ideal - and we welcome help to achieve that :)
09:04 shmuel I always throw the feature requests to a todo file, either fix or reject all the small bugs
09:04 ranguard shmuel: mo has commented on your ticket
09:05 ranguard shmuel: https://github.com/CPAN-API/cpan-api/iss​ues?labels=bug&amp;page=1&amp;state=open <- only 5 bugs :)
09:05 dipsy [ Issues · CPAN-API/cpan-api · GitHub ]
09:05 shmuel i... see.
09:16 shmuel well, it is getting late over here. I hope to get some advice with that ticket, as the run time take too long.
09:17 shmuel fixing that query (or using better one) will speed it up considerably.
09:17 shmuel good night.
09:17 * ranguard nods
09:17 ranguard night
09:44 theory joined #metacpan
09:50 theory Quick Q: Someone got an update for http://blogs.perl.org/users/olaf_al​ders/2011/05/pgxn-vs-metacpan.html?
09:50 dipsy [ PGXN vs MetaCPAN | Olaf Alders [blogs.perl.org] ]
09:50 theory I'd like to list my distributions on a web page.
09:50 theory Or maybe my most recent 10 releases or something.
09:53 theory oalders maybe?
09:53 ranguard theory: you mean like a JS widget that calls the API?
09:54 theory ranguard: Yeah, using a a JSONP callback.
09:55 ranguard theory: I'm sure it's possible - please open ticket here: https://github.com/CPAN-AP​I/metacpan-examples/issues
09:55 dipsy [ Issues · CPAN-API/metacpan-examples · GitHub ]
09:57 theory ranguard: https://github.com/CPAN-API​/metacpan-examples/issues/3
09:57 dipsy [ Need New Example for Listing Distributions · Issue #3 · CPAN-API/metacpan-examples · GitHub ]
09:58 ranguard theory++
10:06 theory The first GET example shows the latest releases for oalders: http://api.metacpan.org/v0/release/_sea​rch?q=author:OALDERS%20AND%20status:lat​est&amp;fields=name,status&amp;size=100
10:06 dipsy urgh. long url. Try http://tinyurl.com/3z5bemg
10:06 theory Cannot figure out how to make something similar with /distribution/_search
10:10 ranguard theory: I'm afraid my ES is weak
10:10 theory ranguard: Mine is nonexistent.
10:10 theory I would like docs that fully document the API.
10:11 theory These docs seem to assume one knows ES well.
10:11 theory I would rather not care how the API is implemented.
10:14 ranguard theory: that's VERY much on the todo list
10:14 theory ranguard: Yeah. oalders said as much to me a couple years ago when I posted the PGXN docs.
10:16 ranguard theory: heh :)
10:16 theory HRM
10:16 theory http://api.metacpan.org/v0/release/_search?q=auth​or:DWHEELER%20AND%20status:latest&amp;fields=meta​data.name,metadata.abstract,status&amp;size=100
10:16 dipsy urgh. long url. Try http://tinyurl.com/lpxkf2t
10:16 theory That looks close, but those are *not* my latest releases.
10:16 ranguard the metacpan-examples is a start in that direction
10:19 theory adding sort=date:desc fixes it
10:22 theory Ah, this seems to be working now: http://jsfiddle.net/wundersolutions/kFvS4/29/
10:22 dipsy [ Edit this Fiddle - jsFiddle ]
10:28 ranguard sweet :)
10:28 ranguard oh, you can remove the 'beta.' link
10:55 clintongormley joined #metacpan
11:08 theory ranguard: yah, did in my code. Let me update.
11:08 theory https://github.com/CPAN-API/metacpan-e​xamples/issues/3#issuecomment-20597288
11:08 dipsy [ Need New Example for Listing Distributions · Issue #3 · CPAN-API/metacpan-examples · GitHub ]
11:09 theory hi clintongormley
12:05 ChinaXing joined #metacpan
14:36 rwstauner theory: the /distribution endpoint doesn't do that search at the moment.  it's a (likely unfinished) collection of version-independent metadata
14:37 theory rwstauner: So there is no way to get a list of distributions?
14:37 theory I expect the list of releases may have the same distro listed multiple times.
14:37 rwstauner right
14:37 rwstauner status:latest will help you with that
14:38 rwstauner but unfortunately there's a bit of an outstanding issue with that
14:38 rwstauner (as far as getting dists for an author that aren't "latest")
14:38 theory ah
14:38 * rwstauner is looking up the gh issue
14:39 rwstauner https://github.com/CPAN-AP​I/metacpan-web/issues/458
14:39 dipsy [ author page does not show releases superceded by newer releases of other authors · Issue #458 · CPAN-API/metacpan-web · GitHub ]
14:39 rwstauner the summary being that the query got way too large for some people
14:48 theory You guys ought to consider generating static files of common search results.
14:48 rwstauner considering hasn't been the problem :-)
15:36 rwstauner oalders++ HTML::TokeParser::Simple got updated
15:41 oalders rwstauner: was i involved with that? ;)
15:42 rwstauner i don't know, but you're the one who noticed there was a problem
15:42 rwstauner :-)
15:42 oalders ah, right
15:42 oalders :)
15:43 oalders i did some nagging in RT, i guess
17:38 jayallen joined #metacpan
18:05 dsteinbrunner_ joined #metacpan
20:20 kentnl_ joined #metacpan
21:39 bowtie_ joined #metacpan
22:19 clintongormley joined #metacpan

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