🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
leont It not working was my own bug, but not being able to dd that regex made that hard to discover 00:02
moon-child that's fair. It would be nice if dd could actually deconstruct that regex 00:03
timotimo Henri: i wrote this fun snippet that will give better details for the "this seq's iterator has already been used", but it makes your program slower and use more memory, so it's not useful to have on at all times: gist.github.com/timo/9878a562fe9b8...11e7f74310 00:25
Henri @timo 01:11
timotimo thank you!
warriors was a discourse forum ever considered, can the perl foundation afford one? 05:37
leont Don't think I've seen it suggested before 06:20
xinming m: class A { method t { "a" }; }; class B { method t { "b" } }; my $a = A.new; B.bless($a); $a.t.say; 08:06
camelia Too many positionals passed; expected 1 argument but got 2
in block <unit> at <tmp> line 1
jmerelo Submission to the FOSDEM Perl&Raku devroom still open! news.perlfoundation.org/post/fosde...for-papers 08:37
tellable6 2020-12-16T15:28:32Z #raku <tbrowder> jmerelo see private msg from me
2020-12-17T17:28:19Z #raku <tony-o> jmerelo working on fixing the public indexes to make integration with zef easier ..
2020-12-18T17:31:58Z #raku <tony-o> jmerelo fyi: github.com/ugexe/zef/pull/378
jmerelo .tell tony-o great! 08:38
tellable6 jmerelo, I'll pass your message to tony-o
jmerelo .tell tbrowder let me check
tellable6 jmerelo, I'll pass your message to tbrowder
jmerelo .tell tbrowder if it's about authorship of the articles, there's not much I can do. If it's some other thing, it got lost. Please use email... 08:39
tellable6 jmerelo, I'll pass your message to tbrowder
atroxaper Hi, $raku! 09:13
First strange thing. Does LAST in a loop work wrong? 09:14
m: sub foo() { loop { LAST {say "LAST"}; say "IN"; last } }; foo 09:15
camelia LAST
IN
atroxaper Second strange thing. Does return in a loop with LAST work wrong?
m: sub foo() { loop { LAST {say "LAST"}; say "IN"; return } }; foo 09:16
camelia LAST
Attempt to return outside of immediately-enclosing Routine (i.e. `return` execution is outside the dynamic scope of the Routine where `return` was used)
in code at <tmp> line 1
in block <unit> at <tmp> line 1

