»ö« 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.
AlexDaniel [Coke]: oh, now that I backlogged #moarvm I see it was mentioned already :) 00:24
jmerelo Morning 05:07
yoleaux 14 May 2018 22:16Z <El_Che> jmerelo: I would propose a "obsolete" tag. There are question tagged with perl6 on SO that are no longer relevant or do not even work anymore (e.g. perl6 on parrot)
14 May 2018 22:17Z <El_Che> jmerelo: the tag and a comment on the question
jmerelo .tell El_Che I think it's better to update them where possible... 05:08
yoleaux jmerelo: I'll pass your message to El_Che.
jmerelo greppable6: nativeconv 05:11
greppable6 jmerelo, Found nothing!
Geth doc: ec3ec9e99d | (JJ Merelo)++ | doc/Language/nativecall.pod6
Reviews NativeCall

Eliminates accidental MD refs #2022
Also reviews changes in #1376 have been made. "is native" is added. Still the page needs improvement, but this closes #1376
05:22
synopsebot Link: doc.perl6.org/language/nativecall
Geth doc: e24101742d | (JJ Merelo)++ | doc/Language/5to6-nutshell.pod6
Suggests nextsame/nextwidth

Which would close #1389. Also eliminates accidental MD, references issue #2022. Some minor reformatting.
05:31
synopsebot Link: doc.perl6.org/language/5to6-nutshell
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 06:01
buggable New CPAN upload: PDF-Class-0.1.9.tar.gz by WARRINGD modules.perl6.org/dist/PDF::Class:cpan:WARRINGD 06:12
Guest60583 `run 'echo', "\$0"` 06:16
how do you get $0? 06:17
jmerelo Guest60583: as in the executable name? Or the first argument of an external program? 06:18
tyil Guest60583: you mean just capture the output of the `run`?
Guest60583 `shell 'echo $0'` = /bin/sh
jmerelo p6: run "echo", "\$0" 06:19
camelia run is disallowed in restricted setting
in sub restricted at src/RESTRICTED.setting line 1
in sub run at src/RESTRICTED.setting line 14
in block <unit> at <tmp> line 1
Guest60583 shell = qx = qqx 06:20
jmerelo perl6 -e 'shell "echo \$0"' returns "/bin/sh" in my case 06:21
Guest60583 what does run use if not /bin/sh?
tyil run calls the application directly, not a shell iirc
Guest60583 how?
tyil !p6 my $p = run 'echo', '$0', :out; $p.out.slurp.say; 06:22
p6: my $p = run 'echo', '$0', :out; $p.out.slurp.say;
camelia run is disallowed in restricted setting
in sub restricted at src/RESTRICTED.setting line 1
in sub run at src/RESTRICTED.setting line 14
in block <unit> at <tmp> line 1
tyil sad
tyil but that returns the literal $0 to me 06:22
Guest60583 how do you get the environment?
tyil thats in %*ENV 06:23
Guest60583 `run 'echo', "%*ENV"` = %*ENV 06:24
tyil !p6 dd %*ENV 06:25
p6: dd %*ENV
camelia {:HOME("/home/camelia"), :LC_CTYPE("en_US.UTF-8"), :LOGNAME("camelia"), :MANPATH("/home/camelia/perl5/perlbrew/perls/perl-5.20.1/man:"), :ME("tyil"), :PATH("/home/camelia/perl5/perlbrew/bin:/home/camelia/perl5/perlbrew/perls/perl-5.20.1/bin:/usr/local…
Guest60583 is `run` faster than `echo` & `qx` & `qqx` because it does it without the shell overhead? 06:26
s/echo/shell
moritz Guest60583: have you tried to benchmark it? 06:27
jmerelo Guest60583: that might be the case. Did you benchmark it?
(and I saw moritz's answer while I was writing...)
Guest60583 how do you benchmark it?
cpu scheduling and stuff can interfere
run only runs a single command 06:28
loops are in the shell
s/shell/\/bin\/sh 06:29
jmerelo Guest60583: that's always the case. Simply run it several times, up to 30. 06:31
El_Che jmerelo: I am not updating the early perl6 implementation :) 06:34
yoleaux 05:08Z <jmerelo> El_Che: I think it's better to update them where possible...
El_Che s
let's update pugs and parrot and see how far we get :)
jmerelo El_Che: good luck 06:41
El_Che jmerelo: I'll create 2 tickets and tag them with TPF GRANT JMERELO 06:49
:)
"yes he can"
jmerelo El_Che: "yes, he will definitely, maybe, give it a try" 06:50
donpdonp m: Buf.new(227,225,243,232) eqv Buf.new(227,225,243,232) 06:51
camelia WARNINGS for <tmp>:
Useless use of "eqv" in expression ".new(227,225,243,232) eqv Buf.new(227,225,243,232)" in sink context (line 1)
El_Che train arrives 06:52
bbl
donpdonp m: say "{Buf.new(227,225,243,232) eqv Buf.new(227,225,243,232)}"
camelia True
donpdonp im seeing something weird. 06:53
say "chain check {$header.chain_id.perl} eqv {$chain.params.header.perl} is {$header.chain_id eqv $chain.params.header} {Buf.new(227,225,243,232) eqv Buf.new(227,225,243,232)}";
chain check Buf.new(227,225,243,232) eqv Buf.new(227,225,243,232) is False True 06:54
the perl output is the same as the literal expression (the last one), yet using the variables with eqv is false, and the literals with eqv is true
jmerelo m: say + "abcrd-12.3.4".comb.grep: /<alnum>/ 07:54
camelia 9
jmerelo m: say + "abcñé-12.3.4".comb.grep: /<alnum>/
camelia 9
jmerelo m: say + "abcñé-12.3.Ⅲ".comb.grep: /<alnum>/ 07:56
camelia 8
jmerelo m: say + "abcñþ-12.3.4".comb.grep: /<alnum>/
camelia 9
jmerelo So roman numbers are not numbers...
m: say + "abcñþ-12.3.② ".comb.grep: /<alnum>/ 07:57
camelia 8
donpdonp a little simpler but just as confusing: say "{$chain.params.header.perl} {$chain.params.header eqv Buf.new(227,225,243,232)}"; => Buf.new(227,225,243,232) False 08:04
donpdonp headdesks
donpdonp m: my $h = Buf.new(227,225,243,232); say "{$h.perl} {$h eqv Buf.new(227,225,243,232)}" 08:07
camelia Buf.new(227,225,243,232) True
donpdonp its something to do with the structure of $chain.params.header. Buf.new($chain.params.header) eqv Buf.new(227,225,243,232) => True. o^O 08:11
eqv is comparing more than the two Bufs.
Geth doc: b77b8de74c | (JJ Merelo)++ | 5 files
Eliminating accidental markdown refs #2022
08:50
doc: bbf9ba2e07 | (JJ Merelo)++ | doc/Type/Cursor.pod6
Less accidental markdown refs #2022
synopsebot Link: doc.perl6.org/type/Cursor
doc: 92cb54cb69 | (JJ Merelo)++ | doc/Type/Routine.pod6
less accidental markdown refs #2022

And also adds reference to anon refs #1655
synopsebot Link: doc.perl6.org/type/Routine
Geth doc: c2fdf325f3 | (JJ Merelo)++ | doc/Type/Compiler.pod6
Less accidental markdown refs #2022
08:57
synopsebot Link: doc.perl6.org/type/Compiler
doc: bfd97bfb3c | (JJ Merelo)++ | doc/Type/Rational.pod6
Less accidental markdown refs #2022
synopsebot Link: doc.perl6.org/type/Rational
doc: 0d6b80178b | (JJ Merelo)++ | doc/Type/Cool.pod6
Last accidental markdown closes #2022
09:01
synopsebot Link: doc.perl6.org/type/Cool
lizmat clickbaits p6weekly.wordpress.com/2018/05/14/...ough-time/ 09:10
jmerelo lizmat++ 09:13
buggable New CPAN upload: Inline-Perl5-0.33.tar.gz by NINE modules.perl6.org/dist/Inline::Perl5:cpan:NINE 11:12
jkramer Is there a baggy type that supports negative weights? 11:31
m: <a a a b c>.Bag (-) <a b b b>.Bag
camelia WARNINGS for <tmp>:
Useless use of "(-)" in expression ".Bag (-) <a b b b>.Bag" in sink context (line 1)
jkramer Hmm what? o_O 11:32
m: <a a a b c>.Bag (-) <a b b b>.Bag
camelia WARNINGS for <tmp>:
Useless use of "(-)" in expression ".Bag (-) <a b b b>.Bag" in sink context (line 1)
jkramer Works in my p6 repl
Anyway, the result would be Bag(a(2), c). But I need Bag(a(2), b(-2), c)
m: say <a a a b c>.Bag (-) <a b b b>.Bag 11:33
camelia Bag(a(2), c)
jkramer Ah I keep forgetting that
Nevermind, Mix is what I was looking for :) 11:34
Geth doc: d16c2da871 | (JJ Merelo)++ | doc/Type/Mix.pod6
Adds note on reverse refs #1105
11:40
synopsebot Link: doc.perl6.org/type/Mix
doc: 8f4aa59f2b | (JJ Merelo)++ | 3 files
Notes on reverse added, closes #1105
jmerelo m: say <a a a b c>.Mix (-) <a b b b>.Mix 11:41
camelia Mix(a(2), b(-2), c)
jmerelo jkramer: right. Maybe ask it in StackOverflow too? It's kind of quiet lately... 11:41
El_Che The SO question left unaswered are often NativeCall and encoding. If someone is knowledgable in those, feel free 11:53
Geth doc: 7cb7770c88 | (JJ Merelo)++ | 4 files
Adds note on ordering closes #1106
11:59
jkramer m: say (['foo'], Any, ['bar']).map(* or []) 12:05
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3say (['foo'], Any, ['bar']).map(*7⏏5 or [])
expecting any o…
jkramer The parens seem balanced too me, am I missing something?
timotimo jkramer: you can't put an "or" there 12:08
the precedence does not allow it
lizmat weekly: www.perl.com/article/the-perl-conf...he-corner/ 13:02
notable6 lizmat, Noted!
Zoffix m: say (["foo"], Any, ["bar"]) Z||[]xx* 13:13
camelia ([foo] [] [bar])
Zoffix m: say (["foo"], Any, ["bar"])».&[or]:[] 13:14
camelia ===SORRY!===
Cannot find method 'has_compile_time_value' on object of type NQPMu
Zoffix m: say (["foo"], Any, ["bar", Any])».&[or]: [] 13:17
camelia ([foo] [] [bar []])
Zoffix m: say (["foo"], Any, ["bar", Any]).map: *.&[or]: [] 13:19
camelia ([foo] [] [bar (Any)])
Zoffix ^_^ 13:20
Zoffix I feel like I'm cursed. Any time I try to actually use Perl 6, I run into issues that prevent me from doing so enjoyably. 13:29
Cro doesn't wanna do HTTP2: stackoverflow.com/questions/503503...-supported
Zoffix jmerelo: roman numerals have "No" properly (Numeric Other), while "numbers" have "Nd" (Numeric Digit). You can use single No chars as numeric literals in code, but that's about where their "numberness" ends. 13:33
Zoffix m: say ②**Ⅲ 13:33
camelia 8
Zoffix m: say ²²
camelia 4
timotimo Zoffix: can you strace your script with -e open to see what .ld file it tries to use? also, i'm not sure if it makes a difference, but try "sudo ldconfig" to get libraries updated? 13:34
Zoffix Well, shit. timotimo FTW 13:35
sudo ldconfig fixed it.
timotimo: wanna respond to that SO answer?
timotimo cool, i'll put it up on stackoverflow
yeah
now how do i phrase it so that it doesn't sound weird that i actually know that what i'm writing is actually the right answer %)
Zoffix "You probably need to <blah blah blah>" 13:36
timotimo i've phrased it so that it doesn't sound presumtuous to anyone coming to the thread with the same question but possibly a different actual situation 13:37
Zoffix donpdonp: maybe .perl is lying? Did you figure out the problem? 13:49
timotimo eqv is the one that also checks if the .WHAT matches up?
Zoffix s: &infix:<eqv>, \(Buf.new, Buf.new) 13:50
SourceBaby Zoffix, Sauce is at github.com/rakudo/rakudo/blob/9aa6...f.pm6#L856
timotimo yup
donpdonp Zoffix: i took the easy way out and rebuilt the Buf from the Buf :) 13:52
timotimo i sure hope it isn't one of the cases where there's two types of the same name that should be equal but have different addressess
Zoffix donpdonp: what's the code that was causing the problem?
donpdonp well now i need to learn what .WHAT does :)
Zoffix If it's a bug, it should be fixed.
donpdonp: it returns the type object of the thing
it's a fake method
timotimo since buf is one of the things that are punned roles
donpdonp Zoffix: well hard to narrow down the bug. $my_class.param.buf_var eqv $identical_buf is False 13:54
also its late here and my brain is tired.
Zoffix donpdonp: what's .param? Just some method?
donpdonp github.com/donpdonp/blkmev/blob/ma...in.pm6#L23 13:55
Zoffix donpdonp: also, is this in a module? As in, is the $my_class from one module, but.... .. Ok, I'll play with the repo
donpdonp $chain.params is set to BlkMeV::Chain::Params::BitcoinCash.new, which has a Buf (.header)
Zoffix FWIW you can write this github.com/donpdonp/blkmev/blob/e7...ev#L21-L22 as just `$client_supplier.emit: $chain, :$host.Pair, True;` That way `:$host` won't get passed as named arg 13:58
Zoffix gives up trying to repro it 14:06
Zoffix donpdonp: but in the future, it'd be helpful to have a working program that reproduces the problem. 14:08
Otherwise, the compiler bugs will remain. With future programmers wasting time due to them, over and over. 14:09
idiosyncrat Hi. I've been doing a "Timeline" of parsing history, in which TimToady plays a signficant role. He's been generous in answering Q's in the past, and I hope he'll indulge another. 14:11
When *I* used yacc, I didn't know how to calculate LALR, so I did it by trial-and-error and a sense of what had worked in the past. 14:12
Once I did know enough math to calculate LALR states, I also knew better than to try to use yacc/bison :-) 14:13
idiosyncrat TimToady: you created what AFAIK is the largest most-sophisticated yacc/bison grammar to achieve wide use. Did you ever explicitly calculate LALR states? 14:14
AlexDaniel .seen TimToady 14:19
yoleaux I saw TimToady 11 May 2018 00:39Z in #perl6: <TimToady> or maybe it's looking for the corresponding action routine
AlexDaniel idiosyncrat: maybe leave a message with .tell 14:20
idiosyncrat .tell TimToady at irclog.perlgeek.de/perl6/2018-05-15#i_16168028 -- a Q for you re the parsing history of Perl, for my timeline, which I hope you'll indulge. 14:27
yoleaux idiosyncrat: I'll pass your message to TimToady.
idiosyncrat yoleaux: Thanks.
AlexDaniel` . 14:33
yoleaux 06:40Z <nine> AlexDaniel`: the Inline::Perl5 failures are caused by some change in MoarVM since 2018.04. I'd call that a blocker.
07:03Z <nine> AlexDaniel`: I've found the offending commit in MoarVM and reverted it. Inline::Perl5 is fine again!
atroxaper wake up at the morning and firstly check commaIDE beta release 15 days at row already.... 15:53
Geth doc: 0ce405a2ee | (Will "Coke" Coleda)++ | doc/Type/Proc/Async.pod6
not perl6 code
15:59
synopsebot Link: doc.perl6.org/type/Proc::Async
skids ponders some colonlist synopsis language 16:32
skids fake infix 'modify the previous topmost operator that is tighter in precedence than "loose unary"' 16:33
I'm wondering if that should read tighter-or-equal
skids Currently so :a :b parses as a fake-infix on 'so' 16:34
skids (everything below ',' gets a parse-time "you can't adverb that" so that's good) 16:35
Geth doc: JJ self-assigned doc sub sink/sink context github.com/perl6/doc/issues/732
f6c4ad62ac | (Will "Coke" Coleda)++ | xt/words.pws
16:39
lucasb Operator &prefix:<||> never really existed? I probably can remove placeholder for it in docs.perl6.org/language/operators right? 17:00
lucasb also, some operators are missing from the precedence table at the top. for example set operators and function composition "o" 17:09
so, doc writers, what is the prefered way to handle Unicode vs. ASCII variants? Include both ways or just one of them? 17:10
I prefer to include both 17:11
lizmat both sounds like a good idea to me :-) 17:12
lucasb nice :)
[Coke] I don't think we have concensus on that, but if we ever do, we'll have to review the whole site anyway, so don't worry about it for now. I think. 17:19
skids My other colonlist question is: '(:a, :b :c, :d :e :f)' is supposed to be just '(:a,:b,:c,:d,:e,:f)', no? Since there is no tighter-than-comma place to put fake infixes... 17:26
Zoffix .ask TimToady do you have any ideas for R#1830 ? e.g. `my FatRat $x; $x *= 42` will never work as the value from zero-arg op call to init the value has wrong infectiousness (Int 1 in this case). I'm thinking: make all Numerics' .new be able to take another Numeric as intializer value, .Bridge'ing any non-core Numeric and if the var is Numeric do `$var.WHAT.new: op.()` for zero-arg call 17:33
yoleaux Zoffix: I'll pass your message to TimToady.
synopsebot R#1830 [open]: github.com/rakudo/rakudo/issues/1830 [math] `+=` meta op with FatRat typeobject LHS uses incorrect type
Zoffix m: my Buf $x = Buf.new ~ Buf.new 17:36
camelia ( no output )
Zoffix m: my Buf $x ~= Buf.new
camelia Cannot use a Buf as a string, but you called the Stringy method on it
in block <unit> at <tmp> line 1
Zoffix
.oO( so much for that plan.. )
Geth doc: 6d662d96d1 | (Lucas Buchala)++ (committed using GitHub Web editor) | doc/Language/operators.pod6
Add missing operators to precedence table
17:41
synopsebot Link: doc.perl6.org/language/operators
Zoffix .tell TimToady actually it affects non-Numeric cases too: github.com/rakudo/rakudo/issues/18...-389252637 17:42
yoleaux Zoffix: I'll pass your message to TimToady.
Zoffix ZofBot: TimToady our BDFL and Saviour! 17:43
jmerelo lucasb: both ways, but unicode is preferred for examples. 17:50
m: say (:a, :b :c, :d :e :f) ~~ (:a,:b,:c,:d,:e,:f) 17:52
camelia WARNINGS for <tmp>:
False
Useless use of ":e" in sink context (line 1)
Useless use of ":c" in sink context (line 1)
Useless use of ":a" in sink context (lines 1, 1)
buggable New CPAN upload: P5lcfirst-0.0.6.tar.gz by ELIZABETH modules.perl6.org/dist/P5lcfirst:cpan:ELIZABETH
New CPAN upload: P5lc-0.0.5.tar.gz by ELIZABETH modules.perl6.org/dist/P5lc:cpan:ELIZABETH
New CPAN upload: P5sleep-0.0.6.tar.gz by ELIZABETH modules.perl6.org/dist/P5sleep:cpan:ELIZABETH
New CPAN upload: P5caller-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5caller:cpan:ELIZABETH
New CPAN upload: P5reverse-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5reverse:cpan:ELIZABETH
New CPAN upload: P5each-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5each:cpan:ELIZABETH
skids jmerelo: colonlists are currently very broken. I'm asking because I'm looking to fix them. 17:53
jmerelo skids: great :-) 17:54
skids (but it's kinda hard to "fix" withot knowing what would be considered "fixed" :-) 17:55
jmerelo skids: the reference would be roast, I guess
skids It's pathetically undertested.
lizmat re CPAN uploads: just adding missing authority info 17:56
Geth doc: 793e986c13 | (JJ Merelo)++ | doc/Language/variables.pod6
Improves note on SCHEDULER closes #1065
18:01
synopsebot Link: doc.perl6.org/language/variables
doc: ea09b9b87e | (JJ Merelo)++ | doc/Language/operators.pod6
Minor typographic changes to ≅

This closes #1016 because it had been efectively done way before.
18:04
synopsebot Link: doc.perl6.org/language/operators
Geth doc: JJ self-assigned &emit undocumented github.com/perl6/doc/issues/1032
9e2ce55f91 | (JJ Merelo)++ | doc/Type/Pair.pod6

But actually this closes #1204. Examples relevant to the issue were probably removed a long time ago, and the bug report says this should be closed, so I comply.
18:05
jmerelo p6: my @manna = :a1:b2:c3; dd @manna; 18:10
camelia Array @manna = [:a1]
jmerelo skids: maybe this is related? rt.perl.org/Public/Bug/Display.html?id=130816 18:11
jmerelo m: sub s(*%h){ say %h.perl }; s :a1:b2; 18:12
camelia {:a1, :b2}
skids jmerelo: I'll put that on my list. 18:15
synopsebot Link: doc.perl6.org/type/Pair
Geth ¦ doc: JJ self-assigned List.Set treatment of Pairs is poorly documented github.com/perl6/doc/issues/1245 18:29
Zoffix timotimo: yo, how did you get p6weekly.wordpress.com registered? I'm trying to setup a quick demo for a $work meeting but all it gives me are "paid plan" options :S 19:44
timotimo oh?
there's an almost invisible "start with free" button at the bottom 19:45
below the personal/premium/business selection
El_Che wordpress.com/#plans
Zoffix timotimo: yeah, I get "you ain't got any sites. Wanna create one" I click yes... it asks me what it's for and then shows this screen: i.imgur.com/XgBJBg6.png
timotimo weird, it should have .wordpress.com in there. it does on my end 19:46
Zoffix El_Che: going through "get started" from that page now gives me the same page as in screenshot, except it also offers to "transfer domain to wordpress". 19:47
timotimo yeah i totally get the free one
timotimo shall i set up one for you and we just try to transfer it somehow? 19:48
El_Che zoffix: imgur.com/a/9voXbXK
Zoffix nah
wtf :S
El_Che do they only give crappy names nowadays? 19:49
nope
timotimo they have analyzed your mouse movements and such and have found out that you are likely to shell out cash for a plan if they just make it difficult enough to find the free plan
Zoffix OK, I get the "Free" option is I use my US proxy. 19:50
But not if I connect from Canukistan
El_Che zoffix: imgur.com/a/HkJLSyU
cashfields help
Zoffix cashfields: what's up?
Zoffix :( 19:50
El_Che Zoffix: I'll register all zoffix variantions and sell the to you for lots of Canadian dimes 19:51
Zoffix :) 19:52
Zoffix k, I see. If, when it asks you, you say you wanna sell products on the site, it doesn't offer you free option and it saves that setting in a cookie so even if you unselect "store" option it still doesn't show you free version 19:54
Thanks for the help \o
timotimo fun
El_Che sneaky 19:55
but it's the only way to catch Canadians
El_Che Guest26896: going inverse-incognito? 19:56
masak just learned that the C# designers are toying around with WhateverCode syntax for string indexing 20:16
masak but what Perl 6 calls @array[*-1], C# spells string[^1] 20:16
also, they're introducing Python's slice operator in indices `:`, except they're spelling it `..` 20:17
masak also nice to see C# stealing something from Java again (default interface implementations) 20:27
something which both languages stole from Perl 6, of course :P
lucasb m: enum bool <true false>; multi f(true) { 'true' }; multi f(false) { 'false' }; say list f(true), f(false) 20:33
camelia (true false)
lucasb ^^ I wanted to do this with real booleans, but apparently I can't
m: multi f(True) {} 20:34
camelia Potential difficulties:
Literal values in signatures are smartmatched against and smartmatch with `True` will always succeed. Use the `where` clause instead.
at <tmp>:1
------> 3multi f(True7⏏5) {}
masak there's an old curse installed about smartmatching literal Bool types 20:35
m: my $b = True; say "well hello there" ~~ $b
camelia True
masak it's because of that ^ 20:36
the $b on the rhs (True) always matches, no matter what's on the lhs
m: my $b = True; say False ~~ $b
camelia True
masak m: multi f(Bool $b where $b == True) { say "this works" }; f(True); f(False) 20:37
camelia this works
Cannot resolve caller f(False); none of these signatures match:
(Bool $b where { ... })
in block <unit> at <tmp> line 1
masak but yeah, it's the WAT corresponding to a DWIM
masak oh, and the real use case for the DWIM behavior is something like this: 20:39
m: sub is-odd($n) { $n % 2 != 0 }; say 33 ~~ is-odd($_) 20:40
camelia True
masak m: sub is-odd($n) { $n % 2 != 0 }; say 20 ~~ is-odd($_)
camelia False
lucasb that made it clearer. thanks masak 20:41
masak m: sub is-odd($n) { $n % 2 != 0 }; say 33 ~~ &is-odd; say 20 ~~ &is-odd 20:42
camelia True
False
masak apparently, that works, too :)
also also, the case for actually smartmatching with booleans is a lot stronger in a `when` clause than with the actual infix:<~~> operator, I'd wager 20:43
El_Che releasable6: status 20:44
releasable6 El_Che, Next release in ≈3 days and ≈22 hours. 2 blockers. 85 out of 86 commits logged
El_Che, Details: gist.github.com/5504c1cab33b76058c...7c73b01c9c
El_Che masak: I remember reading a post from a parrot dev moving to .net because with the years passing it had the things that he wantend parrot to have 20:46
AlexDaniel .tell nine pinging you just in case :) github.com/rakudo/rakudo/issues/1832 20:48
yoleaux AlexDaniel: I'll pass your message to nine.
AlexDaniel btw please anyone feel free to golf that issue ↑
masak El_Che: it's a bit hard to judge from the outside, but the whole .Net stack at least seems to be doing well and to have a vibrant community 20:49
I only vaguely know about C#, VB.Net, F#
El_Che masak: whiteknight.github.io/2015/01/15/pa...heend.html
that one 20:50
masak ooh, whiteknight
haven't heard that name in a long time
yeah, I think I read that post at the time. will give it a re-read, though 20:51
El_Che (not meant to discourage of course)
masak no, of course not
heading to bed now. good ♞ 20:52
El_Che good horse is what people on austria say, it seems :)
jk
timotimo looks a bit more into GDPR 22:25
for i have a blog
timotimo well, the important bit of that is that i use matomo to see how many people view my blog, what posts they tend to read, and so on 22:32
say, perl6.org and all related sites also write logs from the webserver, and i believe we do analyze them? 22:33
comborico1611 That's good! 22:34
timotimo what is? 22:35
comborico1611 To notice what people in the Perl community are interested in.
timotimo well, my blog only has posts about my profiler work so far 22:36
Herby_ o/ 22:39
yoleaux 14 May 2018 23:09Z <AlexDaniel> Herby_: irclog.perlgeek.de/perl6/2018-05-14#i_16165471
El_Che timotimo: how has been the feedback so far? 22:41
AlexDaniel Herby_: so IRC::Client expects something like a Str to be returned, but in whateverable it is often needed to pack much more information in the returned message 22:59
AlexDaniel Herby_: like full output, or extra files that should be in the gist 22:59
AlexDaniel Herby_: so using `but` you can have a Str that has other stuff in it 23:00
m: role Foo { has $.stuff }; my $x = ‘hello’ but Foo(‘world’); say $x; if $x ~~ Foo { say $x.stuff }' 23:01
camelia 5===SORRY!5=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> 3); say $x; if $x ~~ Foo { say $x.stuff }7⏏5'
AlexDaniel m: role Foo { has $.stuff }; my $x = ‘hello’ but Foo(‘world’); say $x; if $x ~~ Foo { say $x.stuff }
camelia hello
world
AlexDaniel m: role Foo { has $.stuff }; my $x = ‘hello’ does Foo(‘world’); say $x; if $x ~~ Foo { say $x.stuff } 23:02
camelia hello
world
AlexDaniel doesn't know the difference between `but` and `does`
Herby_: all that stuff is pretty much handled in this one method: github.com/perl6/whateverable/blob...#L526-L544 23:04
Herby_ AlexDaniel: thanks for that info 23:10
I need to brush up on my OO and roles etc... :)
tyil .tell lizmat www.reddit.com/r/ProgrammingLangua...s/dz0mmxn/ since you collect comments about perl 6
yoleaux tyil: I'll pass your message to lizmat.
Herby_ tyil++ 23:11
tyil just got home from the new The Hague Perl Mongers 23:12
Herby_ nice. how was it?
tyil and gave a preview of my first Perl 6 related talk
it was pretty cool
would recommend to anyone in the neighbourhood :D
Geth doc/car-grant-midrat: 32 commits pushed by (JJ Merelo)++, (Will "Coke" Coleda)++, skids++, (Lucas Buchala)++, (Zoffix Znet)++
review: github.com/perl6/doc/compare/4f765...66ffd4d44d
23:15
AlexDaniel tyil: you can use weekly: 23:23
tyil: like weekly : …………
oops
tyil woah
AlexDaniel tyil: weekly: …………
tyil every day you learn something new
and since its already 1:24, this is a new day 23:24
so I can stop learning for today
AlexDaniel tyil: btw some of your modules seem to be missing source-url in META6.json
tyil yes, I am aware 23:24
it has been discussed already 23:25
AlexDaniel :)
tyil source-url is not specced yet so I dont use it yet
AlexDaniel weekly: www.reddit.com/r/ProgrammingLangua...s/dz0mmxn/
notable6 AlexDaniel, Noted!
tyil I've had very bad experience with using things that are documented somewhere and used somewhere but not actually specced yet
as in, they break installation of the module completely with very LTA errors 23:26
so I just dont use them at all now
I aint taking the risk
AlexDaniel tyil: yes but… it's really inconvenient when you can't file a bug report because there's no link at all
tyil better get it specced asap then 23:27
AlexDaniel or a PR
tyil shrugs
AlexDaniel tyil: is there a bug report for that?
tyil idk really, I was told it would be discussed at the Perl Toolchain Summit
AlexDaniel what's that? 23:28
tyil some event where they discuss Perl toolchain aspects
I wasnt there myself
AlexDaniel mmm…
tyil I was also informed that App::Assixt broke on a recent commit of perl 6 23:30
which saddens me
Zoffix tyil: source-url isn't part of spec. It's the ecosystem extension. You can add support->source which is part of proposed spec 23:31
tyil: the PTS already occured BTW.
tyil yes, as I told before, I'm eagerly awaiting it to be accepted and implemented instead of proposed
Zoffix AlexDaniel: but clones the objects before mixing in, while does doesn't
tyil and I know it occured, I havent heard anything new yet 23:32
so I just went on to write more articles on Perl 6 and patching my modules where necessary
and work on a new feature of assixt
tyil with feedback from the local perl mongers 23:32
AlexDaniel tyil: it shouldn't sadden you I think. A 4 day old commit broke something, but didn't cause any failures in the spec. I test the ecosystem before the release, which is why we see that some modules are kaput 23:33
so it's marked as blocker for the release, and I make sure it's fixed before 2018.05
tyil neat 23:34
even though samcv does releases I dont know much of the process itself
AlexDaniel I do the same thing every month btw, but in the past I used not to publish any results from toaster 23:35
but basically I go through every failure and file blocker tickets
tyil if an actual release breaks something or someone comes to me and reports a bug I'll look at it, but I tend to only support Star releases since they're easier to target
AlexDaniel or submit PRs to modules if it's actually the module itself that is in the wrong
e.g. this month we have a bunch of modules that are sometimes red because of: 23:36
m: my %h = <a 1 b 2 c 3>; say %h.keys
camelia (c b a)
AlexDaniel m: my %h = <a 1 b 2 c 3>; say %h.keys
camelia (a c b)
tyil the randomized order of hashes 23:37
?
AlexDaniel it's this change I think: github.com/MoarVM/MoarVM/pull/841 23:38
so yeah
timotimo El_Che: you mean feedback on my posts? 23:48
Zoffix m: class :: is Rat does Rational[Int, Int] { }.new.Numeric 23:57
camelia Ambiguous call to 'Numeric(<anon|1>: )'; these signatures all match:
:(Numeric:D: *%_)
:(Numeric:D: *%_)
in block <unit> at <tmp> line 1
Zoffix Is there some black magic to avoid this problem?
I want my type to… hmmm 23:58
Wait, nm, liskov is happy.
I want my type to be a subclass of Rat, but with differently parametarized Rational role
Oh wait, not happy.
Oh wait, happy, nm 23:59