»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 mcmillhj left
comborico1611 My brain's not working. Can't figure out why this isn't returning true: hastebin.com/oredelocig.pl 00:05
00:11 ryn1x joined 00:14 mcmillhj joined
MasterDuke comborico1611: it does for me, but you aren't say()ing it 00:17
m: sub is-lower (Str $input) { return so $input ~~ rx { ^ <[a..z]> $ } }; say is-lower("b")
camelia True
00:20 mcmillhj left 00:21 Herby left 00:22 zachk left 00:33 windyhouse left
lookatme morning 00:44
comborico1611 MasterDuke: Thanks! That is very unintuitive behavior to me, that it needs a "say". 00:45
00:47 ryn1x left
comborico1611 I'm trying to understand why the function doesn't just return the value of so() 00:47
Isn't it default for all routines to return last value?
00:49 ryn1x joined
lookatme m: sub is-lower (Str $input) { so $input ~~ rx { ^ <[a..z]> $ } }; say is-lower("b") 00:54
camelia True
00:54 mcmillhj joined
comborico1611 Good morning, lookatme. 00:55
00:56 markong left
lookatme comborico1611, good morning 00:56
comborico1611 Do you drink coffee?
lookatme no 00:57
I am not like it
comborico1611 I would drink coffee, but it makes my blood feel weird.
lookatme I like plain water :) 00:58
yeah, it not good for our health
00:59 mcmillhj left
comborico1611 I drink plain water. Sometimes I mix it with cranberry juice if my kidneys are acting up. 00:59
Anyways,I'm going to enjoy the evening. Goodbye! 01:01
01:02 comborico1611 left 01:04 ryn1x left
lookatme :) bye 01:07
01:18 entonian joined 01:24 entonian left 01:27 mcmillhj joined 01:31 mcmillhj left 01:39 shinobi-cl joined 01:50 zakharyas joined, ilbot3 left 01:54 mcmillhj joined 01:56 ilbot3 joined, ChanServ sets mode: +v ilbot3 01:59 mcmillhj left 02:07 pilne left 02:17 eliasr left 02:33 mcmillhj joined 02:38 mcmillhj left 02:39 Herby joined, ufobat_ joined 02:43 ufobat left 02:50 ryn1x joined 02:56 Actualeyes left 03:10 mcmillhj joined 03:15 mcmillhj left 03:17 espadrine left 03:30 mcmillhj joined 03:34 mcmillhj left 03:48 ryn1x left 03:59 Herby left 04:03 mcmillhj joined 04:08 mcmillhj left 04:20 molaf joined 04:21 mcmillhj joined 04:25 mcmillhj left 04:35 khw left, molaf left 04:38 BenGoldberg left 04:47 skids left 04:51 curan joined 04:52 mcmillhj joined 04:57 mcmillhj left 04:58 sno left
moritz \o 05:01
yoleaux 7 May 2018 22:45Z <Tison> moritz: I found a regex like `regex key { <![#\[]> <-[;=]>+ }` and wonder what's the different between <![...]> and <-[...]>. BTW, the former isn't documented.
moritz .tell Tison <![...]> is a look-ahead, i.e. it doesn't consume a character 05:02
yoleaux moritz: I'll pass your message to Tison.
05:07 mcmillhj joined 05:10 jmerelo joined
jmerelo m: say: <a b c> 05:10
camelia WARNINGS for <tmp>:
Useless use of constant value a b c in sink context (lines 1, 1, 1, 1, 1, 1)
05:12 mcmillhj left 05:15 Kaypie left 05:17 Kaiepi joined
jmerelo m: my $fh = '/tmp/log.txt'.IO.open; say $fh: "foo"; say '/tmp/log.txt'.IO.slurp 05:27
camelia Earlier failures:
Failed to open file /tmp/log.txt: No such file or directory
in block <unit> at <tmp> line 1

Final error:
Cannot resolve caller say(Failure: Str); none of these signatures match:
(Mu: *%_)
in block <unit> at <…
jmerelo m: my $fh = 'log.txt'.IO.open; say $fh: "foo"; say 'log.txt'.IO.slurp
camelia Earlier failures:
Failed to open file /home/camelia/log.txt: No such file or directory
in block <unit> at <tmp> line 1

