Perl 6 - the future is here, just unevenly distributed

IRC log for #pr-challenge, 2015-01-18

| Channels | #pr-challenge index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:07 daveh joined #pr-challenge
00:10 daveh joined #pr-challenge
00:43 sue joined #pr-challenge
01:01 ohoushyar joined #pr-challenge
01:02 boreas joined #pr-challenge
01:29 cakirke joined #pr-challenge
01:40 ohoushyar joined #pr-challenge
02:35 pflanze Devel-StackTrace-WithLexicals does not seem to have any open issues left, from what I can see. Should probably be taken off the list (or a tick added).
02:51 boreas joined #pr-challenge
02:54 Su-Shee_ joined #pr-challenge
03:09 andy_j how does marking bugs as fixed in rt.cpan.org work with the PRC?
03:09 andy_j or at least pointing out that they are
03:15 boreas joined #pr-challenge
04:22 BRAD joined #pr-challenge
04:27 haarg link the rt ticket in the PR.  the author will have to close it.
05:56 boreas joined #pr-challenge
06:35 boreas joined #pr-challenge
07:28 ohoushyar joined #pr-challenge
07:40 ohoushyar joined #pr-challenge
07:45 itcharlie joined #pr-challenge
08:24 boreas joined #pr-challenge
08:28 ohoushyar joined #pr-challenge
08:58 neilb joined #pr-challenge
09:33 lbrown joined #pr-challenge
10:13 boreas joined #pr-challenge
10:26 mje_ joined #pr-challenge
10:37 boreas joined #pr-challenge
10:44 neilb joined #pr-challenge
11:02 jluis_ joined #pr-challenge
11:02 mje_ neilb, great idea and thanks, just got me first pull request
11:03 neilb cool
11:09 popl We should start referring to it as the PRC.
11:09 popl I wonder if we can get a Narus or two to take notice.
11:39 manito joined #pr-challenge
11:46 manito two blows in two days.. now i know (assume?) the first article by chromatic was not meant to be a "it is perl's fault" (can be read like that though). but either way, both articles make you think about perl's future, no?
11:47 ribasushi manito: where?
11:47 ribasushi manito: i.e. which 2 blows are you referring to
11:47 manito https://news.ycombinator.com/item?id=8903378 and https://news.ycombinator.com/item?id=8906331
11:47 manito sorry :)
11:49 ribasushi manito: both are rather old though, that someone (same person, or two different people) are reposting the stuff now is... shrug
11:49 ribasushi manito: I suspect it has to do with the FOSDEM presentation coming up
11:51 manito good point. didn't check the dates.
11:52 Su-Shee also, there's always the question what "win" exactly is supposed to mean. there's breadth of usage and there's depth of influence. one does help counting the jobs available. ;)
11:53 jkg I don't spend a great deal of time thinking about perl's future. or at least, I try very hard not to.
11:54 manito me personally, i don't care (that much) either. i use perl because it's fun. not because it's my career.
11:54 Su-Shee I just code in whatever I like anyways and ignore the rest for the most part. but I do am very interested in the whole perception/success/fame/influence problem.
11:55 manito but it makes you think. what if your fun hobby can also be used to build a career. wouldn't it be better to have fun with something which has a future?
11:55 * ribasushi looks with green envy at all these weird people who program for fun
11:56 Su-Shee ribasushi: you program for volk and vaterland? ;)
11:56 ribasushi sort of yes, I certainly do not enjoy it in the "makes me feel good" sense
11:56 Su-Shee I program for money and "I want to have this thing" :)
11:57 Su-Shee ribasushi: open source as a political duty.. yes, I do that too.
11:57 Su-Shee "somebody has to."
11:59 manito i program for the glory of robonia. ;-)
12:25 cakirke joined #pr-challenge
12:40 boreas joined #pr-challenge
13:11 boreas joined #pr-challenge
14:05 sue joined #pr-challenge
14:28 manito joined #pr-challenge
14:29 StylusEater joined #pr-challenge
14:35 daveh joined #pr-challenge
14:38 daveh joined #pr-challenge
14:42 daveh joined #pr-challenge
14:44 daveh joined #pr-challenge
14:47 daveh joined #pr-challenge
14:54 daveh joined #pr-challenge
14:56 boreas joined #pr-challenge
15:11 daveh joined #pr-challenge
15:17 upasana Hi everyon!
15:18 daveh joined #pr-challenge
15:22 * jrhunt waves
15:23 daveh joined #pr-challenge
15:25 upasana I asked this question on #perl-help around 40 min ago, but no response yet, so I thought that I should ask here
15:25 upasana <upasana> I am porting some test cases (of IO::Socket::SSL) to Test::More, but I am getting some errors (in the second file), I searched for it but didn't get the reason of the failure : https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a
15:25 upasana <upasana> Can someone please help me with it?
15:25 upasana <upasana> and I am talking about these errors : https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a#file-gistfile1-txt-L56
15:26 jrhunt does the test involve forking?
15:26 jrhunt aha, it does
15:26 jrhunt my guess is the forked process is also printing out test results
15:27 jrhunt and since it has its own copy of the variable containing the current test number, it's incrementing it in parallel with the main process
15:27 jrhunt yeah, line 106 seems to be the culprit
15:28 jrhunt https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a#file-core-t-L106
15:28 haarg the non-Test::More code doesn't output test numbers, so it doesn't have this problem
15:28 jrhunt right
15:28 upasana Yep
15:28 haarg and the total tests is kept track of manually rather than calculated
15:28 upasana so how to get rid of it?
15:29 jrhunt you'll have to move the ok() call out of verify_sub somehow
15:29 jrhunt which will be ... tricky
15:29 jrhunt since you'll need a way to communicate from child proc to parent
15:30 jrhunt may be why the original author did it via manual print statements
15:31 haarg Test::More->builder->use_numbers(0);
15:31 upasana Original author suggested me to port core.t to Test::More
15:31 upasana Let me check that
15:31 haarg and use an explicit plan instead of relying on done_testing
15:32 jrhunt haarg, that's nifty
15:32 boreas joined #pr-challenge
15:32 upasana Alright, any pointers on how to use an explicit plan?
15:33 tinypig joined #pr-challenge
15:33 haarg use Test::More tests => $numtests
15:34 upasana Alright, I will read more! Thanks so much! :)
15:34 haarg or alternately plan tests => $numtests
15:34 haarg so you don't need to calculate the number of tests during compile
15:37 daveh joined #pr-challenge
15:52 boreas joined #pr-challenge
15:53 daveh joined #pr-challenge
15:56 dolmen joined #pr-challenge
15:56 daveh joined #pr-challenge
16:05 mje_ joined #pr-challenge
16:05 daveh joined #pr-challenge
16:11 daveh joined #pr-challenge
16:25 daveh haarg: reason for not using done_testing?
16:25 haarg done_testing calculates the number of tests based on how many you ran
16:26 haarg if you are running tests in a fork, it can't keep track of that properly
16:27 haarg there are other approaches that could be used to fix that test, but the easy one is to make it work more like the old version
16:27 haarg which means having an explicit plan and not outputting test numbers.
16:28 daveh I never run tests in a fork :)
16:29 haarg i was explicitly talking about upasana's problem
16:29 daveh ok
16:29 daveh i only scrolled back a bit
16:30 daveh ok, all the way now
16:30 daveh fun, fun
16:31 haarg i always use done_testing rather than an explicit plan, unless i'm going for very low deps and can't rely on it
16:31 neilb joined #pr-challenge
16:31 daveh yes.
16:31 daveh my question is, why does IO::Socket::SSL fork? is that *really* necessary?
16:32 haarg that's the way the test is written
16:33 daveh doesn't make it right
16:33 haarg doesn't make it wrong either
16:33 reneeb joined #pr-challenge
16:33 daveh it appears to be causing breakage that isn't code
16:33 daveh ok, it installed cleanly for me
16:34 daveh seems to be decent on cpantesters too
16:35 haarg yes.  but a naive conversion to Test::More will break things.
16:35 boreas joined #pr-challenge
16:35 haarg because Test::More makes different assumptions than the test routines it is already using.
16:35 daveh indeed
16:36 daveh is it forking or threading?
16:36 haarg forking
16:36 daveh i can't see a fork() in t/
16:38 jrhunt daveh: https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a#file-core-t-L77
16:39 daveh shit, lots of forking in t/
16:40 daveh ah, ok, I see why it's forking
16:40 upasana haarg, jrhunt that didn't work! Here is the updated gist https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a
16:40 daveh which is as it should be
16:41 upasana I don't know from where does done_testing gets the expected number of tests!
16:41 jrhunt don't use done_testing for this
16:42 jrhunt you already told Test::More what your plan() was
16:42 upasana it doesn't work that way either
16:42 upasana It says : # Looks like you planned 3 tests but ran 2.
16:42 upasana
16:43 upasana without done_testing
16:43 jrhunt also, you've still got some `if ($fail) print "not "` lines that will need to be cleaned up
16:44 upasana jrhunt: could you please tell the line number?
16:44 daveh nite from a land of the rising sun!
16:44 upasana I can't find any $fail in that file
16:45 jrhunt i wasn't being literal :)
16:45 jrhunt https://gist.github.com/Sweet-kid/8e9f8d9f7905977c0e9a#file-core-t-L81
16:45 jrhunt for example
16:45 haarg upasana: replace 'use Test::More tests => 3;' with just 'use Test::More;'
16:46 haarg and add 'plan tests => $numtests;' after line 24
16:46 upasana jrhunt: but that is not affecting the tests, afaik
16:46 upasana but I can comment it!
16:46 jrhunt if you do what haarg suggests, don't forget to uncomment all the ok() calls you have commented out
16:46 upasana or just change the numtests value
16:47 jrhunt that too
16:47 jrhunt in gistfile1.txt, is that output from `prove t/core.t` or `perl t/core.t`
16:47 jrhunt ?
16:48 sue_ joined #pr-challenge
16:48 upasana jrhunt: prove
16:49 upasana When I do my $numtests = 2; plan tests => $numtests; then it says : # Looks like you planned 3 tests but ran 2.
16:50 upasana And when I do change numtests to 3, then it says :   Parse errors: Bad plan.  You planned 2 tests but ran 3.
16:50 manito joined #pr-challenge
16:50 pink_mist 0_o
16:51 thrig there's not a source filter or something ... ?
16:51 upasana Sorry, but are you talking to me?
16:58 upasana it works fine with `perl t/core.t`
16:59 upasana no, same error
17:09 ilbot2 joined #pr-challenge
17:09 Topic for #pr-challenge is now 'pr-challenge CPAN PR Challenge: https://github.com/CPAN-PRC/resources | public logs at http://irclog.perlgeek.de/pr-challenge/today | January assignments: http://rawgit.com/CPAN-PRC/resources/master/january.html'
17:24 boreas joined #pr-challenge
17:24 floyd joined #pr-challenge
17:25 manchicken joined #pr-challenge
17:28 ether joined #pr-challenge
17:39 kanashiro joined #pr-challenge
17:40 mvuets joined #pr-challenge
18:08 upasana yay!
18:08 upasana It is working now
18:08 upasana I did this Test::More->builder->no_ending(1);
18:08 upasana
18:09 upasana Credits : http://www.perlmonks.org/?node_id=469077
18:26 floyd joined #pr-challenge
18:47 punter joined #pr-challenge
18:59 reneeb_ joined #pr-challenge
19:10 ilbot2 joined #pr-challenge
19:10 Topic for #pr-challenge is now 'pr-challenge CPAN PR Challenge: https://github.com/CPAN-PRC/resources | public logs at http://irclog.perlgeek.de/pr-challenge/today | January assignments: http://rawgit.com/CPAN-PRC/resources/master/january.html'
19:11 ether joined #pr-challenge
19:16 choroba joined #pr-challenge
19:20 manito joined #pr-challenge
19:28 boreas joined #pr-challenge
19:56 LLamaRider joined #pr-challenge
20:38 neilb joined #pr-challenge
21:05 cakirke joined #pr-challenge
21:17 boreas joined #pr-challenge
21:23 punter joined #pr-challenge
22:04 veryrusty joined #pr-challenge
22:23 jevin joined #pr-challenge
22:27 manchicken joined #pr-challenge
22:28 pjcj joined #pr-challenge
22:34 vroom joined #pr-challenge
22:58 boreas joined #pr-challenge
23:13 boreas joined #pr-challenge
23:16 jevin joined #pr-challenge
23:20 manchicken joined #pr-challenge
23:21 G_SabinoMullane joined #pr-challenge
23:28 neilb_ joined #pr-challenge
23:37 boreas joined #pr-challenge
23:57 ether neilb: you mentioned PAUSE ID "MOHAWK" in your blog post about deprecations, but no such id exists.
23:57 ether he is mohawk on github though
23:58 neilb ah, he doesn’t have a PAUSE id?

| Channels | #pr-challenge index | Today | | Search | Google Search | Plain-Text | summary