🦋 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
00:10 xinming left, xinming joined 00:15 Doc_Holliwould joined, mowcat left
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
00:41 xinming left, xinming joined
Henri @timo 01:11
timotimo thank you!
01:41 evalable6 left, linkable6 left 01:42 linkable6 joined 01:44 evalable6 joined 01:48 Henri left 02:01 Doc_Holliwould left 02:05 mamitchell joined 02:07 tejr left 02:16 xinming left 02:17 xinming joined 02:26 SmokeMachine left, SmokeMachine joined 02:27 ChoppedBacon left 02:28 ChoppedBacon joined 02:30 jmchael left 02:31 mamitchell left 02:53 camelCaser joined 02:54 ccamel left 03:09 guifa2 joined, guifa2 left 03:31 Black_Ribbon joined 04:06 xinming left 04:09 xinming joined 05:03 skids joined 05:25 tejr joined
warriors was a discourse forum ever considered, can the perl foundation afford one? 05:37
06:04 Doc_Holliwood joined
leont Don't think I've seen it suggested before 06:20
06:37 sena_kun joined 06:39 brtastic joined 06:47 frost-lab joined 07:04 leont left 07:11 brtastic left 07:16 sjm_uk joined 07:18 brtastic joined 07:30 xinming left 07:32 xinming joined 07:33 agentzh left 07:34 agentzh joined, agentzh left, agentzh joined, sno left 07:40 jmerelo joined 07:42 ajdplaysalto joined 07:46 ajdplaysalto left 07:51 agentzh left 07:53 rindolf joined
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
08:11 xinming left, xinming joined 08:26 parabolize left 08:36 skids left
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
08:50 Doc_Holliwood left 08:53 aborazmeh joined, aborazmeh left, aborazmeh joined 09:08 Altai-man joined 09:11 sena_kun left 09:12 atroxaper joined
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
09:20 cpan-raku left 09:21 cpan-raku joined, cpan-raku left, cpan-raku joined 09:27 frost-lab left 09:30 sjm_uk left
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)
09:32 sjm_uk joined
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)
09:37 wamba joined
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
09:39 Sgeo left
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
09:45 domidumont joined 10:04 warriors left
jmerelo atroxaper: My pleasure 10:08
atroxaper: thanks for the example, I've added and linked it to the corresponding issue 10:09
10:10 domidumont left 10:24 Doc_Holliwood joined 10:25 frost-lab joined 10:47 atroxaper left 10:49 frost-lab left 10:51 sjm_uk left 11:12 jmerelo left 11:22 Black_Ribbon left 11:27 aborazmeh left 12:27 linkable6 left, evalable6 left, evalable6 joined 12:28 linkable6 joined 12:30 sjm_uk joined 12:51 jmchael joined 13:00 aborazmeh joined, aborazmeh left, aborazmeh joined 13:05 aborazmeh left 13:09 sena_kun joined 13:11 Altai-man left 13:12 aborazmeh joined, aborazmeh left, aborazmeh joined 13:17 leont joined 14:17 linkable6 left, evalable6 left 14:18 mowcat joined 14:19 linkable6 joined 14:20 evalable6 joined 14:24 albino joined 14:31 mowcat left 15:16 lucasb joined 15:38 Manifest0 left, sno joined 15:40 domidumont joined 15:42 codesections left 15:49 natrys joined, Manifest0 joined 15:53 domidumont left 16:06 Xliff joined
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
16:12 _jrjsmrtn joined 16:13 __jrjsmrtn__ left 16:15 parabolize joined
Xliff moritz++ 16:20
16:35 stoned75 joined
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
17:01 agentzh joined, agentzh left, agentzh joined 17:05 MilkmanDan left 17:07 MilkmanDan joined 17:08 Altai-man joined
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?
17:11 sena_kun left
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
17:13 sjm_uk left 17:15 ajdplaysalto joined, domidumont joined 17:16 ajdplaysalto left 17:24 b2gills left
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
17:42 warriors joined
Geth doc: 664ebbbb4f | (Stoned Elipot)++ | doc/Type/Parameter.pod6
xref type captures
17:44
linkable6 Link: docs.raku.org/type/Parameter
17:45 b2gills joined
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
17:54 sjm_uk joined
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
18:26 Doc_Holliwood left 18:27 leont left 18:36 domidumont left
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
18:59 Sgeo joined
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
19:26 Doc_Holliwood joined
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
20:14 sjm_uk left 20:28 moony left 20:31 moony joined 20:38 ajdplaysalto joined 20:45 RaycatWhoDat joined 20:46 ajdplaysalto left
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.
20:56 Black_Ribbon joined
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?
21:09 sena_kun joined 21:10 Altai-man left
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
21:21 mowcat joined
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
21:47 skids joined
Geth doc: ebd3786a11 | (Stoned Elipot)++ | doc/Type/Capture.pod6
Whitespace fix
21:51
linkable6 Link: docs.raku.org/type/Capture
21:53 Henri joined
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
22:03 rindolf left
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 )
22:07 skids left
Henri Hmm... 22:07
It's still not working my REPL
22:07 natrys left
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
22:24 sena_kun left
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)
22:33 aborazmeh left
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.
22:53 brtastic left 22:58 ajdplaysalto joined 23:06 Xliff left 23:07 Xliff joined 23:16 lucasb left 23:24 oneeggeach joined 23:25 oneeggeach left 23:31 wamba left 23:36 Xliff left 23:43 ajdplaysalto left 23:44 RaycatWhoDat left