Final error:
Cannot resolve caller say(Failure: Str); none of these signatures match:
(Mu: *%_)
in block <u…
05:28
05:29 Praise left
jmerelo m: my $fh = '/tmp/log.txt'.IO.open: :w; say $fh: "foo"; say '/tmp/log.txt'.IO.slurp 05:30
camelia foo
jmerelo m: my $fh = '/tmp/log.txt'.IO.open: :w; $fh: say "foo"; say '/tmp/log.txt'.IO.slurp 05:31
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3y $fh = '/tmp/log.txt'.IO.open: :w; $fh:7⏏5 say "foo"; say '/tmp/log.txt'.IO.slurp
expecting any of:
colon pair
05:42 mcmillhj joined 05:43 shinobi-cl left 05:47 mcmillhj left
jmerelo p: say rindex "Camelia is a butterfly", "a"; 05:55
m: say rindex "Camelia is a butterfly", "a";
camelia 11
jmerelo m: say rindex: "Camelia is a butterfly", "a";
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling rindex() will never work with signature of the proto ($, $, $?, *%)
at <tmp>:1
------> 3say 7⏏5rindex: "Camelia is a butterfly", "a";
jmerelo m: say rindex "Camelia is a butterfly": "a";
camelia 11
jmerelo m: say "Camelia is a butterfly".rindex "a"; 05:56
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3say "Camelia is a butterfly".rindex7⏏5 "a";
expecting any of:
infix
infix stopper
postfix
statement end
jmerelo m: say "Camelia is a butterfly".rindex: "a";
camelia 11
jmerelo m: say "Camelia is a butterfly".rindex( "a" );
camelia 11
jmerelo m: say "Camelia is a butterfly".rindex( "a" ); 05:57
camelia 11
jmerelo m: say "Camelia is a butterfly".index( "a" );
camelia 1
jmerelo m: say "Camelia is a butterfly".index: "a" ;
camelia 1
jmerelo m: my ($a, $b, $c); (($a, $b), $c) = ((1, 2), 3); say $a; ($a, $b), $c = ((1, 2), 3); say $a; ($a, $b), $c = (1, 2), 3; say $a 06:04
camelia WARNINGS for <tmp>:
(1 2)
(1 2)
(1 2)
Useless use of $a in sink context (lines 1, 1, 1, 1, 1, 1)
Useless use of $b in sink context (lines 1, 1, 1, 1, 1, 1)
Useless use of constant integer 3 in sink context (lines 1, 1)
jmerelo m: my ($a, $b, $c); (($a, $b), $c) = ((1, 2), 3); say $a; 06:05
camelia (1 2)
jmerelo m: ($a, $b), $c = ((1, 2), 3); say $a;
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3(7⏏5$a, $b), $c = ((1, 2), 3); say $a;
jmerelo m: my ($a, $b, $c); ($a, $b), $c = ((1, 2), 3); say $a;
camelia WARNINGS for <tmp>:
(Any)
Useless use of $b in sink context (lines 1, 1, 1)
Useless use of $a in sink context (lines 1, 1, 1)
06:05 stmuk_ joined
jmerelo m: my ($a, $b, $c); ($a, $b), $c = (1, 2), 3; say $a 06:06
camelia WARNINGS for <tmp>:
(Any)
Useless use of $a in sink context (lines 1, 1, 1)
Useless use of constant integer 3 in sink context (lines 1, 1)
Useless use of $b in sink context (lines 1, 1, 1)
06:06 stmuk left
TimToady m: my ($a, $b, $c); ($a, $b), $c Z= (1, 2), 3; say $a 06:09
camelia 1
jmerelo m: my ($a, $b, $c); ($a, ($b, $c)) = ((1, 2), 3); say $a;
camelia (1 2)
jmerelo m: my ($a, $b, $c); ($a, ($b, $c)) = ((1, 2), 3, 'þ'); say $a, $c;
camelia (1 2)þ
TimToady m: my ($a, $b, $c); ($a, $b), $c »=« (1, 2), 3; say $a, $c 06:11
camelia WARNINGS for <tmp>:
Useless use of constant integer 3 in sink context (lines 1, 1)
Useless use of $b in sink context (lines 1, 1, 1)
Useless use of $a in sink context (lines 1, 1, 1)
No such method 'name' for invocant of type 'Mu'. Did you mea…
jmerelo o/ TimToady
TimToady m: my ($a, $b, $c); (($a, $b), $c) »=« ((1, 2), 3); say $a, $c
camelia 13
TimToady \o
jmerelo TimToady: That's neat...
TimToady: and not documented... 06:13
OK, not true: docs.perl6.org/language/operators#...-infix_%3D 06:14
But it's not well listed. Hum.
06:14 mcmillhj joined
jmerelo No, it's not documented... 06:16
06:16 sno joined 06:19 mcmillhj left
jmerelo This question in SO about the foo metasyntax is still unanswered stackoverflow.com/questions/502104...-foo-regex Someone might want to have a look at it 06:24
TimToady I wonder what "use" means... 06:27
jmerelo TimToady: implement? 06:28
TimToady but <foo ...> is just a funny way to write a method call
if by "use" they mean implement the foo method to call, the only things you need to know is that it has to be a method on a Match object somehow, and you have to return a new match object with the new match position 06:29
jmerelo TimToady: right. And that question is creating a new cursor, and doing all kind of things... and returning self, and not a new Match object. 06:30
TimToady or just write a regex/token/rule, and that gets handled automatically
well, returning self is just a true assertion that doesn't go anywhere 06:31
jmerelo TimToady: I'll try to see if I understand that, and will try to come up with an answer... And documentation for this issue github.com/perl6/doc/issues/1858 06:33
06:33 darutoko joined
TimToady if you look in src/Perl6/Grammar.nqp you'll find a number of examples of methods pretending to be rules 06:34
jmerelo TimToady: will do
06:34 rindolf joined 06:37 mcmillhj joined 06:40 domidumont joined 06:43 mcmillhj left 06:46 domidumont left 06:47 domidumont joined 06:49 mcmillhj joined 06:54 mcmillhj left
Geth doc: zaucker++ created pull request #2011:
README.de.md
06:58
07:05 espadrine joined 07:18 daxim_ joined 07:19 dakkar joined 07:22 mcmillhj joined, jargan is now known as jast 07:26 mcmillhj left
lizmat and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2018/05/07/...-solution/ 07:26
grrr... 07:27
lizmat clickbaits p6weekly.wordpress.com/2018/05/07/...-solution/
.oO( slippy fingers )
07:35 wamba joined 07:38 scimon joined, mcmillhj joined 07:42 mcmillhj left
moritz lizmat++ # weekly 07:46
07:48 mikejw joined
timotimo cool. reddit seems to have deleted all mod mail from the perl6 subreddit? so i can't find the discussion about the weekly "what is everyone working on" post suggestion any more 07:56
oh! there's a difference between "mod mail" and "moderator mail". this was in "moderator mail", not "mod mail" 07:57
moritz of course there is! /s 07:58
mikejw morning 08:02
08:04 mcmillhj joined 08:09 mcmillhj left
timotimo oh, huh, so moderator mail is the old one and modmail is the re-implementation and they call it "beta" maybe because it can't do mail yet? 08:09
actually, i read something somewhere that suggests that a community has to convert from one to the other? 08:11
new modmail enrollment 08:14
Once chosen this can not be undone, please make sure your entire team is ready.
well, how am i supposed to know if it's better if i can only see empty inboxes in the new one ...
08:15 windyhouse joined 08:19 mcmillhj joined
Geth doc/master: 7 commits pushed by (Fritz Zaucker)++, (Juan Julián Merelo Guervós)++ 08:23
08:24 mcmillhj left 08:30 greppable6 joined 08:38 [Sno] joined 08:39 noganex_ left 08:40 kst` left, sno left, kst` joined 08:45 noganex joined
Geth doc: 99a81de279 | (JJ Merelo)++ | doc/Language/regexes.pod6
Adds FAILGOAL and SETGOAL to index, closes #2008
08:52
synopsebot Link: doc.perl6.org/language/regexes
08:58 mcmillhj joined 09:01 Tison joined
Tison \o 09:01
yoleaux 05:02Z <moritz> Tison: <![...]> is a look-ahead, i.e. it doesn't consume a character
Tison yes, I see it later. Thank you moritz :-) 09:02
09:03 mcmillhj left
moritz my pleasure 09:04
09:05 w_richard_w left 09:06 tt joined 09:16 zakharyas left 09:25 mcmillhj joined 09:30 mcmillhj left 09:45 mcmillhj joined 09:50 mcmillhj left 09:53 Util joined 09:54 ExtraCrispy joined 10:11 wamba left 10:15 mcmillhj joined 10:22 mcmillhj left
ufobat_ ive a perl6 script, whenever i execute it i am getting a c stacktrace 10:26
*** Error in `/home/martin/.rakudobrew/moar-2018.01/install/bin/moar': free(): invalid size: 0x0000000001f36930 ***
is anyone intersted in it?
timotimo can you reproduce it on 2018.04.1, too? 10:27
ufobat_ haven't installed it :(
let me upgrade my perl6 installation real quick 10:28
10:32 HaraldJoerg joined
ufobat_ timotimo, yes 10:40
nopaste.xyz/?c63738a8fba4aa69#k9Cr.../pyxIl+x8= 10:42
is it a bug in the jit? 10:46
10:47 ChoHag left, domidumont left, domidumont joined
ufobat_ is there anything i can do? 10:57
11:04 markong joined
moritz aren't there environment variables for disabling the JIT compiler? 11:11
MVM_JIT_DISABLE=1 11:12
if you run it with that, it doesn't crash, we know it's the JIT
11:26 pmurias joined, molaf joined
pmurias do we support embedding nqp-j? 11:26
11:27 lichtkind left 11:40 wamba joined, lichtkind joined 11:57 mikejw left
timotimo it's unlikely that it'd be the jit. something somewhere is corrupting the heap and whatever malloc or free happens next will possibly stumble upon it and violently explode 12:05
12:11 ZofBot joined, ChanServ sets mode: +v ZofBot, buggable joined, ChanServ sets mode: +v buggable 12:12 huggable joined, ChanServ sets mode: +v huggable 12:29 domidumont left
ufobat_ with MVM_JIT_DISABLE=1 it doesnt happen 12:46
timotimo can you run it under valgrind with perl6-valgrind-m? 12:47
AlexDaniel jmerelo: any ideas on what should we do with doc translations? 12:48
jmerelo: so we started getting these README pull requests, which is fine
but at the same time… why? :)
jmerelo: I mean, like, long term 12:49
12:53 mcmillhj joined
jmerelo AlexDaniel: we should probably use some professional thing as it's done in the translation of the perl doc 12:58
I was in some hackathon translating stuff to Spanish, and Joaquín Ferrero is doing a great work with that.
jkramer m: sub MAIN() { say $*USAGE } 12:59
camelia Usage:
<tmp>
jkramer Is it supposed to be run automatically in REPL mode?
12:59 athenot joined
jkramer Well I guess m: isn't really REPL 13:00
Geth perl6.org: ryn1x++ created pull request #112:
Update the Rakudo Star download link / description
jkramer In REPL it's run whenever I declare it, no matter how often: dpaste.com/353HXRR 13:01
timotimo the repl is a hack, it makes every new line of code as if you had written it inside curly braces at the end of the previous line 13:04
i.e. you have { sub MAIN(){}; { sub MAIN(){}; { sub MAIN(){}; { sub MAIN(){}; {... } } } }
at the same time, the compiler thinks it's compiling a regular program, so every time it finishes and runs the program the main helper is run along with it 13:05
13:05 athenot_ joined, MilkmanDan left 13:06 MilkmanDan joined, athenot left
jkramer Oh, interesting :) 13:07
timotimo at least that's my educated guess for the main helper thing 13:08
Geth doc: 59852f28cd | (Will "Coke" Coleda)++ | README.de.md
whitespace
13:13
13:25 eliasr joined
Geth doc/car-grant-midrat: dcd83b92f7 | (Zoffix Znet)++ | doc/Language/numerics.pod6
[CaR Grant] Document all allomorphic types
13:26
perl6.org: d2679a6cad | ryn1x++ (committed using GitHub Web editor) | source/downloads/index.html
Update the Rakudo Star download link / description

I believe this linked download page for Rakudo Star is more user friendly and nicer looking than the previously linked downloads directory. The description has also been tweaked a little to better describe the link.
13:27
perl6.org: 7488b900fb | (Zoffix Znet)++ (committed using GitHub Web editor) | source/downloads/index.html
Merge pull request #112 from ryn1x/patch-1

Update the Rakudo Star download link / description
13:28 jmerelo left 13:31 skids joined
Geth doc/car-grant-midrat: fb060ee5b3 | (Zoffix Znet)++ | doc/Language/numerics.pod6
Include info on using allomorphcs with ∈ correctly
13:33
13:34 vike left, ChristopherBotto joined
ChristopherBotto Hello everyone o/ 13:35
moritz \o ChristopherBotto 13:37
ChristopherBotto I was wondering if anyone had experience installing Rakudo-Star on a Lustre filesystem. When I run make rakudo-test, it bombs out on the test "t/01-sanity/55-use-trace.t"
o/ moritz
Rerunning the install and will give the actual error messages. Sorry, I should have done this earlier... 13:39
13:40 vike joined
ChristopherBotto I can install Rakudo-Star on a different file system on the same cluster and it doesn't have any issues. This is for both 2018.01 and 2018.04. I haven't tested installation of earlier versions on the Lustre filesystem, but I can. 13:43
I get this error message "Could not obtain blocking, exclusive lock: Failed to lock filehandle: 38" 13:47
I get the same error message for t/01-sanity/53-transpose.t 13:49
El_Che Once installed, there is no write access needed for the rakudo install directory :) 13:50
pmurias any hints how I can use a maven package from the nqp-j build system? 13:51
13:52 curan left
moritz isn't the nqp-j build system just make? 14:04
pmurias moritz: yep
14:04 mcmillhj_ joined
pmurias moritz: I'm not sure how to use the truffle "sdk" from nqp-j 14:04
14:05 lizmat_ joined, mcmillhj left 14:06 lizmat left, tt left 14:07 greppable6 left, unicodable6 left, nativecallable6 left, statisfiable6 left, undersightable6 left, quotable6 left, yoleaux left 14:08 quotable6 joined, undersightable6 joined, statisfiable6 joined, nativecallable6 joined, unicodable6 joined, greppable6 joined 14:12 Tison left 14:13 nine_ is now known as nine
pmurias moritz: I just mimicked the way other .jars are stored in the 3rdparty dir 14:17
14:26 FROGGS joined 14:35 kurahaupo left 14:38 Zoffix joined
Zoffix m: multi foo (int) { say "here" }; foo 42 14:38
camelia Cannot resolve caller foo(Int); none of these signatures match:
(int)
in block <unit> at <tmp> line 1
Zoffix I thought this was meant to work, 'cause it's a literal there?
m: multi foo (Int, Int) { say "full" }; multi foo(int, int) { say "native" }; foo 42, 42 14:40
camelia full
14:41 kurahaupo joined
Zoffix m: multi infix:<foo> (Int, Int) is pure { "full" }; multi infix:<foo>(int, int) is pure { "native" }; say 42 foo 42 14:41
camelia full
Zoffix m: multi infix:<foo> (Int, Int) is pure { "full" }; multi infix:<foo>(int, int) is pure { "native" }; say 42 foo my int $ = 42
camelia native
Zoffix :S if it can do one, surely it can do both
ufobat_ timotimo, will try 14:43
14:44 khw joined
Zoffix m: multi infix:<foo>(int, int) { "native" }; say 42 foo my int $ = 42 14:45
camelia native
Zoffix m: multi infix:<foo>(int, int) { say "native" }; say 42 foo my int $ = 42
camelia Cannot resolve caller infix:<foo>(Int, Int); none of these signatures match:
(int, int)
in block <unit> at <tmp> line 1
Zoffix .ask jnthn what's a succinct description of when a literal in a call would be nativized. Seems we do it only when one of the args is native AND it's a foldable routine. What's the best way to explain this to end user? irclog.perlgeek.de/perl6/2018-05-08#i_16142804 14:46
14:49 lizmat_ is now known as lizmat
ufobat_ timotimo, does valgrind terminate after it has seen the errors? 14:50
yes
Geth doc/coke/build: 18 commits pushed by (Will "Coke" Coleda)++
review: github.com/perl6/doc/compare/6b4c2...fc7187be26
14:52
doc/car-grant-midrat: 06ebcee10d | (Zoffix Znet)++ | doc/Language/numerics.pod6
[CaR Grant] Document native types
14:55
ufobat_ timotimo, thats the valgrind result 14:58
nopaste.xyz/?4afdfd8c0a84ee0a#6Q9D...dIgOBA6Oc=
Geth doc: Kaiepi++ created pull request #2012:
Document CArray.allocate
15:00
doc: d56e6b3287 | (Ben Davies)++ | doc/Language/nativecall.pod6
Document CArray.allocate
15:04
synopsebot Link: doc.perl6.org/language/nativecall
doc: 98de8d944e | (Ben Davies)++ (committed using GitHub Web editor) | doc/Language/nativecall.pod6
Merge pull request #2012 from Kaiepi/nativecall

Document CArray.allocate
15:05 lucasb joined
Geth doc: 7c3acf5212 | (Moritz Lenz)++ | README.de.md
Fix typos in README.de.md
15:05
15:16 comborico1611 joined
Geth doc/car-grant-midrat: 37e8563f8a | (Zoffix Znet)++ | doc/Language/numerics.pod6
[CaR Grant] Document numeric infectiousness
15:16
donpdonp what do I do with this META6.json 15:19
oh riiight, zef. 15:20
15:23 jmerelo joined 15:24 Sgeo__ joined
jmerelo Hi 15:24
15:25 AlexDaniel left
[Coke] zoffix: "is as follow" -> needs trailing s 15:26
15:26 Sgeo_ left
donpdonp ok how do i use zef with META6 15:30
sooo.. anyone? 15:31
whoops wrong channel for that last comment :)
15:31 itaipu joined
jmerelo donpdonp: zef install . 15:32
donpdonp hmm.
$ zef install . 15:33
Use of uninitialized value of type Any in string context.
in method Str at /home/donp/.rakudobrew/moar-2018.04.1/install/share/perl6/site/sources/E05C399E53A6C4118B11051FFFDDE29C36DE9BF4 (Zef::Distribution) line 109
jmerelo donpdonp: where are you using it? What's META6.json?
donpdonp META6.json => { "depends" : ["Digest::SHA256::Native", "Numeric::Pack" ] } 15:34
Kaiepi looks like you're missing a [ 15:44
jmerelo donpdonp: right, it's kind of bare. 15:45
donpdonp: I'm adding stuff one by one to see what's essential there 15:47
donpdonp jmerelo: ah ok 15:48
looks like ading "name":"x" is enough :)
jmerelo donpdonp: 15:49
right
donpdonp: can you please ask it again in StackOverflow? Kinda want all valuable questions (and answers) to be reflected there.
gfldex m: my @a = [100,86,67,66,23]; say @a[1..*-2]; 15:52
camelia (86 67 66)
gfldex lizmat: is there any advantage to convert to Seq first over using an array slice in stackoverflow.com/questions/501584...-in-python 15:53
timotimo ufobat_: it'd be cool if you could rebuild moarvm passing --debug=3 to its Configure.pl parameters, then we'd get line numbers in the backtraces 15:54
Geth doc/car-grant-midrat: 51e79cb458 | (Zoffix Znet)++ | doc/Language/numerics.pod6
Fix typo
15:55
lizmat gfldex: array slice handling is still very expensive, so I would say yes atm
comborico1611 What is the effect for or() in this statement: $var = $another-var or $another-var2 15:57
Geth ¦ doc: JJ self-unassigned Translate README.md to languages github.com/perl6/doc/issues/1984 15:58
15:59 Kaiepi left, Kaiepi joined
Zoffix comborico1611: that's likely an error 15:59
comborico1611: $var = ($another-var or $another-var2) on the other hand would assign $another-var to $var unless it's false, in which case $another-var2 would be assigned. The original version is likely an error because due to precedence $var is assigned $another-var always and if after assignment it's false then $another-var2 is evaluated, presumably in sink context 16:00
gfldex m: my $a = True and say "True"; my $b = False and say "False"; 16:02
camelia True
Zoffix donpdonp: there are a bunch of required parameters (some of which zef currently ignores). Like version, and minimum supported perl version. It's still being specced at the moment, but you can see a work in progress of what's available and what's required here: design.perl6.org/S22.html#META6.json
comborico1611 Zoffix: Thanks! 16:04
Zoffix comborico1611: or put another way, the `and` or `or` chains and some other ops "short curcuit". They can stop evaluating the rest of the args after a certain point. So, for example `42 and say "foo"` is equivalent to `say "foo" if 42`. And sometimes it's handy to use the `and` version since it puts the predicate at the beginning rather than the end
comborico1611 Hmm. 16:05
Okay. Thanks!
Does anyone know where to find brian d foy's draft?
... Of "Learning Perl 6". 16:06
El_Che comborico1611: you need to pay up to a certain level to get that, I think
comborico1611 I see. Thanks!
16:07 yoleaux joined, ChanServ sets mode: +v yoleaux
Zoffix comborico1611: yeah, you need to be a backer. Did you have some particular question about it tho? 16:07
.ask jnthn what's a succinct description of when a literal in a call would be nativized. Seems we do it only when one of the args is native AND it's a foldable routine. What's the best way to explain this to end user? irclog.perlgeek.de/perl6/2018-05-08#i_16142804
yoleaux Zoffix: I'll pass your message to jnthn.
comborico1611 Zoffix: Nope. Just thought I could find something to complain about I'm sure. (sarcasm) 16:09
Zoffix Ah
Geth doc/car-grant-midrat: 9adf51aaa4 | (Zoffix Znet)++ | doc/Language/numerics.pod6
[CaR Grant] Show examples of autoboxing issues

and how to deal with them
16:10
comborico1611 I'm on the fence whether to purchase it or not. Low on money. I'm trying to move to the next level of reading programs rather than beginner books. At the moment, I have the page open in Think Perl 6, going over it again. This time doing the problems. 16:11
jmerelo Another technical report on contributions to perl6/doc repo by analyzing commits www.researchgate.net/publication/3...icationCTA 16:12
gfldex lizmat: in the weekly the following does link anywhere [] reduce with anonymous function by Eugene Barsky.
El_Che comborico1611: you'll probably get more out of moritz books and writing small programs for confined problems
jmerelo gist of it is: lots of commits in April, monthly number of authors ~ 30, the first hackathon brought lots of new authors, the rest did not. 16:13
Zoffix comborico1611: save the money. Books suck. Also, bdfoy writes Perl 6 with a very heavy Perl 5 accent. 16:14
lizmat gfldex++ # fixed
yoleaux 13:41Z <brrt> lizmat: can you try jit-moar-ops once more? I've added new stuff
comborico1611 El_Che: I have Mortiz's book. Not as good as Rosenfeld's. At least for the level I am currently at. 16:15
moritz Zoffix: I don't think books suck (obviously :D); it's just that some people need a more curated experience than others
though looking back on it, I think I'm more proud of the regex book than P6F
El_Che comborico1611: yes, rosenfield's learn you to program, moritz's teaches you some features of the language 16:16
Zoffix moritz: if you're low on money, they suck :) 16:17
comborico1611: I'd suggest you seek out some free general programming book and go through it with Perl 6 as your language of choice.,
comborico1611 Zoffix: I've gone though several now -- around... four books. Books by Deitel are my favorite. Tons of repetition. 16:19
moritz Zoffix: yes, agreed :)
El_Che comborico1611: I am the type of person that *hates* repetition and never does exercises :) 16:20
moritz though if one is low on money, and knows the author, asking nicely can't hurt
El_Che hehe
Zoffix comborico1611: then start writing code :) github.com/perl6/perl6-most-wanted...ed-modules 16:21
El_Che no, start solving your small usecases first :)
Zoffix Contribute to rakudo core :) 16:22
jmerelo Help with the documentation :-)
El_Che somethng smallish that you would use bash or some basic perl/ruby/python
Zoffix Lots of LHF tickets: github.com/rakudo/rakudo/issues?q=...abel%3ALHF
16:23 [Sno] left 16:24 Zoffix left
comborico1611 Zoffix: maybe so (to start writing code). 16:25
I can't figure out why this is returning false: hastebin.com/hukapexigo.pl
Is it the ( ) issue? 16:26
timotimo yes, the or is at fault 16:27
your program keeps doing $flag = $flag over and over
jkramer I find little coding challenges useful when learning a new language, like the stuff that's posted here: www.reddit.com/r/dailyprogrammer/
timotimo which doesn't change it at all
comborico1611 jkramer: Thanks! I'll visit it now.
timotimo you want || there instead 16:28
jkramer There's also Project Euler and other sites with challenges, but they're usually heavily focused on math problems and not so much "real world" programming tasks
comborico1611 timotimo: I want || because it doesn't require (), or for another reason besides that? 16:29
16:30 domidumont joined
lucasb $flag = $flag or is-it-lowercase $char; 16:30
$flag or= is-it-lowercase $char; 16:31
comborico1611 lucasb: Don't quite get it. Is that like $flag = $flag (or is-it-lowercase $char) ? 16:32
lucasb more like: $flag = ($flag or is-it-lowercase $char) :)
comborico1611 Yeah, that's the correct one.
Anyways, it is good to know there is some subtle differences between or() and ||. 16:33
16:34 scimon left 16:35 dakkar left, itaipu left
timotimo i wouldn't spell it or() 16:37
lucasb yeah, looks like a builtin function, which doesn't exist. 'or' is binary operator
comborico1611 I didn't realize operators were different from functions. 16:39
timotimo in one way they are, in another way they aren't
comborico1611 I thought built-in functions were called operators.
jkramer m: or() 16:40
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
or used at line 1
comborico1611 But i'll go back to 'or'. I like doing it Lisp style with all caps. 16:41
jkramer: I see your point.
m: or
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
or used at line 1
comborico1611 m: say
camelia 5===SORRY!5===
Argument to "say" seems to be malformed
at <tmp>:1
------> 3say7⏏5<EOL>
Other potential difficulties:
Unsupported use of bare "say"; in Perl 6 please use .say if you meant to call it as a method on $_, or use an …
comborico1611 jkramer: Dailyprogrammer is really neat. Thanks! 16:44
Off to lunch.
16:47 lindylex joined
lucasb I wish to make some comments about github.com/perl6/doc/blob/car-gran...#L535-L575 ; I'm not sure if I'm on the same page 16:49
"no auto-boxing will occur with a multi candidate--you must provide a native candidate for it to be callable" 16:50
m: multi f(Int) { 'Int' }; say f my int $x = 10 16:51
camelia Int
jnthn Probably should say not auto-*un*boxing 16:52
m: multi f(int) { 'int' }; say f 10
camelia int
jnthn m: multi f(int) { 'int' }; say f my $x = 10
camelia Cannot resolve caller f(Int); none of these signatures match:
(int)
in block <unit> at <tmp> line 1
lucasb m: multi f(Int) { 'Int' }; say f 10 16:53
camelia Int
lucasb m: multi f(Int) { 1+2 }; say f 10
camelia 3
lucasb oops, sorry wrong snippet :)
here: 16:54
m: multi f(int) { 1 }; say f 42 # ok
camelia 1
lucasb m: multi f(int) { 1+2 }; say f 42
camelia Cannot resolve caller f(Int); none of these signatures match:
(int)
in block <unit> at <tmp> line 1
16:54 Zoffix joined
lucasb idk if this is related to constant-foldablity of the function body 16:54
lindylex I am having an error when try to pass values to a subroutine. This is the code pastebin.com/yx8g9Bg4 16:55
lucasb "is pure" doesn't help either. Should it?
Zoffix TBH I don't get at all what the rules are here. What's the idea behind what is and what isn't dispatchable when types don't match exactly?
yoleaux 16:47Z <jnthn> Zoffix: "one of the args is declared native" is the intended semantics; I'm a tad surprised that it's only doing this when it turns out ot be foldable however
Zoffix lindylex: don't put space between `printBoxes` and `(`
timotimo comborico1611: you're passing a list of two entries to the printBoxes sub 16:56
oh, that was lindylex, not comborico1611
sorry about that
Zoffix lindylex: right now you're passing a single list; without space, you'll be passing two args. You can also just remove the parentheses entirely
jnthn Zoffix: The goal is not not make people have to write "$x + my int $ = 1"
Zoffix: While at the same time not using native candidates when a result could overflow
lindylex Zoffix : Thanks that worked.
jnthn Zoffix: Thus the principle being "you must have done something to opt in to the native candidate" 16:57
timotimo so, i'm having an idea i think
Zoffix m: constant $x = 10; multi f(int) { 'int' }; say f $x
camelia Cannot resolve caller f(Int); none of these signatures match:
(int)
in block <unit> at <tmp> line 1
jnthn Zoffix: Using a variable explicitly declared as a native type should suffice, and in that case we'll treat the other argument as a literal
That's already boxed by the time it gets there, so it's not a literal.
timotimo shouldn't we be able to figure out that the call to some sub looks like nameOfSub (1, 2, 3) and say "you only passed 1 argument, but it's a list. perhaps the space wasn't supposed to be there?"
Zoffix OK, so only literals get special treatment. 16:58
jnthn Yes. Actually whenever we encounter a literal when parsing, then - unless it's too large - we code-gen a QAST::Want node that holds both the boxed and unboxed forms
Specifically to put off making a commitment until later 16:59
Zoffix If a QAST::Want is the last node of a QAST::Block do you have to gen all of the alternatives for each invocation or does it know the "context" it's being called in? 17:01
s/gen all/evaluate all/;
What I mean is some sub calls are in void context and IIRC we evaluate the last statement in full just to throw it away on return. 17:02
(this isn't related to the native stuff; I just got reminded about QAST::Want stuff :P)
timotimo: we do it in X::Multi::NoMatch for writability stuff, so I'd guess the answer is yes 17:04
m: 5++
camelia Cannot resolve caller postfix:<++>(Int); the following candidates
match the type but require mutable arguments:
(Mu:D $a is rw)
(Int:D $a is rw)

The following do not match for other reasons:
(Bool:D $a is rw)
(Bool:U $a …
Zoffix "the following candidates␤match the type but require mutable arguments" <-- that is printed if it sees the types match but not writability
timotimo well, ideally it wouldn't trigger if you do something like sub-that-takes-two $list-of-things 17:06
so it'd want a piece in the grammar that figure out if there was a space and literal parentheszised list
jnthn Zoffix: It only has intra-QAST::Block applicability at code-gen time, so it'll default to just returning the object stuff
Zoffix ok 17:07
jnthn Zoffix: Spesh may post-inline throw away useless void context stuff, though :)
(There's a whole bunch of ops marked :pure)
Zoffix Ah
jnthn So there is some hope :)
b2gills weekly www.researchgate.net/publication/3...gh_commits 17:23
weekly: www.researchgate.net/publication/3...gh_commits
notable6 b2gills, Noted!
Zoffix heh, that URL gives me "We've picked up some unusual traffic from your network and have temporarily blocked access from your IP address." 17:24
jmerelo Zoffix: ResearchGate can be picky sometimes... 17:26
As usual, any suggestion or comment is welcome. You can in fact comment right there if you're registered (unlikely if you're not in academia, but still...)
17:27 lucasb left 17:29 itaipu joined 17:31 Praise joined, Praise left, Praise joined, pilne joined
Geth doc/car-grant-midrat: 95fd2d7b75 | (Zoffix Znet)++ | doc/Language/numerics.pod6
Rewrite native dispatch section

Per info in irclog.perlgeek.de/perl6/2018-05-08#i_16143496 and irclog.perlgeek.de/perl6-dev/2018-...i_16143431
17:37
doc: f73286ce60 | 陈梓立++ (committed using GitHub Web editor) | README.zh.md
Update README.zh.md
17:38
17:40 stmuk joined
Geth doc: 7397c2a34a | 陈梓立++ (committed using GitHub Web editor) | README.zh.md
Update README.zh.md
17:41
doc/car-grant-midrat: 1f61fd40d6 | (Zoffix Znet)++ | doc/Language/numerics.pod6
Document default values for native numerics
17:42 stmuk_ left 17:43 st_elmo joined 17:44 Zoffix left
Geth doc: 8b085b57e4 | (Will "Coke" Coleda)++ | xt/words.pws
learn new words
17:45
17:49 ChoHag joined 17:51 ttkp6 joined 18:20 AlexDaniel joined 18:21 Sauvin left 18:25 dogbert11 joined 18:26 windyhouses joined 18:28 windyhouse left, dogbert17 left
jmerelo March and April have been the months with the highest number of visitos to docs.perl6.org www.p6c.org/stats/doc.perl6.org#Uni...ch%20month 18:35
ingy O HAI. I CAN HAZ WRITEZ P3RL6. BEE SCRRRD! 18:39
lindylex If I have a sub with parameter and I want set a minimum for a value. Can I do this without doing a test and reassign the minimum within the sub?
ingy require %*ENV<P6MOD>; # does not dwim 18:40
18:40 darutoko left
timotimo ingy: what is P6MOD supposed to be? 18:41
ingy a module name
require(%*ENV<P6MOD>); # works
timotimo lindylex: i can't think of a better way than having the parameter be "is copy" and then doing "$the-param max= $minimum-value;"
18:42 Zoffix joined
ingy require: ... ? 18:42
timotimo no, not with :
colomon ingy!
ingy colomon!!
I(ngy) am back.
colomon \o/ 18:43
jmerelo That was a sneak preview to the April TPF grant report, which is right here jj.github.io/TPF-Grant/April.html
lindylex timotimo : thanks.
ingy turns out I'm giving a talk next month on P6 stuff
jmerelo I'll be linking other reports, charts, and diverse stuff I've been doing on jj.github.io/TPF-Grant, which is the "official" grant site.
ingy so I'll prolly be bugging you for a month 18:44
Zoffix ingy: require ::(%*ENV<P6MOD>)
18:44 st_elmo left
timotimo i was about to say 18:44
env P6MOD=Cro perl6 -e 'require ::(%*ENV<P6MOD>); say ::("Test")::' → No such symbol 'Test'
ingy Zoffix: what's wrong with require(%*ENV<P6MOD>) 18:45
timotimo env P6MOD=Test perl6 -e 'require ::(%*ENV<P6MOD>); say ::("Test")::' → (Test)
18:45 pull_phinger joined
Zoffix ingy: does that load by path or something? 18:45
s: &require
SourceBaby Zoffix, Something's wrong: ␤ERR: ===SORRY!=== Error while compiling -e␤Undeclared routine:␤ require used at line 6␤␤
FROGGS ingy: require( would be about a function call
but require is a statement
Zoffix FROGGS: what's require("Foo")? Seems to be parsed as something that's trying to load something 18:46
timotimo m: say &require
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
require used at line 1
timotimo ah, it's syntax indeed, not a sub
Zoffix s: &REQUIRE_IMPORT
SourceBaby Zoffix, Sauce is at github.com/rakudo/rakudo/blob/4e88...s.pm6#L606
FROGGS O.o
I dunno 18:47
Zoffix Yeah, briefly glancing at ASTs looks to be `require("Foo")` is the same as `require "Foo"`
18:47 lindylex left
FROGGS but it seems it is not tested at all 18:47
m: require(::("Test")) 18:48
camelia No such symbol 'Test'
in block <unit> at <tmp> line 1
FROGGS m: require ::("Test")
camelia ( no output )
FROGGS m: require("Test")
camelia Could not find Test 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::Repository::AbsolutePath<840…
Zoffix m: multi foo(Int:D $x where * ≥ 42) { say $x }; multi foo(Any) { foo 42 }; foo 100; foo 10 18:50
camelia 100
42
Zoffix lindylex: ^ another viable way 18:51
BTW, `require %*ENV<P6MOD>;` tries to load `~%*ENV`
ingy yeah 18:52
I thought that was a bit silly
which was my original point
Zoffix Filed as R#1805 18:54
synopsebot R#1805 [open]: github.com/rakudo/rakudo/issues/1805 [LTA] `require %*ENV<P6MOD>;` tries to load `~%*ENV`
18:54 Juerd left
ingy thanks Zoffix :) 18:56
I did right pseudo-p6 for a living for a year 18:57
time to learn the real thing!
timotimo is that the fanlang thing?
ingy yeah
Zoffix m: multi foo($x where * ≥ 42) { rand }; multi foo(Any) { rand }; { for ^100_000 { foo 100; foo 10 }; say now - ENTER now } 18:58
18:58 jmerelo left
camelia 3.02742609 18:58
Zoffix m: multi foo($x is copy) { $x max= 42; rand }; { for ^100_000 { foo 100; foo 10 }; say now - ENTER now
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3{ foo 100; foo 10 }; say now - ENTER now7⏏5<EOL>
expecting any of:
postfix
statement end
statement modifier
stat…
Zoffix m: multi foo($x is copy) { $x max= 42; rand }; { for ^100_000 { foo 100; foo 10 }; say now - ENTER now }
camelia 0.12492138
Zoffix m: say 3/.12
camelia 25
Zoffix 25x slower... wth is it doing to be that slow :S
Ah. Dispatch caching. nm
19:01 avuserow joined
avuserow Hi all, anyone know of an Expect-like module or similar functionality in core? 19:03
19:03 domidumont left
avuserow specifically I'm trying to test an application that has interactive readline-based prompts 19:03
Zoffix Well, we have Proc and Proc::Async in core. 19:05
You can write to STDIN and read from STDOUT of a process
There's a somewhat massive example here: docs.perl6.org/type/Proc::Async 19:06
For Proc, see &run or &shell routines
timotimo i do think expect has a bunch quality-of-life features over what we have?
19:07 raynold joined
Zoffix Yeah, should be OK to test something out, depending on what exactly being tested. 19:07
Zoffix &
19:07 Zoffix left
ufobat_ timotimo, can i do this --debug=3 thingy with rekudobrew? 19:08
avuserow yeah, Proc is working so far. just wanted to make sure that I wasn't missing something higher-level before writing some helper functions
timotimo ufobat_: i do believe it has an option to pass a Configure.pl option to rakudo, which has an option to pass options to moarvm's configure 19:09
so it'd look kind of sort of like --configure-option=--moar-configure-option=--debug=3
ufobat_ ah!
it think it was --moar-option 19:10
timotimo that's for Configure.pl, not sure what rakudobrew wants
but i'm -1 on rakudobrew anyway ;)
19:11 MilkmanDan left
ufobat_ should i rerun the valgrind thingy? 19:11
timotimo yes, please
ufobat_ will do - but taking a shower, give me 30 minutes
19:11 MilkmanDan joined
comborico1611 timotimo: No worries. (Confused me with someone else.) 19:17
19:19 skids left 19:22 stmuk_ joined 19:23 stmuk left
ufobat_ timotimo, nopaste.xyz/?2af9423615fcfbec#YMdD...i4W1Yp2Mk= 19:27
does this help? 19:28
timotimo a little
where did this random address come from, i wonder
wait, there's still no line numbers?
19:33 brrt joined
ufobat_ should i rebuild with a different level? 19:34
ingy how do I splat in a call, like: foo(*@bar) 19:41
lizmat foo(|@bar) 19:42
ingy I am asking google first :)
lizmat: ta
19:44 athenot_ left, athenot joined
ingy did it used to be: foo(* @bar) ?? 19:45
ufobat_ good night everyone :) 19:46
lizmat ingy: maybe long, long ago... 19:47
19:47 robertle_ joined
ingy 2005: books.google.com/books?id=ft4qUvIq...mp;f=false 19:50
19:50 stmuk joined, dogbert11 left
lizmat ingy: you're masochistic if you use that as a source for Perl 6 knowledge 19:51
:-)
ingy google is my masochistic friend
gismf
gimmf 19:52
19:52 stmuk_ left
ingy bring out the GIMMF! 19:52
sjn strictly, isn't google the sadist in this relationship? :)
lizmat sjn: that would be my point :-) 19:54
ingy gimsf? 19:56
20:06 sno joined 20:08 vcv_ joined 20:09 lichtkind left 20:12 squashable6 left, squashable6 joined 20:15 athenot_ joined 20:17 athenot left 20:18 ChristopherBotto left 20:21 brrt left 20:26 Juerd joined, skids joined 20:28 pull_phinger left
ingy is there an easier way to construct a Foo: pastebin.com/K9zKjsQr 20:53
stmuk by hiding the actual download links via redirects we've made it hard for people to download tarballs via either curl or wget on servers 20:54
Juerd ingy: Foo.new(|$h) 20:55
ingy :)
ingy lays some |
stmuk neither does it seem possible to download using http anymore
ingy stmuk: url? 20:57
ie: where's this download page?
stmuk we are linking to rakudo.org/files/ 20:58
El_Che this is pretty straigtforward: rakudo.perl6.org/downloads/ 20:59
stmuk the download will work but not with the correct filname
El_Che (that's where my Dockerfiles point to)
stmuk El_Che: I don't think it's linked from anywhere now .. we know it but how would a downloader?
El_Che stmuk: I got it from somewhere on an official page, but everything has changed now 21:00
21:00 Zoffix joined
Zoffix stmuk: what's the problem with the links? 21:00
stmuk see above
Zoffix stmuk: I still don't follow. 21:01
stmuk 1. there is no http download possible
Zoffix That's on purpise. 21:02
El_Che that's a good thing
ingy curl -LOv rakudo.org/latest/star/source
stmuk I've already had to help someone on the list with that
Zoffix Downloads with curl should work. The build instructions use curl
21:02 lucasb joined
Zoffix on that page 21:02
stmuk I think ingy's form is now needed for the correct filename
ingy it actually saves the tarball as 'source' :\ 21:03
Zoffix hm
stmuk ingy: that's the problem I had
El_Che ok, Linenoise and Readline are both failing to install. damn
Zoffix it should b set via content disposition
lucasb yeah, wget has that option 21:04
Zoffix It works fine for me: i.imgur.com/fWcp7P4.png 21:05
El_Che I get source as well
Zoffix El_Che: with -LJO flags? 21:06
El_Che no
that works
with my standard -sLO flags
lucasb -J, --remote-header-name Use the header-provided filename (H)
stmuk ah
El_Che just did a -h to look it up
wget is so much easier 21:07
(except for REST)
Zoffix I don't think it's due to redirect 'cause we used to use those before, but that we slurp and serve the file via the app (I was kinda thinking this can let us track what is being downloaded) 21:09
the actual tracker ain't implemented tho
and we could go back to redirecting to static files so -J ain't needed 21:10
stmuk El_Che: wget has the same problem it will download "source" too 21:11
I can't see a wget flag like curl's -J
El_Che mm
lucasb --content-disposition honor the Content-Disposition header when
choosing local file names (EXPERIMENTAL)
:)
El_Che lucasb is on fire
Zoffix yikes 21:12
stmuk ah yes that works I should have spotted it
21:13 athenot_ left
stmuk someone on the perl6-users list seemed to report http didn't redirect to https using curl as well but I tend to think they were doing something wrong 21:15
21:15 lichtkind joined
lichtkind please what is the class of type objects becasue there is no "type" class 21:16
stmuk actually it was off-list 21:17
stmuk wonders if Content-Disposition can be abused to overwrite arbitary files 21:18
21:20 mcmillhj_ left, Guest43927 left
stmuk I wonder if clients ensure .bashrc for example can't be overwitten by apparent foo.tar 21:21
www.w3.org/Protocols/rfc2616/rfc26...ml#sec15.5 21:22
FROGGS lichtkind: type objects are any class itself 21:26
lichtkind you mean they are ojects of class any? 21:27
or type object of int is of int
FROGGS lichtkind: docs.perl6.org/language/objects#Type_Objects
the type object of 42 is Int
Int is the undef version of an integer 21:28
lichtkind thank you
FROGGS Int is the class, which itself is an object whith properties and methods
stmuk Zoffix: maybe it would be better to return to static files for the time being? 21:32
21:32 rindolf left, FROGGS left
lichtkind FROGGS and can i add sprintf flags like my ouw %c ? 21:33
21:40 pmurias left 21:43 mcmillhj joined
ingy I think TEst::Builder is hella broken: pastebin.com/Gi769w3D 21:44
timotimo ingy: what does that code do? 21:45
i mean what does it result in? 21:46
ingy all tests pass
El_Che stmuk: autch
ingy which does make for some pretty awesome testing
timotimo seems like it behaves just like Test's is 21:47
by comparing stringifications
which is why we try to discourage it everywhere we go
and instead ask people to use is-deeply
ingy what is the stringification for $tap.is("123", "42", 'Test 2'); ? 21:48
timotimo oh wait
sorry, my head is sleepy
ingy np
21:48 mcmillhj left
timotimo wow 21:48
ingy I'll try Test
timotimo my Bool $test = ?$got eq ?$expected;
that's from 7 years ago it seems like 21:49
ingy well all the tests pass, so...
:)
should I file an issue? 21:50
Test seems to work 21:51
timotimo i suppose; i wonder why Test::Builder seems like the right thing to use for you
are you actually writing a library that is for testing?
ingy yes 21:52
timotimo well, that explains that, then
ingy I just successfully ported it from p5 to p6 with little effort in the past hours
timotimo cool 21:53
ingy perl6++
timotimo is this TestML?
ingy the new TestML yes
timotimo mhm
ingy it's pretty amazing :)
or will be
timotimo i remember trying to work on the yaml module that uses testml, but testml wasn't able to parse the test format for its own tests or for yaml i think
so i tried to fix that, but foud out it implemented something that isn't actually testml compatible and i just tableflipped and went away 21:54
ingy yeah, the old stuff got left in a bad state
well all you had to do is wait for 7 years
timotimo i did that! it worked!!
ingy you++!!!
perl6 has always been about waiting :)
b2gills ingy: Is this more what you were looking for? `use ::(BEGIN %*ENV<P6MOD>)` 22:00
ingy confirmed, TestML p5 -> p6 totally works
b2gills: not really, but that's cool! 22:01
I'll push the code now, if anyone wants to see
22:02 mcmillhj joined 22:06 mcmillhj left 22:09 dataangel left 22:11 dataangel joined 22:15 itaipu left 22:19 mcmillhj joined 22:24 mcmillhj left 22:32 Herby_ joined, robertle_ left
Herby_ o/ 22:33
timotimo o/ 22:35
Herby_ timotimo: how goes it?
22:35 Guest629 joined
timotimo Herby_: i just got reminded of the weekly "what's everyone working on" thread idea 22:35
yesterday
the other r/perl6 mods had not answered my mod mail about it
Herby_ ahh. I was wondering where that was sitting 22:36
were they onboard?
22:36 mcmillhj joined 22:38 Guest629 left 22:41 mcmillhj left
timotimo i don't think they even red it 22:41
Herby_ ah
lucasb modules.perl6.org aggregates modules from both CPAN and github, right? 22:42
timotimo lucasb: that is correct
lucasb I noticed some modules show up duplicates on search results. maybe thats the reason?
timotimo Herby_: i see now that raiph answered 5 hours ago
Herby_ I might make a thread for it. if its useful then maybe it can be a weekly thing
timotimo they're on board, and they had seen it already
we might want to consider running a bot
because i personally tend to forget such things
maybe we'll want to coordinate it against the weekly, i.e. mondays 22:43
either start the thread on the same day so the weekly can show off last week's stuff
Herby_ great!
timotimo or start it 3-4 days off so people can be reminded to join in right in the middle
m: say pi.base(7) 22:44
camelia 3.066365143
timotimo m: say pi.base(7).comb().map(<mon tue wed thu fri sat sun>[$_])
camelia Use of Nil in string context
in block <unit> at <tmp> line 1
Unable to call postcircumfix [ (Any) ] with a type object
Indexing requires a defined object
in block <unit> at <tmp> line 1
timotimo m: say pi.base(7).comb().map(<mon tue wed thu fri sat sun>[$_ // 0])
camelia Cannot resolve caller map(Seq: Str); none of these signatures match:
($: Hash \h, *%_)
(\SELF: &block;; :$label, :$item, *%_)
in block <unit> at <tmp> line 1
timotimo m: say pi.base(7).comb().map({<mon tue wed thu fri sat sun>[$_ // 0])
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3({<mon tue wed thu fri sat sun>[$_ // 0]7⏏5)
expecting any of:
statement end
statement modifier
statement modifier loop
timotimo m: say pi.base(7).comb().map({<mon tue wed thu fri sat sun>[$_ // 0]})
camelia Cannot convert string to number: radix point must be followed by one or more valid digits in '3.⏏' (indicated by ⏏)
in block <unit> at <tmp> line 1
22:44 espadrine left
timotimo m: say pi.base(7).comb().map({<mon tue wed thu fri sat sun>[try $_ // 0]}) 22:45
camelia Cannot convert string to number: radix point must be followed by one or more valid digits in '3.⏏' (indicated by ⏏)
in block <unit> at <tmp> line 1
timotimo m: say pi.base(7).comb().skip(2).map({<mon tue wed thu fri sat sun>[$_]})
camelia (mon sun sun thu sun sat tue fri thu)
timotimo people will appreciate bringing pi into our schedule
Juerd tau! ;) 22:51
lucasb example of duplicated entries: modules.perl6.org/search/?q=ddt 22:52
ingy timotimo, et al: github.com/testml-lang/testml/tree...ter#testml 22:57
I made the readme be kinda p6-leaning :) 22:58
22:58 giraffe joined 22:59 giraffe is now known as Guest34373
ingy github.com/testml-lang/testml/blob...tML/Run.pm and github.com/testml-lang/testml/blob...tML/Run.pm are about 150 lines of equivalent p5 and p6 code 22:59
the complete version I wrote for OpenResty was about 800 lines (for p5) 23:00
anyway I'm totally happy that p6 is a no-brainer 23:01
I guess the big-easy is that they are both TAP
I started porting to JS yesterday, and the hard part will be interfacing with mocha.js 23:02
which doesn't have a Test::Builder mentality
github.com/mochajs/mocha/wiki/Usin...mmatically makes it seem like it does 23:03
but it doesn't let me hook into where I need to 23:04
sigh
ingy is a fairly accomplished monkey-patcher :D
23:07 mcmillhj joined
comborico1611 I'm wondering why these two routines produce different boolean: hastebin.com/ulalobikiq.pl 23:11
23:12 mcmillhj left
lucasb "any-lowercase8" is actually "all-lowercase" 23:13
comborico1611 Yes, but how?
lucasb "for each char, if it isn't lowercase, then return False" <-- this checks if all chars are lowercase, right? 23:14
23:14 wamba left
comborico1611 Right. 23:14
Hmm. Something is going over my head.
Sorry about not including other routine...
lucasb I assumed "is-it-lowercase" does what its name says :) 23:15
comborico1611 For all the other any-lowercase series, all that mattered was the last letter being lowercase. If lowercase came first, then it would still fail. 23:16
Let me just paste it all on there, I guess.
23:17 HaraldJoerg left
comborico1611 But this last routine (8) is different somehow. It verifies each letter, but I don't see a difference between it (8) and 7. 23:18
tobs A more imperative way to explain it is: any-lowercase7 returns at $char eq 'c' and any-lowercase8 at $char eq 'A'
comborico1611 Hmm.
Yes, somewhere there is my puzzlement. 23:19
tobs run the program on comboricoVM
with pen and paper
comborico1611 Heh.
Okay. I'm not sure I know a... forgot the term... for the squares diamonds, dots lines.. 23:20
ingy timotimo: github.com/perl6-community-modules...r/issues/7 23:21
timotimo: maybe you can weigh in on that, since you seem to have figured it out... 23:22
comborico1611 I see where I was confused. If returning true fails, another cycle is performed. Whereas, returning false stops teh cycle. If you catch my drift. 23:25
lucasb Zoffix: Would you be willing to add the "--delete" option to github.com/perl6/modules.perl6.org...er.pm#L138 , so that rsync deletes extraneous files that are not in CPAN anymore ? 23:29
build log warns about "Could not figure out name and version for dist: id/U/UG/UGEXE/Perl6/v0.1.30.meta
the file is there in backpan, but was removed in currentpan 23:30
23:34 vcv_ left 23:37 mcmillhj joined 23:41 mcmillhj left 23:50 Kaiepi left, Kaiepi joined 23:52 lucasb left 23:55 mcmillhj joined 23:59 mcmillhj left