IN
atroxaper Without LAST:
m: p6: sub foo() { loop { say "IN"; return } }; foo
camelia IN
jmerelo atroxaper: it probably works... funny. Never wrong. 09:30
sub foo() { loop { LAST {say "LAST"}; LEAVE { "say LEAVE" }; say "IN"; last } }; foo 09:32
evalable6 WARNINGS for /tmp/29BmnmM73C:
LAST
IN
Useless use of constant string "say LEAVE" in sink context (line 1)
jmerelo atroxaper: there seems to be some issues github.com/rakudo/rakudo/issues/3608 09:34
sub foo() { loop { LAST {say "LAST"}; LEAVE { "say LEAVE" }; say "IN"; last; say "Wee" } }; foo 09:36
evalable6 WARNINGS for /tmp/B_9bXJeey8:
LAST
IN
Useless use of constant string "say LEAVE" in sink context (line 1)
jmerelo m: loop { LAST {say "LAST"}; LEAVE { "say LEAVE" }; say "IN"; last; say "Wee" } 09:37
camelia WARNINGS for <tmp>:
IN
LAST
Useless use of constant string "say LEAVE" in sink context (line 1)
jmerelo m: loop { LAST {say "LAST"}; say "IN"; last; say "Wee" } 09:37
camelia IN
LAST
jmerelo atroxaper: the loop is in sink context. Funny things happen in that context. 09:38
atroxaper jmerelo: Hm... 09:39
atroxaper p6: sub foo() { do loop { LAST {say "LAST"}; say "IN"; last; 1 } }; foo 09:42
camelia LAST
IN
atroxaper jmerelo: thank you for point on the issue :) 09:43
jmerelo atroxaper: My pleasure 10:08
atroxaper: thanks for the example, I've added and linked it to the corresponding issue 10:09
Xliff \o 16:07
Can you define your own infix operators such that they can be used with hyperops like «*»?
moritz yes 16:09
m: sub infix:<2x>($a, $b) { 2 * ($a + $b) }; say 1, 2, 3 »2x«10, 10, 10 16:10
camelia 12261010
moritz m: sub infix:<2x>($a, $b) { 2 * ($a + $b) }; say join ', ' 1, 2, 3 »2x«10, 10, 10
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3$a, $b) { 2 * ($a + $b) }; say join ', '7⏏5 1, 2, 3 »2x«10, 10, 10
expecting any of:
infix
infix stopper
postfix…
moritz m: sub infix:<2x>($a, $b) { 2 * ($a + $b) }; say (1, 2, 3 »2x«10, 10, 10).join: ' '
camelia 1 2 26 10 10
moritz m: sub infix:<2x>($a, $b) { 2 * ($a + $b) }; say ((1, 2, 3) »2x« (10, 10, 10)).join: ' ' 16:11
camelia 22 24 26
moritz more what I had in mind :D
Xliff moritz++ 16:20
Geth doc/parameter-usage-name: 7d8cb8e9b8 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Document Parameter.usage-name
16:43
doc: stoned++ created pull request #3738:
Document Parameter.usage-name
16:47
Xliff m: FIRST: loop { my $a = 0; loop { $a++; last FIRST if $a > 10 }; }; 17:11
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3= 0; loop { $a++; last FIRST if $a > 10 7⏏5}; };
expecting any of:
block or pointy block
Xliff "last LABEL" not supported?
Xliff m: FIRST: loop { my $a = 0; SECOND: loop { $a++; last FIRST if $a > 10 }; }; 17:13
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3OND: loop { $a++; last FIRST if $a > 10 7⏏5}; };
expecting any of:
block or pointy block
Geth doc/parameter-tweaks: bd964b3fee | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Correctly name what these methods are about
17:28
doc: stoned++ created pull request #3739:
Correctly name what these methods are about
doc: d0cc57863d | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Parameter.pod6
Document Parameter.usage-name
17:36
linkable6 Link: docs.raku.org/type/Parameter
Geth doc: c3a2a6bc9b | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Parameter.pod6
Correctly name what these methods are about
17:38
Geth doc: 664ebbbb4f | (Stoned Elipot)++ | doc/Type/Parameter.pod6
xref type captures
17:44
linkable6 Link: docs.raku.org/type/Parameter
warriors hi, what need to be done to add a discourse forum to the raku community, while i think the community is small and the forum will not be super active, i still think its a nice resource and place to ask questions, and keep history of questions and answer 17:46
I asked in few other forums how they did it, and they all payed for the hosted option as 50% discount
www.discourse.org/pricing
If we go for the standard plan, which i think will fit the size of the raku community its only 50$ per month
do you guys think this can be funded
rust, fsharp, julia, ocaml, go ... all have a discourse forum 17:47
and i find it really helpful 17:48
Xliff warriors: $100/month is super pricey. 17:54
warriors for foss, we will pay only 50
Xliff warriors: OK. Getting better.
warriors we can always install on our own server 17:55
Xliff lizmat: What kind of traffic does the Weekly pull in?
warriors but i think the admin cost outweight 50 per month
Xliff I would pay that for a couple of months.. that's assuming the traffic is there.
warriors well if we open the forum for also perl5/7 17:56
the traffic will be there
i think
Xliff Perl doesn't have a discourse, either?
warriors but anyway, beside the price and traffic, i think a forum is nice, currently i ask here, but obviously this missing search, or on the facebook page 17:57
and the facebook page is not fun
if perl had a discourse, we should use it for raku too
perl and raku are still same familly of languages
Xliff I agree. That's up to the their community, though.
Yep. If only more ppl understood that.
warriors and if the raku community fund a discourse forum i think it would be nice to open it for perl5/7 17:58
Xliff warriors: If you are serious about this, write a call for discussion, here:
warriors what is that
Xliff github.com/Raku/problem-solving
It's a better place for this type of discussion.
warriors ok, will open an issue there, i will collect some information first 17:59
Xliff Great! Thanks so much. warriors++
warriors thanks 18:00
Geth doc/parameter-type_captures-eg-rework: a1f57b8d9c | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Rework Parameter.type_captures example
18:04
doc: stoned++ created pull request #3740:
Rework Parameter.type_captures example
18:05
doc: a1f57b8d9c | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Rework Parameter.type_captures example
18:19
doc: ebdd1ef232 | stoned++ (committed using GitHub Web editor) | doc/Type/Parameter.pod6
Merge pull request #3740 from Raku/parameter-type_captures-eg-rework

