Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-dev, 2017-01-06

| Channels | #perl6-dev index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:14 [Coke] joined #perl6-dev
01:14 DrForr joined #perl6-dev
01:14 bartolin_ joined #perl6-dev
01:14 arnsholt_ joined #perl6-dev
01:14 sivoais joined #perl6-dev
01:14 jsimonet joined #perl6-dev
01:14 [Tux] joined #perl6-dev
01:14 sivoais joined #perl6-dev
01:14 ugexe joined #perl6-dev
01:25 zostay joined #perl6-dev
01:44 SmokeMachine joined #perl6-dev
01:49 dalek rakudo/nom: b120ac4 | (Zoffix Znet)++ | / (3 files):
01:49 dalek rakudo/nom: Fix TAP::Harness choking on single backslashes in descriptions
01:49 dalek rakudo/nom:
01:49 dalek rakudo/nom: Currently, TAP::Harness assumes backslashes in test descriptions will always be
01:49 dalek rakudo/nom: either doubled, or followed by '#'. Since backslashing every slash produces
01:49 dalek rakudo/nom: altered descriptions, we made Test.pm6 only backslash '#' in descriptions[^1],
01:49 dalek rakudo/nom: but that broke the harness's expectations.
01:49 dalek rakudo/nom:
01:49 dalek rakudo/nom: Fix by changing the grammar for description token to accept single slashes too.
01:49 dalek rakudo/nom:
01:49 dalek rakudo/nom: Neither v12[^2], v13[^3], or v14 draft [^4] versions of TAP spec say
01:49 dalek rakudo/nom: anything about backslashes or whether they can escape '#' in test
01:50 notviki rakudo/nom: descriptions to prevent it from specifying a TAP directive. So the
01:50 notviki rakudo/nom: correctitude of this commit's behaviour is based on what Perl 5's is doing.
01:50 notviki rakudo/nom:
01:50 notviki rakudo/nom: P.S.: I couldn't figure out how to make TAP::Harness keep quiet and not produce
01:50 notviki rakudo/nom: any output, hence such a weird test included in this work.
01:50 notviki rakudo/nom:
01:50 notviki rakudo/nom: [1] https://github.com/rakudo/rakudo/commit/b183cabf41b5c42cce04f68743180386782ee78
01:50 notviki rakudo/nom: [2] https://testanything.org/tap-specification.html
01:50 notviki rakudo/nom: [3] https://testanything.org/tap-version-13-specification.html
01:50 notviki rakudo/nom: [4] https://github.com/TestAnything/testanything.github.io/pull/36
01:50 notviki rakudo/nom: review: https://github.com/rakudo/rakudo/commit/b120ac401a0795f5f4c5fcd6e775848b4b755508
01:50 diakopter lolwut
01:51 notviki ?
01:51 notviki diakopter: what?
01:51 notviki .tell ugexe TAP::Harness fixed in https://github.com/rakudo/ra​kudo/commit/b120ac401a0795f Unless it's already done, can you tak on :auth<perl> on use TAP to ensure if someone installs TAP::Harness from ecosystem, it doesn't get loaded instead (or whatever method there is to assure that)
01:51 yoleaux2 notviki: I'll pass your message to ugexe.
01:54 notviki :\
01:55 notviki diakopter: what it is? ... Can I go to bed or what.. :)
02:04 notviki :(
02:05 notviki Man, why would do that? Make someone wonder what your "lolwut" is about.
02:06 * notviki goes to bed :/
02:24 samcv night!
02:48 ilbot3 joined #perl6-dev
02:48 Topic for #perl6-dev is now Perl 6 language and compiler development 2.0 | Logs at http://irclog.perlgeek.de/perl6-dev/today
03:18 dalek joined #perl6-dev
03:37 dalek roast: 10b16a5 | samcv++ | S15-nfg/emoji-test (2 files):
03:37 dalek roast: Reduce the number of Emoji tests to only ones containing single codepoints
03:37 dalek roast: review: https://github.com/perl6/roast/commit/10b16a5b7f
04:13 statisfiable6 joined #perl6-dev
04:49 MasterDuke m: say "abc123def" ~~ /(\w+)\d+\1۳/
04:49 camelia rakudo-moar b120ac: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 1779␤»
04:50 MasterDuke m: say "abc123def" ~~ /(\w+)\d+\۳/
04:50 camelia rakudo-moar b120ac: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unrecognized backslash sequence: '\۳'␤at <tmp>:1␤------> say "abc123def" ~~ /(\w+)\d+\⏏۳/␤    expecting any of:␤        infix stopper␤        term␤»
04:51 MasterDuke m: say "abc123def" ~~ /(\w+)\d+\3/
04:51 camelia rakudo-moar b120ac: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unrecognized backslash sequence (did you mean $2?)␤at <tmp>:1␤------> say "abc123def" ~~ /(\w+)\d+\3⏏/␤»
04:52 samcv it would make more sense if that error suggested to use $3 i think. cause i would hope they already know they have to start from $0 or something
04:53 samcv but that's just my opinion
04:56 MasterDuke it's because \1 in Perl 5 is $0 in Perl 6
04:56 committable6 joined #perl6-dev
04:56 samcv yeah i know
04:57 samcv also what are you testing with that escape. that's a number right
04:57 samcv m: '۳'.unival.say
04:57 camelia rakudo-moar b120ac: OUTPUT«3␤»
04:57 samcv yeah
04:57 samcv i recognize it
04:57 samcv u: ۳
04:57 unicodable6 samcv, U+06F3 EXTENDED ARABIC-INDIC DIGIT THREE [Nd] (۳)
04:57 samcv u: extended arabic-indic digit
04:57 unicodable6 samcv, U+06F0 EXTENDED ARABIC-INDIC DIGIT ZERO [Nd] (۰)
04:57 unicodable6 samcv, U+06F2 EXTENDED ARABIC-INDIC DIGIT TWO [Nd] (۲)
04:57 unicodable6 samcv, U+06F1 EXTENDED ARABIC-INDIC DIGIT ONE [Nd] (۱)
04:57 unicodable6 samcv, https://gist.github.com/638d0d40195e76fb56f52d6a4b637ab0
04:58 MasterDuke yeah, i'm wondering if we should catch those and provide the same error message
04:58 samcv hm
04:59 ugexe m: require TAP:auth<xxx>; # notviki: doesn't work properly for `require` (which is used vs use because TAP.pm wasn't always included with rakudo)
04:59 yoleaux2 01:51Z <notviki> ugexe: TAP::Harness fixed in https://github.com/rakudo/ra​kudo/commit/b120ac401a0795f Unless it's already done, can you tak on :auth<perl> on use TAP to ensure if someone installs TAP::Harness from ecosystem, it doesn't get loaded instead (or whatever method there is to assure that)
04:59 camelia rakudo-moar b120ac: ( no output )
05:00 samcv ugexe, when was it not?
05:02 ugexe before may
05:03 samcv ugexe, can't we just try to require that one, and if the user doesn't have it just load anything?
05:03 ugexe i just demonstrated why that cant be done
05:04 samcv ah
05:05 samcv m: use TAP:auth<xxx>
05:05 camelia rakudo-moar b120ac: OUTPUT«===SORRY!===␤Could not find TAP:auth<xxx> at line 1 in:␤    /home/camelia/.perl6␤    /home/camelia/rakudo-m-inst-2/share/perl6/site␤    /home/camelia/rakudo-m-inst-2/share/perl6/vendor␤    /home/camelia/rakudo-m-inst-2/share/perl6␤    CompUnit:…»
05:05 samcv and we can't do use either?
05:05 samcv oh well
05:05 ugexe that would cause a compile time error on install
05:05 samcv yeah
05:05 samcv exactly :\
05:08 statisfiable6 joined #perl6-dev
05:10 MasterDuke .ask jnthn if you don't mind taking a look at https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13865466, do you have an opinion? should we give the same error and suggestion for all Nd's as for [1..9]?
05:10 yoleaux2 MasterDuke: I'll pass your message to jnthn.
05:10 MasterDuke .ask notviki if you don't mind taking a look at https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13865466, do you have an opinion? should we give the same error and suggestion for all Nd's as for [1..9]?
05:10 yoleaux2 MasterDuke: I'll pass your message to notviki.
05:10 MasterDuke .ask lizmat if you don't mind taking a look at https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13865466, do you have an opinion? should we give the same error and suggestion for all Nd's as for [1..9]?
05:10 yoleaux2 MasterDuke: I'll pass your message to lizmat.
05:11 MasterDuke it's an easy fix, just not sure if it's worth it
05:16 AlexDaniel I don't see any reason why not
05:17 AlexDaniel ah wait, I thought it is a different question
05:17 AlexDaniel nvm
05:18 samcv ha
05:19 MasterDuke that question is open to anybody
05:22 samcv yeah MasterDuke i don't see a problem adding it tbh
05:22 samcv though i don't feel compelled that we should allow it, since it's basically supposed to correct behavior the user may try
05:42 MasterDuke m: if "abc123def" ~~ /(.)+/ { say ${۳} }
05:42 camelia rakudo-moar b120ac: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 1779␤»
05:43 MasterDuke m: if "abc123def" ~~ /(.)+/ { say ${3} }
05:43 camelia rakudo-moar b120ac: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unsupported use of ${3}; in Perl 6 please use $2␤at <tmp>:1␤------> if "abc123def" ~~ /(.)+/ { say ${3}⏏ }␤»
05:44 MasterDuke that one's a pretty trivial fix, won't have quite the same cost as the other
05:49 samcv yeah that might be cool. would it make it slower though?
05:49 samcv you have to check unival for it right?
05:49 samcv what nqp calls are used for checking the values for things like integers and such
05:50 MasterDuke that one should not be as slow as the first
05:51 MasterDuke it's essentially changing $foo - 1 into nqp::radix(10, $foo, 0, 0)[0] - 1
05:51 samcv ah kk
05:52 samcv m: say 'atat' ~~ /(.)a$1/
05:52 camelia rakudo-moar b120ac: OUTPUT«Nil␤»
05:52 samcv m: say 'atat' ~~ /(.)a$0/
05:52 camelia rakudo-moar b120ac: OUTPUT«「tat」␤ 0 => 「t」␤»
05:52 samcv just think it's odd there's no warning using that, but it gives you an off by one suggestion on the other
05:52 samcv maybe say, in Perl 6 please use $2 for the third capture or something idk
05:54 committable6 joined #perl6-dev
05:58 MasterDuke well, that'd be harder to do, you'd have to count the number of captures that have been done and see if it's less than the number you used
05:58 samcv yeah exactly
05:58 committable6 joined #perl6-dev
05:58 MasterDuke probably not impossible, but the error message above just subtracts 1, much easier
05:58 samcv m: say 'abc' ~~ /(.)\0/
05:58 camelia rakudo-moar b120ac: OUTPUT«Nil␤»
05:59 samcv ok so \0 is null. but the other ones error
05:59 MasterDuke yeah, right now it matches <[1..9]>\d*
05:59 samcv first second third fourth fifth sixth seventh eighth night tenth
05:59 samcv m: say "\0" ~~ /\0/
05:59 camelia rakudo-moar b120ac: OUTPUT«「␀」␤»
06:51 RabidGravy joined #perl6-dev
07:51 [Tux] This is Rakudo version 2016.12-226-gb120ac401 built on MoarVM version 2016.12-68-g1994c6ee
07:51 [Tux] csv-ip5xs        3.162
07:51 [Tux] test            13.790
07:51 [Tux] test-t           5.411
07:51 [Tux] csv-parser      14.403
07:54 samcv [Tux], do you have this stuff graphed?
07:54 [Tux] yes: http://tux.nl/Talks/CSV6/speed4.html
07:54 [Tux] timing log link on that pages will give you the csv data
07:55 [Tux] (of the timing stats)
07:56 samcv also what's test-t
07:56 [Tux] one of the first drafts of the CSV parser, no features
07:57 [Tux] sorry, the other way round: test is a first version, test-t is the thing to watch: that is the current state of Text::CSV
07:57 [Tux] I just look at the value of test-t
07:58 * [Tux] starts writing a README
08:00 samcv your page is not up2date
08:00 samcv you say IT preferences KDE 4 but then say you use plasma 5
08:00 samcv on another page
08:00 samcv also do you still use Opera?
08:00 [Tux] KDE: will fix, Opera: yes
08:01 samcv is that for linux?
08:01 [Tux] yes
08:07 [Tux] samv, does https://github.com/Tux/CSV/blob/master/README.speed help?
08:10 samcv thanks
08:10 [Tux] KDE/Plasma5 updates
08:10 [Tux] KDE/Plasma5 updated
08:11 [Tux] regarding Opera, I still use Opera-12 on my laptop and Opera-developer (most recent version) on all my Linux desktops
08:13 samcv 12 uses presto?
08:13 [Tux] first fallback is Chromium, second fallback is Vivaldi, third fallback is Firefox, then come lwp-cat, w3m, links, lynx, epiphany, konqueror, ...
08:14 [Tux] 12 is old, but I am addicted to the key bindings
08:14 samcv ah
08:14 samcv do tell
08:15 [Tux] yes, presto. And I have HTTP::Proxy fully integrated in O-12, so that is shows all the pages I visit daily fully optimized (my prefered fonts, all navigation removed, etc etc)
08:18 [Tux] 'z' = Back, 'x' = Forward, 'a' = previous link, 's' = next link, 'q' = close tab, 'e' = link up, 'd' = link left, 'f' = link right, 'c' = link down, 'Z' = Rewind, '1' tab left, '2' tab right, '0' zoom 100%, 'i' toggle images on/off, F12/x is toggle proxy on/off
08:18 * [Tux] => $work. bbl
08:27 kybr joined #perl6-dev
08:34 btyler joined #perl6-dev
08:37 MasterDuke joined #perl6-dev
08:37 tbrowder joined #perl6-dev
08:37 ilmari joined #perl6-dev
08:37 mst joined #perl6-dev
08:37 nine joined #perl6-dev
08:37 camelia joined #perl6-dev
08:37 nebuchadnezzar joined #perl6-dev
08:37 b2gills joined #perl6-dev
08:37 stmuk joined #perl6-dev
08:37 Woodi joined #perl6-dev
08:37 UgJkA joined #perl6-dev
08:37 japhb joined #perl6-dev
08:37 go|dfish joined #perl6-dev
08:37 Hotkeys joined #perl6-dev
08:37 gfldex joined #perl6-dev
08:37 raydiak joined #perl6-dev
08:37 moritz joined #perl6-dev
08:37 JimmyZ joined #perl6-dev
08:37 jnthn joined #perl6-dev
08:44 sivoais joined #perl6-dev
08:47 dalek star/zef: f05619d | (Naoum Hankache)++ | docs/perl6intro.pdf:
08:47 dalek star/zef: Latest perl6intro.com snapshot
08:47 dalek star/zef: review: https://github.com/rakudo/star/commit/f05619d7f7
08:47 dalek star/zef: fc65a27 | lizmat++ | docs/perl6intro.pdf:
08:47 dalek star/zef: Merge pull request #84 from hankache/master
08:47 dalek star/zef:
08:47 dalek star/zef: Latest perl6intro.com snapshot
08:47 dalek star/zef: review: https://github.com/rakudo/star/commit/fc65a27a18
08:49 dalek rakudo/nom: 7a759d7 | lizmat++ | src/core/List.pm:
08:49 dalek rakudo/nom: Make sure that List.eager resets $!todo
08:49 dalek rakudo/nom:
08:49 dalek rakudo/nom: So generating an iterator after .eager will get you the cheap
08:49 dalek rakudo/nom: $!reified iterator, rather than first trying to reify again.
08:49 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/7a759d7d01
10:07 gfldex I would like to move Pod::To::BigPage on github to perl6. Any objections?
10:21 AlexDaniel joined #perl6-dev
10:27 dalek rakudo/nom: b6561ee | lizmat++ | src/core/ (8 files):
10:27 dalek rakudo/nom: Change := Mu to := nqp::null where possible
10:27 dalek rakudo/nom:
10:27 dalek rakudo/nom: Using a low-level construct is about 2x as fast as using the HLL Mu.
10:27 dalek rakudo/nom: Probably not noticeable, but every little bit helps.
10:27 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/b6561eeaf5
10:29 lizmat afk&
10:43 dalek nqp: 8aa67ad | jnthn++ | / (2 files):
10:43 dalek nqp: Kill off localref socpe.
10:43 dalek nqp:
10:43 dalek nqp: It wasn't being used by Rakudo nor NQP yet, and only the MoarVM
10:43 dalek nqp: backend implemented it at all. It's a problematic thing to have, since
10:43 dalek nqp: it breaks the expectation that you can compile `local` consistently
10:43 dalek nqp: into using storage that will never outlive the current call frame's
10:43 dalek nqp: dynamic scope. MoarVM not being able to make this assumption without
10:43 dalek nqp: bytecode analysis of a frame introduced unreasonable costs, and it
10:43 dalek nqp: would just be an annoying complication for all backend writers.
10:43 dalek nqp: review: https://github.com/perl6/nqp/commit/8aa67ad51b
10:50 Ven joined #perl6-dev
10:56 dalek nqp: e915b40 | samcv++ | tools/build/MOAR_REVISION:
10:56 dalek nqp: Bump MoarVM for Emoji related fixes
10:56 dalek nqp:
10:56 dalek nqp: Fixes our breakup into Graphemes and fixes the number of chars counted
10:56 dalek nqp: in a string for hundreds of Unicode Emoji.
10:56 dalek nqp:
10:56 dalek nqp: MoarVM: Don't break after ZWJ or for MALE SIGN and FEMALE SIGN
10:56 dalek nqp: https://github.com/MoarVM/MoarVM/commit/ebc4abc7ea
10:56 dalek nqp: review: https://github.com/perl6/nqp/commit/e915b4039b
10:57 dalek rakudo/nom: 823f0f7 | samcv++ | tools/build/NQP_REVISION:
10:57 dalek rakudo/nom: Bump NQP/MoarVM for Emoji related fixes
10:57 dalek rakudo/nom:
10:57 dalek rakudo/nom: Fixes our breakup into Graphemes and fixes the number of chars counted
10:57 dalek rakudo/nom: in a string for hundreds of Unicode Emoji.
10:57 dalek rakudo/nom:
10:57 dalek rakudo/nom: MoarVM: Don't break after ZWJ or for MALE SIGN and FEMALE SIGN
10:57 samcv \o/
10:57 dalek rakudo/nom: https://github.com/MoarVM/MoarVM/commit/ebc4abc7ea
10:57 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/823f0f7f6b
10:58 samcv gfldex, sounds like a plan
10:58 samcv err the commit description is semi unaccurate but whatever
10:58 samcv well mostly but forgot to be more specific about the ZWJ changes, oh well.
10:59 samcv it's actually Glue_after_ZWJ
11:06 notviki m: say "foo" ~~ /<.-[z]>+/
11:06 yoleaux2 05:10Z <MasterDuke> notviki: if you don't mind taking a look at https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13865466, do you have an opinion? should we give the same error and suggestion for all Nd's as for [1..9]?
11:06 camelia rakudo-moar b6561e: OUTPUT«「foo」␤»
11:06 notviki m: say "foo" ~~ /<-[z]>+/
11:06 camelia rakudo-moar b6561e: OUTPUT«「foo」␤»
11:06 notviki MasterDuke: character classes don't seem to be capturing anyway...
11:06 samcv ugh it keeps telling me my moar is too old when running Configure.pl for nqp
11:06 samcv but it is the same
11:07 samcv as what git describe for moar says. i guess make clean
11:07 jnthn samcv: Fixed with re-Configure in Moar
11:07 samcv yeah i did that tho
11:08 samcv prolly will be fixed with make clean
11:08 samcv nopey
11:08 samcv still not working
11:09 samcv thinks i 2016.12-71-g331a6b43 is too old, when the file says 2016.12-71-g331a6b43
11:09 samcv which is exactly the same
11:09 samcv the MOAR_REVISION file that is
11:10 notviki so diakopter never said why he lolwutted my commit? :/ how rude
11:11 samcv yep
11:11 samcv .ask diakopter why did you lol wut notviki’s commit???
11:11 yoleaux2 samcv: I'll pass your message to diakopter.
11:11 lizmat samcv: that's quite a few todo's passing now
11:12 samcv millions
11:12 samcv what command do i run to force it to update
11:12 samcv err not force but auto remove passing ones in that file
11:12 lizmat ah, auto remove...  hmmm... do we have that ?
11:12 samcv i used my super-fudger.p6 to fudge them in the 1st place cause uh
11:12 samcv i thought we did
11:12 samcv somebody said we did
11:13 notviki I said we did
11:13 lizmat then that somebody knows more than me  :)
11:13 jnthn I thought we had such a tool too :)
11:13 samcv nobody has time to fudge like 800 tests tho
11:13 jnthn auto unfudge or something
11:13 notviki I never used it, but I see we have ./tools/autounfudge.pl
11:13 samcv so at least super-fudger does it for any code that can be tested line by line
11:13 jnthn hehe ;)
11:14 lizmat hmmm...another tool in need of p6ification :-)
11:14 lizmat TIL  :-)
11:14 notviki m: BEGIN { if $*PERL.compiler.version after v2016.05 { use TAP:auth<perl>; } else { use TAP:auth<xxx>; }};
11:15 camelia rakudo-moar 823f0f: OUTPUT«===SORRY!===␤Could not find TAP:auth<xxx> at line 1 in:␤    /home/camelia/.perl6␤    /home/camelia/rakudo-m-inst-1/share/perl6/site␤    /home/camelia/rakudo-m-inst-1/share/perl6/vendor␤    /home/camelia/rakudo-m-inst-1/share/perl6␤    CompUnit:…»
11:15 notviki m: say $*PERL.compiler.version after v2016.05
11:15 camelia rakudo-moar 823f0f: OUTPUT«True␤»
11:16 notviki ugexe: well, that's kinda sucky, because as gfldex pointed out, a user can break their zef by just installing TAP::Harness from ecosystem :/
11:17 notviki m: 'use TAP:auth<perl>'.EVAL; say TAP::Harness
11:17 camelia rakudo-moar 823f0f: OUTPUT«Could not find symbol '&Harness'␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
11:17 notviki m: EVAL 'use TAP:auth<perl>', context => OUTER::; say TAP::Harness
11:17 camelia rakudo-moar 823f0f: OUTPUT«Could not find symbol '&Harness'␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
11:17 notviki m: EVAL 'use TAP:auth<perl>', context => CALLER::; say TAP::Harness
11:17 camelia rakudo-moar 823f0f: OUTPUT«Could not find symbol '&Harness'␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
11:18 * notviki shrugs
11:24 samcv also auto-unfudger won't work
11:24 samcv ./tools/autounfudge.pl ./t/spec/S15-nfg/emoji-test.t
11:24 samcv Processing file './t/spec/S15-nfg/emoji-test.t'
11:24 samcv i hope it doesn't need a spectest file? cause that's uber lame
11:28 samcv i guess i can do --auto
11:28 samcv nope not doing anything
11:29 samcv whatever i'll just regenerate the file and then use super-fudger.p6 :P
11:31 samcv yeah 764 tests. nobody got time to unfudge that many
11:32 dalek roast: 3181874 | samcv++ | S15-nfg/emoji-test.t:
11:32 dalek roast: Unfudge 764 Emoji todo tests. samcv++
11:32 dalek roast: review: https://github.com/perl6/roast/commit/318187448a
11:32 samcv notviki, can we change this error message to have a normal apostrophe?
11:33 pmurias joined #perl6-dev
11:33 samcv m: warn
11:33 camelia rakudo-moar 823f0f: OUTPUT«Warning: something's wrong␤  in block <unit> at <tmp> line 1␤»
11:33 notviki .tell MasterDuke your microoptimization PR fails to compile for me with "Use of undeclared variable '$t' at line 2034, near " - 1 if $t"". Are you sure you were spectesting it and not something else?
11:33 yoleaux2 notviki: I'll pass your message to MasterDuke.
11:34 samcv something’s wrong would look nicer
11:34 dalek rakudo/nom: 3c52aa0 | lizmat++ | src/core/Seq.pm:
11:34 dalek rakudo/nom: Give Seq its own .join, 25% faster than List.join
11:34 dalek rakudo/nom:
11:34 dalek rakudo/nom: - it won't try to reify stuff first
11:34 dalek rakudo/nom: - makes constructs like .map().join faster with less memory pressure
11:34 dalek rakudo/nom: - tested with Seq.new(^10 .iterator).join
11:34 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/3c52aa096c
11:35 lizmat samcv: you have a commit bit  :-)
11:36 lizmat afk&
11:36 notviki samcv: and what about all the other warnings and messages that use `'` for apostrophes?
11:36 samcv sure
11:48 notviki most of them would be in src/core/Exception.pm and in src/core/Grammar.nqp (and prolly Actions.nqp) look for .worry() and.... I forget what the one for errors is called
11:49 notviki there are also some in lib/Test.pm6
11:50 samcv i'm going to bed guys. will look for that tomorrow :)
11:50 jnthn 'night, samcv++
11:54 notviki night
12:03 pmurias should we remove &tmpdir and &homedir? they are unspecced and broken
12:04 notviki pmurias: I'm currently working on the plan described here: https://rt.perl.org/Ticket/Display.html?id=130460#txn-1442705
12:05 notviki pmurias: I have long weekends for the next two months and hope to address that entire plan and figure out how tmpdir/homedir fit into it
12:05 notviki Along with the rest of IO routines
12:06 * notviki rushes to catch the bus
12:13 pmurias notviki: one possible replacement would be adding a method that checks the r,w,x,d stuff and having users use something like: my $*TMPDIR = '/home/custom-tmpdir'.IO.check(:r,:w,:x,:d)
12:18 pmurias the exact name of the checking method would have to be carefully bikeshedded
12:19 dalek nqp: 14056be | jnthn++ | / (2 files):
12:19 dalek nqp: Simplify MoarVM backend continuation support.
12:19 dalek nqp:
12:19 dalek nqp: We only need one-shot for Rakudo, and the multi-shot wasn't ever done
12:19 dalek nqp: correctly anyway (the only significant test removed here was todo'd).
12:19 dalek nqp: So, remove those tests, and the mapping ofr the continuationclone op
12:19 dalek nqp: that went with them, which MoarVM will be removing.
12:19 dalek nqp: review: https://github.com/perl6/nqp/commit/14056bef46
12:19 jnthn gah, typo
12:30 gfldex m: class C { multi method lock-down(::?CLASS:U:){ self.^can('new')».wrap(-> |c { fail „The class {.Str} is locked down!“ }) }; multi method lock-down(::?CLASS:D:){ fail „Instanced of {.WHAT.Str} can not be locked down.“ } }; my $c = C.new; C.lock-down; C.new;
12:30 gfldex why does this time out?
12:30 camelia rakudo-moar 3c52aa: OUTPUT«(timeout)»
12:31 kalkin- joined #perl6-dev
12:32 jnthn Not sure, but that fail isn't going to work, because fail is a form of return
12:32 jnthn And so binds to the lock-down method
12:33 gfldex m: class C { multi method lock-down(::?CLASS:U:){ self.^can('new')».wrap(-> |c { die „The class {.Str} is locked down!“ }) }; multi method lock-down(::?CLASS:D:){ fail „Instanced of {.WHAT.Str} can not be locked down.“ } }; my $c = C.new; C.lock-down; C.new;
12:33 camelia rakudo-moar 3c52aa: OUTPUT«(timeout)»
12:34 notviki prolly cause you're wrapping Mu.new and it loops trying to create that Failure object
12:34 jnthn ohhh
12:34 jnthn Right
12:34 jnthn You're wrapping the inherited new method :)
12:35 jnthn notviki++
12:45 gfldex m: class C { multi method lock-down(::?CLASS:U:){ self.^add_method('new', my method new(C:U: |c){ fail „The class {.gist} is locked down!“; self.^compose;  }) }; multi method lock-down(::?CLASS:D:){ fail „Instanced of {.WHAT.Str} can not be locked down.“ } }; my $c = C.new; C.lock-down; C.new;
12:45 camelia rakudo-moar 3c52aa: ( no output )
12:46 gfldex it seams to call the wrong new
12:56 MasterDuke notviki: good catch, that's what i get for working too late into the night. updated
12:56 yoleaux2 11:33Z <notviki> MasterDuke: your microoptimization PR fails to compile for me with "Use of undeclared variable '$t' at line 2034, near " - 1 if $t"". Are you sure you were spectesting it and not something else?
12:59 MasterDuke anybody have some thoughts on those error messages i asked about?
13:08 * notviki doesn't
13:18 FROGGS joined #perl6-dev
13:29 MasterDuke eh, i'll just submit a PR and people can see the changes
13:33 lucasb joined #perl6-dev
13:42 [Coke] gfldex: why move?
13:42 [Coke] (bigpage)
13:43 gfldex well, if TAP::Harness would be owned by Team Perl 6 …
13:44 notviki ?
13:44 * notviki doesn't understand why we need three nearly identical copies of TAP::Harness
13:45 gfldex we don't really because zef does the job of prove6
13:46 notviki Then I don't get this statement: "gfldex │ well, if TAP::Harness would be owned by Team Perl 6"
13:47 gfldex we could prevent `zef install TAP::Harness` from breaking zef
13:47 notviki how would you accomplish that?
13:48 gfldex zef doesn't check if there is a module in core of the same name
13:48 notviki Or are you still going to remove Leont's TAP::Harness?
13:48 gfldex at least it didn't yesterday
13:49 notviki Right, so what will it do when it's asked to install TAP::Harness and there are two TAP::Harnesses in the ecosystem?
13:51 gfldex as long as you don't provide auth<> it will assume that module is already installed
13:52 gfldex i do not claim to have understood how conflict resolution with multiple authors is supposed to work
13:53 notviki if it assumes that, it seems like a bug.
13:53 gfldex that's ENODOC btw
13:55 notviki And considering Leont replied to my comment elsewhere on GitHub 2 hours ago... releasing a third TAP::Harness is an attempt to subvert users from installing Leont's TAP::Harness is a strange way to deal with a bug in his module
13:56 notviki Which I don't even see as reported on his repo.
13:57 gfldex i have no plans regarding TAP::Harness anymore
14:09 notviki hm, perl6.fail seems to not able to pick up smls's recent tickets either (along with zefram's) :/
14:12 * notviki tries the nuclear option
14:20 pmurias why do we have a module both in the rakudo repo and in the ecosystem?
14:21 notviki Because anyone is free to release a module into ecosystem and thanks to the :auth they can name it anything they want.
14:21 jnthn I don't believe we install the copy in the Rakudo repo? Or do we?
14:21 jnthn I thought it wsa just there for spectest6 use though
14:21 jnthn *was
14:21 notviki jnthn: it's part of lib/TAP.pm
14:22 notviki It's installed on my box with rakudobrew
14:22 jnthn Hm, OK
14:22 notviki and it's installed on my 2016.11 Rakudo Star Windows install
14:23 jnthn Yes, but by Rakudo itself, or from the ecosystem?
14:23 notviki Don'
14:23 notviki Don't know if it's included in Star, but the rakudobrew install it's from rakudo, not ecosystem
14:23 jnthn ah
14:23 jnthn Yeah, install_core_dist does it
14:23 jnthn Hmm
14:24 jnthn So I was wrong, though arguably I should have been right :P
14:24 notviki heh
14:25 notviki worse, I don't see any docs for it whatsoever.
14:26 pmurias notviki: having and :auth doesn't magically make a 'use Foo' pick the right Foo module
14:27 notviki pmurias: which is the problem with the whole `:auth` thing I complained about a year ago...
14:28 notviki And as ugexe pointed out, it doesn't even work at all if you `require` a module instead of `use`ing it
14:29 pmurias also having a little core modules as possible seems a wise, as they turned out to be a bad thing in Perl 5
14:30 notviki Cool. So let's toss the core one out and convince Leont to give core devs a commit bit for his version?
14:30 jnthn notviki: I don't know that we want to remove it from the Rakudo repo, this is more about "should we install it"
14:30 jnthn notviki: Since our goal is to start using the Perl 6 harness to run spectests
14:31 notviki jnthn: we can still install it from the repo for that purpose. We currently need to install Inline::Perl5, for example.
14:31 jnthn No we don't
14:31 jnthn You can run the vast majority of spectests without doing that.
14:31 notviki jnthn: what do you mean?
14:32 jnthn I don't have Inline::Perl5 installed
14:32 notviki But not all.
14:32 jnthn On my dev box.
14:32 jnthn Well, on this dev box
14:32 jnthn Sure, but 52,000 or so :P
14:32 jnthn I don't think having a module in the repo for private use is really a problem.
14:33 jnthn This is really just about whether we install it.
14:33 notviki The full run has 130K of top-level tests.
14:33 jnthn That's stresstest, no?
14:34 notviki jnthn: I see it as doing double the effort for no reason. For example, the core TAP::Harness currently has a bug fix for backslashes in description, but Leont's version doesn't. If we mark core TAP.pm as private use, than we'd have to duplicate all such bugfixes between the two repos
14:34 notviki it could be just a `git clone`; same as we do for nqp/MoarVM reall
14:35 notviki RT#130518 is another fix that would have to be done in both repos....
14:35 synopsebot6 Link:  https://rt.perl.org/rt3//Public/Bug/Display.html?id=130518
14:41 notviki How come that's the goal to use Harness6? Our Configure.pl need perl5 and perl5 comes with prove...
14:43 jnthn notviki: Dogfooding, but also it gives us a "free" test of a long-running concurrent program as part of the spectest process too
14:46 dalek rakudo/nom: dd5759b | (Zoffix Znet)++ | appveyor.yml:
14:46 dalek rakudo/nom: Try to unbust appveyor
14:46 dalek rakudo/nom:
14:46 dalek rakudo/nom: By trying a different version of Strawberry per
14:46 dalek rakudo/nom: https://github.com/kvirc/KVIrc/commit/4640e16b5ae30e707b66c12193bb118cdc97b280
14:46 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/dd5759b536
14:50 buggable joined #perl6-dev
14:50 notviki NeuralAnomaly: status
14:50 NeuralAnomaly notviki, [✘] Next release will be in 1 day and 2 weeks. Since last release, there are 0 new still-open tickets (0 unreviewed and 0 blockers) and 230 unreviewed commits. See http://perl6.fail/release/stats for details
14:50 huggable joined #perl6-dev
14:51 notviki hm... the nuclear option seems to have broken perl6.fail entirely :P
15:02 jnthn That...sounds pretty nuclear :P
15:08 jnthn Good news for those of you hacking on stuff in CORE.setting: I've a MoarVM branch that knocks ~20% off CORE.setting compilation time, and ~10% of CORE.setting compilation memory use.
15:09 arnsholt That's the work-lifetime changes?
15:09 jnthn Yes
15:09 jnthn https://gist.github.com/jnthn/de0c1b39fd17e1ce27fa725f93541cfb is the measurements, fwiw
15:09 arnsholt Wow. 20% is pretty darn massive
15:10 MasterDuke ++jnthn++
15:10 arnsholt But given it impacts every single invocation, perhaps not too odd
15:10 jnthn Yes, this likely will have some positive impact on user code too
15:10 arnsholt I guess [Tux] will tell us tomorrow =)
15:13 notviki jnthn++ I definitely appreciate core setting compilation time reductions :D
15:15 MasterDuke heh, same here, but makes my ~1s reduction PR look pretty sad
15:15 MasterDuke jnthn: will it noticeably help startup time?
15:17 jnthn Unlikely
15:17 jnthn I mean, if you callgrind it you'll see a CPU cycle difference
15:17 jnthn But I'm not sure it'll be significant
15:20 dalek joined #perl6-dev
15:21 timotimo we've gotten most start-up time improvements by doing less work when starting, so we're now at a point where there's not enough work for such a patch to help a whole lot ;)
15:25 MasterDuke i was wondering about running spectests, how much of that time is the numerous startups? i.e., will this change have a noticeable change on running them?
15:25 [Coke] (tap harness in core vs. not) if we're going to duplicate Perl 5's core/dual lived module problems, we need to be prepared for the problems that come with that.
15:26 timotimo well, this change has an impact on stages parse, optimize, and mast in the core setting, it'd stand to reason that compilation of all the test files gets a little bit faster now
15:26 timotimo though i never tried to measure the individual stage timings for the core setting. that might be an interesting little project
15:28 notviki [Coke]: so let's not duplicate those problems?
15:28 arnsholt That gives me a thought: Are the times portioned between the stages similarly for smaller scripts like test files as for the setting?
15:29 notviki [Coke]: what are the problems BTW? Do they apply to modules included with Rakudo Star?
15:31 notviki arnsholt: don't seem to be. Here are two random spectest files: one has double the parse stage time, but other stages are the same: https://gist.github.com/zoffixznet/8a710f7aa6f37683a755d9004150adbd
15:32 arnsholt Yeah, that's what I sort of figured
15:37 jnthn CORE.setting does a lot of on-demand compilation
15:37 jnthn Where it runs bits of the code in CORE.setting as it's being compiled
15:38 jnthn Much more so than the average program, I suspect
15:38 [Coke] notviki: I have only partial knowledge based on lurking in p5p for a while; but keeping the versions in sync and dealing with having core version installed vs. ecosystem version are the big ones.
15:39 notviki ah
15:54 MasterDuke_ joined #perl6-dev
15:54 MasterDuke_ jnthn, timotimo, etc: i noticed a bunch of "foo = MVM_malloc(...) \n memset(foo, 0, ...)" in MoarVM. would a PR converting those to "foo = MVM_calloc(...)" be useful?
15:55 jnthn MasterDuke_: Yes
15:56 MasterDuke jnthn: cool, i'll see about doing that
16:06 dalek rakudo/js: 73abad0 | (Pawel Murias)++ | src/ (3 files):
16:06 dalek rakudo/js: [js] Decont arguments with a type signature in the nqp level binder.
16:06 dalek rakudo/js: review: https://github.com/rakudo/rakudo/commit/73abad03eb
16:06 dalek rakudo/js: edec947 | (Pawel Murias)++ | src/vm/js/Perl6/Ops.nqp:
16:06 dalek rakudo/js: [js] Implement nqp::p6return.
16:06 dalek rakudo/js: review: https://github.com/rakudo/rakudo/commit/edec947490
16:06 dalek rakudo/js: 2a8b0ee | (Pawel Murias)++ | src/core/Perl.pm:
16:06 dalek rakudo/js: [js] Put linux in DISTROnames. Think if we want to have all possible or just the once tested to work.
16:06 dalek rakudo/js: review: https://github.com/rakudo/rakudo/commit/2a8b0ee470
16:12 ugexe notviki: how can you tell its strawberry perl causing appveyor failure?
16:13 ugexe to me it looks like its something causing it to fail compiling utf8_c8.c but I don't see any hints that its perl related
16:15 notviki the previous failure was about strawberry failing to install so after the first change to fix it didn't unbust it I tried another solution for the strawberry problem people also had
16:15 notviki "'make' is not recognized as an internal or external command"
16:18 ugexe ah. i assumed the previous failure just messed up the process in such a way it would start using make instead of name
16:19 ugexe instead of nmake^
16:20 notviki *shrug* I've no idea :/
16:21 notviki by previous failure I mean how it failed 5 days ago
16:21 notviki this one: https://ci.appveyor.com/project/moritz/rakudo/build/1.0.1982/job/33r8uldu055poba2
16:28 hankache joined #perl6-dev
16:53 dalek nqp: 97d9ad2 | brrt++ | t/moar/50-jit-register-alloc.t:
16:53 dalek nqp: Make JIT register allocator test more strict
16:53 dalek nqp:
16:53 dalek nqp: It should actually give the correct answer :-)
16:53 dalek nqp: review: https://github.com/perl6/nqp/commit/97d9ad2328
17:16 geekosaur joined #perl6-dev
17:20 notviki .ask nine is this meant to work? https://gist.github.com/zoffixznet/b6cb79cd6729226a455f35ad08deb68d Seems to only use the sub from first loaded version and keeps using it that version even if I reverse the loading order, unless I also nuke the .precomp
17:20 yoleaux2 notviki: I'll pass your message to nine.
17:26 notviki .tell nine here are the contents of the files in that tree: https://gist.github.com/zoffixznet/ccdd17f79272af98ad863ac06be8afbe
17:26 yoleaux2 notviki: I'll pass your message to nine.
17:30 notviki .tell nine err, `cat v2/Foo.pm6` has { say "two"; } instead of { say "one" } (and yeah, I then changed it to say "ones" and the code kept saying "one" until I nuked precomp
17:30 yoleaux2 notviki: I'll pass your message to nine.
17:30 notviki )
18:09 committable6 joined #perl6-dev
18:09 bisectable6 joined #perl6-dev
18:09 unicodable6 joined #perl6-dev
18:09 evalable6 joined #perl6-dev
18:09 benchable6 joined #perl6-dev
18:09 statisfiable6 joined #perl6-dev
18:16 notviki MasterDuke: but shouldn't it say $32 since the number used is 33?
18:18 notviki m: $_ = "432134213423423423423423432423423432432432423423432"; for ^1000 { $ = /<.[\d] - [0٠۰߀०০੦૦୦௦౦೦൦෦๐໐༠၀႐០᠐᥆᧐᪀᪐᭐᮰᱀᱐꘠꣐꤀꧐꧰꩐꯰0𐒠𑁦𑃰𑄶𑇐𑋰𑑐𑓐𑙐𑛀𑜰𑣠𑱐𖩠𖭐𝟎𝟘𝟢𝟬𝟶𞥐]>\d*/ }; say now - INIT now
18:18 camelia rakudo-moar dd5759: OUTPUT«0.0091893␤»
18:18 notviki hm
18:19 notviki In terminal that spamms me with warnings: https://gist.github.com/zoffixznet/f88fcd2a387071bdccdc32f4b5c91dd9
18:20 MasterDuke i've never seen that warning
18:21 notviki m: $_ = "432134213423423423423423432423423432432432423423432"; for ^1000 { $ = /<.[\d] - [0]>\d*/ }; say now - INIT now
18:21 camelia rakudo-moar dd5759: OUTPUT«0.00246506␤»
18:21 notviki m: $_ = "432134213423423423423423432423423432432432423423432"; for ^1000 { $ = /<.[\d] - [0]>\d*/ }; say now - INIT now
18:21 camelia rakudo-moar dd5759: OUTPUT«0.00241057␤»
18:21 notviki m: $_ = "432134213423423423423423432423423432432432423423432"; for ^1000 { $ = /<.[\d] - [0٠۰߀०০੦૦୦௦౦೦൦෦๐໐༠၀႐០᠐᥆᧐᪀᪐᭐᮰᱀᱐꘠꣐꤀꧐꧰꩐꯰0𐒠𑁦𑃰𑄶𑇐𑋰𑑐𑓐𑙐𑛀𑜰𑣠𑱐𖩠𖭐𝟎𝟘𝟢𝟬𝟶𞥐]>\d*/ }; say now - INIT now
18:21 camelia rakudo-moar dd5759: OUTPUT«0.008987␤»
18:21 notviki m: $_ = "432134213423423423423423432423423432432432423423432"; for ^1000 { $ = /<.[\d] - [0٠۰߀०০੦૦୦௦౦೦൦෦๐໐༠၀႐០᠐᥆᧐᪀᪐᭐᮰᱀᱐꘠꣐꤀꧐꧰꩐꯰0𐒠𑁦𑃰𑄶𑇐𑋰𑑐𑓐𑙐𑛀𑜰𑣠𑱐𖩠𖭐𝟎𝟘𝟢𝟬𝟶𞥐]>\d*/ }; say now - INIT now
18:21 camelia rakudo-moar dd5759: OUTPUT«0.009107␤»
18:22 MasterDuke m: use nqp; my $a = "۳\x[308]3"; say nqp::radix(10, $a, 0, 0)[0]
18:22 camelia rakudo-moar dd5759: OUTPUT«0␤»
18:22 notviki m: say "\0" ~~ /\0/
18:22 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unrecognized backslash sequence: '\0'␤at <tmp>:1␤------> say "\0" ~~ /\⏏0/␤    expecting any of:␤        term␤»
18:24 notviki .ask samcv what do you think of https://github.com/rakudo/rakudo/pull/990 can you merge it if it looks fine?
18:24 yoleaux2 notviki: I'll pass your message to samcv.
18:27 TimToady joined #perl6-dev
18:28 notviki MasterDuke: FWIW there this chunk of code that checks for synthetic digits: https://github.com/rakudo/rakudo/blob/nom/src/Perl6/Grammar.nqp#L1824-L1840
18:28 notviki MasterDuke: and we could also create a token for \d without synthetics and have it auto-generated from current unicode by a script or something
18:29 notviki All of this has a DIHWIDT feel to it tho, including those zeros :}
18:29 MasterDuke heh, that's why was looking for comments
18:30 MasterDuke *i was
18:36 MasterDuke m: ${3}
18:36 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unsupported use of ${3}; in Perl 6 please use $2␤at <tmp>:1␤------> ${3}⏏<EOL>␤»
18:36 MasterDuke m: ${۳}
18:36 camelia rakudo-moar dd5759: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 1779␤»
18:37 MasterDuke that's the other one
18:37 notviki m: ${+"۳"}
18:37 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unsupported use of ${+"۳"}; in Perl 6 please use $(+"۳") for hard ref or $::(+"۳") for symbolic ref␤at <tmp>:1␤------> ${+"۳"}⏏<EOL>␤»
18:37 notviki heh
18:37 notviki m: ${+"\b\b\b\b\b\b\b\b\b۳"}
18:37 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unsupported use of ${+"\b\b\b\b\b\b\b\b\b۳"}; in Perl 6 please use $(+"\b\b\b\b\b\b\b\b\b۳") for hard ref or $::(+"\b\b\b\b\b\b\b\b\b۳") for symbolic ref␤at <tmp>:1␤------> ${+"\b\b\b\b\b\b\b\b\b۳"…»
18:39 notviki Yeah. I guess the question is, is this a problem for anyone who isn't just messing around? :)
18:39 notviki Or... can this lead to some sort of exploit
18:39 MasterDuke i don't really know, but since we allow all Nd's in lots of other places...
18:40 notviki mc: say +"۳\x[308]3"
18:40 committable6 notviki, https://gist.github.com/846906ef491b2ceacdee2e5598b631c8
18:40 notviki mc: say +"3۳\x[308]3"
18:40 committable6 notviki, ¦«2015.12»: Cannot convert string to number: trailing characters after number in '3⏏۳̈3' (indicated by ⏏)␤  in block <unit> at /tmp/xdZL7Aytte line 1␤␤Actually thrown at:␤  in block <unit> at /tmp/xdZL7Aytte line 1␤ «exit code = 1»
18:41 notviki mc: say "3۳\x[308]3".Int
18:41 committable6 notviki, ¦«2015.12»: Cannot convert string to number: trailing characters after number in '3⏏۳̈3' (indicated by ⏏)␤  in block <unit> at /tmp/GGvgHedGCB line 1␤␤Actually thrown at:␤  in block <unit> at /tmp/GGvgHedGCB line 1␤ «exit code = 1»
18:41 notviki m: $۳
18:41 camelia rakudo-moar dd5759: ( no output )
18:42 notviki MasterDuke: I don't have any ideas on this :) maybe samcv or TimToady would
18:45 MasterDuke .ask TimToady what do you think about https://github.com/rakudo/rakudo/pull/990? https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13865466 and https://irclog.perlgeek.de/perl6-dev/2017-01-06#i_13871168 for some background
18:45 yoleaux2 MasterDuke: I'll pass your message to TimToady.
18:48 notviki c: 2016.09 my $money-in-account = 10; my $money-wanted = "3\x[308]99999999999999"; unless $money-wanted.Int <= $money-in-account { die "You're too broke for that, bruh!" }; say "Yo, operator! Give this dude $money-wanted moneys!"
18:48 committable6 notviki, ¦«2016.09»: Yo, operator! Give this dude 3̈99999999999999 moneys!
18:48 notviki A convoluted but not impossible scenario of a hexplot :)
18:58 notviki m: my $money-in-account = 10; my $money-wanted = "3\x[308]99999999999999"; unless $money-wanted.Int <= $money-in-account { die "You're too broke for that, bruh!" }; say "Yo, operator! Give this dude $money-wanted moneys!"
18:58 camelia rakudo-moar dd5759: OUTPUT«Cannot convert string to number: base-10 number must begin with valid digits or '.' in '⏏3̈99999999999999' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
19:10 Zoffix_ joined #perl6-dev
19:42 notviki MasterDuke: since you're not in #moarvm: https://irclog.perlgeek.de/moarvm/2017-01-06#i_13871584
19:43 samcv left #perl6-dev
19:43 samcv joined #perl6-dev
19:44 samcv m: say 'abcdc' ~~ /ab(.)d\᠐/
19:44 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unrecognized backslash sequence: '\᠐'␤at <tmp>:1␤------> say 'abcdc' ~~ /ab(.)d\⏏᠐/␤    expecting any of:␤        infix stopper␤        term␤»
19:44 samcv m: say 'abcdc' ~~ /ab(.)d$᠐/
19:44 camelia rakudo-moar dd5759: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 6160␤»
19:45 samcv what
19:45 MasterDuke you can only check the unival if you've matched it in the first place
19:45 MasterDuke and in the case of ascii 0, we'd then want to give it back
19:46 notviki .oO( tell people to use '\0'
19:46 notviki in that case )
19:46 MasterDuke but could just do <[\d] - [0]> and then only subtract if unival > 0
19:46 notviki yeah
19:47 samcv yeah that's what i am thinking MasterDuke
19:49 MasterDuke k, let me give that a shot
19:50 samcv idk maybe we can program in first second third fourth fifth etc, and tell them use $0 for the first capture or if we subtruct 1 say for use $0 for the first capture. i would be way more for that than programming in all those languages numbers
19:57 samcv but that doesn't have to happen now at all
19:58 notviki m: …
19:58 camelia rakudo-moar dd5759: OUTPUT«Stub code executed␤  in any  at /home/camelia/rakudo-m-inst-2/share/perl6/runtime/CORE.setting.moarvm line 1␤  in block <unit> at <tmp> line 1␤␤»
19:59 notviki m: Backtrace::Frame.^lookup("is-setting").wrap: method () { $!file.starts-with("SETTING::") or $!file.ends-with("CORE.setting.moarvm") }; …
19:59 camelia rakudo-moar dd5759: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Cannot understand $!file in this context␤at <tmp>:1␤------> p("is-setting").wrap: method () { $!file⏏.starts-with("SETTING::") or $!file.ends␤»
19:59 notviki orly
19:59 notviki m: Backtrace::Frame.^lookup("is-setting").wrap: method () { $.file.starts-with("SETTING::") or $.file.ends-with("CORE.setting.moarvm") }; …
19:59 camelia rakudo-moar dd5759: OUTPUT«Stub code executed␤  in block <unit> at <tmp> line 1␤␤»
20:21 nebuchadnezzar joined #perl6-dev
20:57 MasterDuke samcv, notviki: PR updated
21:21 samcv MasterDuke, looking
21:22 samcv MasterDuke, much better
21:24 MasterDuke cool
21:24 samcv let me test it out on my computer
21:31 MasterDuke m: ${۳}
21:31 camelia rakudo-moar dd5759: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 1779␤»
21:32 MasterDuke just submitted a PR for those
21:32 samcv cool
21:33 samcv this is only for the errors right
21:33 samcv cause
21:33 MasterDuke yeah
21:33 samcv m: say 'abca' ~~ /(a)(b)(c)$٠/
21:33 camelia rakudo-moar dd5759: OUTPUT«===SORRY!===␤Error encoding ASCII string: could not encode codepoint 1632␤»
21:33 samcv this fails silently
21:33 samcv m: say 'test'
21:33 camelia rakudo-moar dd5759: OUTPUT«test␤»
21:34 samcv ah
21:34 samcv well if you don't get that ascii error heh
21:34 samcv #fakeascii
21:36 MasterDuke it fails differently with my PR?
21:37 samcv uhm
21:37 samcv probably the same :P
21:37 unicodable6 joined #perl6-dev
21:40 dalek rakudo/nom: 41d9f5c | MasterDuke17++ | src/Perl6/Grammar.nqp:
21:40 dalek rakudo/nom: Handle all Nd digits in regex backslash errors
21:40 dalek rakudo/nom:
21:40 dalek rakudo/nom: /\۳/ now suggests $2, before it just didn't recognize it.
21:40 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/41d9f5c3eb
21:40 dalek rakudo/nom: 161d7a0 | MasterDuke17++ | src/Perl6/Grammar.nqp:
21:40 dalek rakudo/nom: Only subtract one from backslash suggestion if > 0
21:40 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/161d7a0d7d
21:40 dalek rakudo/nom: 964b28b | samcv++ | src/Perl6/Grammar.nqp:
21:40 dalek rakudo/nom: Merge pull request #990 from MasterDuke17
21:40 dalek rakudo/nom:
21:40 samcv merged
21:40 dalek rakudo/nom: Handle all Nd digits in regex backslash errors
21:40 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/964b28be83
21:40 MasterDuke thanks
21:42 unicodable6 joined #perl6-dev
21:43 MasterDuke btw, think i have a fix for say 'abca' ~~ /(a)(b)(c)$٠/
22:05 evalable6 joined #perl6-dev
22:07 notviki \o/
22:07 MasterDuke https://github.com/perl6/nqp/pull/337
22:10 evalable6 joined #perl6-dev
22:17 dalek roast: efee15f | lizmat++ | S (2 files):
22:17 dalek roast: Unfudge now passing tests
22:17 dalek roast: review: https://github.com/perl6/roast/commit/efee15f3c5
22:18 dalek nqp: 7084d5a | MasterDuke17++ | src/QRegex/P (2 files):
22:18 dalek nqp: Handle Nd's as a backreference
22:18 dalek nqp:
22:18 dalek nqp: So perl6 -e 'say "abca" ~~ /(a)(b)(c)$٠/' now matches.
22:18 dalek nqp: review: https://github.com/perl6/nqp/commit/7084d5a66f
22:18 dalek nqp: ccd4089 | lizmat++ | src/QRegex/P (2 files):
22:18 dalek nqp: Merge pull request #337 from MasterDuke17/correctly_handle_unicode_digits_in_backreferences
22:19 dalek nqp:
22:19 dalek nqp: Handle Nd's as a backreference
22:19 dalek nqp: review: https://github.com/perl6/nqp/commit/ccd4089751
22:43 dalek rakudo/nom: 5592db8 | lizmat++ | tools/build/NQP_REVISION:
22:43 dalek rakudo/nom: Bump NQP to handle Nd's as a backreference
22:43 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/5592db8fe5
22:47 MasterDuke lizmat, notviki, samcv: is https://github.com/rakudo/rakudo/pull/989 good?
22:49 * notviki has no idea :(
22:49 notviki sorry
22:51 lizmat MasterDuke: was about to go to bed, will check tomorrow
22:52 MasterDuke notviki: no worries
22:52 MasterDuke lizmat: thanks
23:58 bisectable6 joined #perl6-dev
23:58 unicodable6 joined #perl6-dev
23:58 evalable6 joined #perl6-dev
23:58 committable6 joined #perl6-dev
23:58 benchable6 joined #perl6-dev
23:58 statisfiable6 joined #perl6-dev

| Channels | #perl6-dev index | Today | | Search | Google Search | Plain-Text | summary