Rework Parameter.type_captures example
linkable6 Link: docs.raku.org/type/Parameter
Geth doc/more-parameter-type_captures-eg-rework: 5483b64837 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Rework Parameter.type_captures example
18:46
doc: stoned++ created pull request #3741:
Rework Parameter.type_captures example
18:47
¦ problem-solving: shishini assigned to JJ Issue Add a forum to support the Raku community and provide a searchable repository of Q&A github.com/Raku/problem-solving/issues/251 18:56
thundergnat > Xliff: "last LABEL" not supported? 19:04
Xliff: FIRST is a reserved word.
m: First: loop { my $a = 0; Second: loop { print "$a "; $a++; last First if $a > 10 }; };
camelia 0 1 2 3 4 5 6 7 8 9 10
thundergnat name collision
Xliff thundergnat++ # Realized that after a bit, LOL 19:22
Geth doc: 3750cdb286 | (JJ Merelo)++ | template/main.mustache
Avoid HTML warning
19:46
doc: c5079b4854 | (JJ Merelo)++ | doc/HomePage.pod6
Another HTML error
El_Che jj: sent you a mail 19:48
Geth doc: 95d0ec0fa0 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Parameter.pod6
Rework Parameter.type_captures example
19:50
linkable6 Link: docs.raku.org/type/Parameter
El_Che releasable6: status 19:53
releasable6 El_Che, Next release in ≈34 days and ≈23 hours. 1 blocker. Changelog for this release was not started yet
El_Che, Details: gist.github.com/be27630fc95b4d73af...05fc175d98
El_Che ok, a new one is out
letś pkg the mofo
Geth ¦ problem-solving: JJ assigned to rba Issue Add a forum to support the Raku community and provide a searchable repository of Q&A github.com/Raku/problem-solving/issues/251 19:55
Xliff How can I load a core file in rakudo-gdb-m? 20:47
SmokeMachine Is there anyway of doing this? www.irccloud.com/pastebin/Xb8uUGSF/ 20:48
Xliff And what's the best way to report a segfault?
MasterDuke Xliff: either rakudo or moarvm issue 20:49
Geth doc: f5bd3c85f6 | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Tweak empty example output style
Xliff MasterDuke: And what's the best way to isolate one? ;) 20:50
linkable6 Link: docs.raku.org/type/Parameter
MasterDuke Xliff: i believe a core file you'd just open in gdb directly, you wouldn't want to use rakudo-gdb-m
Xliff: never let it visit its friends. not sure what you mean 20:51
Xliff hah 20:53
I mean: What's the best way to localize the segfault to the area of code that caused it.
MasterDuke it helps if your moarvm is compiled with debugging symbols. catch it in gdb, get a c level backtrace, find the first frame with a `tc` as a parameter, `f <that frame number>`, then `call MVM_dump_backtrace(tc)` 20:57
Xliff Yeah. Unfortunately, this is a long runner. Can't afford the performance hit of gdb. 20:59
Was hoping to catch the moarvm origin at least.
MasterDuke gdb has almost no overhead
Xliff No, but running moar code in rakudo-gdb-m DOES.
MasterDuke huh, i've never really noticed that 21:00
Xliff Yeah. Code is slower when running. Particularly parse time.
And when you are talking between 10-20 minutes (randomly) per occurence when NOT running under gdb... 21:01
That could be a long time.
MasterDuke stick it in a loop overnight>
?
for compiling the CORE.c setting i don't see any slowdown under gdb. but it also doesn't take 10-20min normally... 21:03
RaycatWhoDat Quick question: what was the handle of the person who wrote a compiler in Raku? 21:04
Xliff RaycatWhoDat: That could be several people. 21:05
RaycatWhoDat Ah. Apologies. Andrew Shitov? 21:06
Xliff Ah. That's the author I was about to post. 21:07
Geth doc: 22f0dcea0e | (Stoned Elipot)++ | doc/Type/Parameter.pod6
Tweak empty example output style
linkable6 Link: docs.raku.org/type/Parameter
RaycatWhoDat Before I go down that road, let me ask a simpler question 21:08
What's the state of standalone binaries in Raku? Is there a recommended way of doing that?
MasterDuke RaycatWhoDat: for windows you might be able to use modules.raku.org/dist/App::Install...ment.se%3E 21:11
otherwise i think the work described in yakshavingcream.blogspot.com/ needs to be finished and/or polished 21:12
Xliff Yep! MasterDuke++. I forgot what her nick was. 21:13
RaycatWhoDat Interesting.
I recall LOVE (Lua game framework) allowing for the creation of a "fused executable" by 'cat'-ing the source code onto the application. 21:15
Is this an approach that is feasible in any sense (sans the obvious work involved)? 21:16
ggoebel raku: say "a" ~~ /[a]/; my $r="[a]"; say "a" ~~ /$r/ 21:29
evalable6 「a」
Nil
ggoebel regex interpolation does not appear to work with grouping () or [] 21:30
raku: say "a" ~~ /[a]/; my $r="[a]"; say "a" ~~ /<$r>/ 21:31
evalable6 「a」
「a」
ggoebel my short circuit was between the chair and the keyboard 21:32
no-n what does the <> mean? 21:33
ggoebel needed to use <$r> to interpolate the stringified return value as a regex instead of a string literal
see: docs.raku.org/language/regexes#Reg...erpolation
no-n raku: my $r = '.*'; say '.*boo' ~~ /$r/; say '.*boo' ~~ /<$r>/; 21:34
evalable6 「.*」
「.*boo」
21:35
no-n TIL
Geth doc/done-testing-return: e5b20f4d86 | (Stoned Elipot)++ | doc/Type/Test.pod6
Document Test.done-testing's return value

ref #3580
21:41
doc: stoned++ created pull request #3742:
Document Test.done-testing's return value
21:42
Geth doc: ebd3786a11 | (Stoned Elipot)++ | doc/Type/Capture.pod6
Whitespace fix
21:51
linkable6 Link: docs.raku.org/type/Capture
Henri m: multi read-csv($filename, $dict where { $dict }, $delim = ',') { } 21:53
camelia ( no output )
Henri why am i getting an error here?
Expression needs parens to avoid gobbling block
Henri It only occurs if I split the function over more than 1 line... 22:04
m: multi read-csv($filename, $dict where { $dict }, $delim = ',') { }
camelia ( no output )
Henri m: multi read-csv($filename, $dict where { $dict }, $delim = ',') { }
camelia ( no output )
Henri I keep trying to place a newline to show that it fails... 22:05
MasterDuke m: multi read-csv($filename, $dict where { $dict }, $delim = ',') { ␤ } 22:06
camelia ( no output )
Henri Hmm... 22:07
It's still not working my REPL
Henri m: multi sub read-csv($filename, $dict where { $dict.defined }, $delim = ",") { 22:09
camelia 5===SORRY!5===
Expression needs parens to avoid gobbling block
at <tmp>:1
------> 3$filename, $dict where { $dict.defined }7⏏5, $delim = ",") {
Missing block (apparently claimed by expression)
at <tmp>:1
------> 3 where { $dict.…
Henri ^ There it is.
I've tried putting parens everywhere
Yet I still cant figure it out
MasterDuke try putting an '\' at the end of the line 22:11
Henri Yeah that works
but why?
That seems like strange behaviour to me... 22:12
raku-bridge <theangryepicbanana> (psst, try $dict where *.defined) 22:13
<theangryepicbanana> or better yet, just do Any:D $dict 22:14
MasterDuke the repl is a bit odd
Henri <theangryepicbanana> or better yet, just do Any:D $dict 22:17
nice solution
wamba p6: say (6,5,4).reduce: &[<] 22:27
camelia True
tellable6 2020-06-09T20:42:07Z #raku <oddp> wamba, Thanks, appreciated, will see whether I can mold this a bit and add it to a small utils lib.
wamba p6: say (6,5,4).reduce: &[before] 22:29
camelia False
Henri I'm having trouble adding my module to github.com/Raku/ecosystem/blob/master/META.list 22:30
I cloned the repository, created a new branch, added my changes, and committed them. 22:31
What is the next step?
(added my repository to META.list)
MasterDuke you need to push the changes and create a PR (pull request) from your fork/branch to master 22:33
Henri Can I push directly to a branch I've created? 22:34
My branch is only local.
MasterDuke you commit to a branch and push to a remote. did you fork the repo or just clone it? 22:35
you might not have permissions to push your branch if you just cloned it. in that case you want to fork the repo, clone your fork, push your new branch to your fork, and then create a PR from your branch on your fork to the master branch of the main repo 22:36
Henri I just cloned the repo.
Yes that seems to be the problem...
Got it. 22:37
Geth ecosystem: schmidt73++ created pull request #572:
Add new Bio module. See github.com/schmidt73/Bio.
22:39
Henri :D 22:40
thanks for the help!
MasterDuke np
Henri Right now it's very minimal. I'm just playing around with it for Bioinformatics tasks and adding common functionality I use.
Maybe it will eventually turn into a full-fledged API; we will see.