🦋 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.
guifa I’m guessin the answer is probably no but 01:57
guifa Is it possible in a reference style like %foo<bar><xyz> for foo to know you want both bar’s xyz? 01:58
I guess %foo’s AT-KEY could sneakily mixin a role that overrides the default AT-KEY and leaves a reference to itself 02:19
kjk p6: sub gg { try fail 123 }; gg 02:32
camelia ( no output )
kjk p6: sub gg { try EVAL "fail 123" }; gg
camelia 123
in block <unit> at EVAL_0 line 1
in sub gg at <tmp> line 1
in block <unit> at <tmp> line 1
kjk it looks like Failure from EVAL is not contained by try when used in a sub? 02:33
guifa Indeed it seems that way, not sure if that’s by design (I imagine not) 02:34
but this does work 02:35
sub hh { EVAL “fail 123” }; sub gg { try hh }; gg; say “All OK”
evalable6 All OK
guifa sub hh($e) { use MONKEY-SEE-NO-EVAL; EVAL $e }; sub gg { try hh("fail 123") }; gg; say "All OK"; 02:37
kjk hmm interesting, anyway, I guess I'll open a bug report then
evalable6 All OK
guifa It almost certainly is a bug given those.
But I guess the temporary work around is simple enough 02:38
kjk yeah, I'll use the work around. Thanks!
squashable6 🍕 SirBogman++ opened pull request “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597 04:00
🍕🍕🍕 First contribution by SirBogman++! ♥
🍕 SirBogman++ wrote a comment on “Using Proc::Async repeat…”: github.com/rakudo/rakudo/issues/32...-554202214 04:01
El_Che it's quiet around here 07:50
squashable6 🍕 lizmat++ wrote a comment on “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597#is...-554272231 08:58
🍕🍕🍕 First contribution by lizmat++! ♥
squashable6 🍕 jnthn++ wrote a comment on “Failure from EVAL is not…”: github.com/rakudo/rakudo/issues/33...-554275613 09:08
🍕🍕🍕 First contribution by jnthn++! ♥
tbrowder El_Che: hey! 10:27
El_Che hi tbrowder! 10:36
tbrowder i didn't notice squashathon announcement 10:37
El_Che same 10:38
tbrowder not sure all the bots know about raku yet, reliably anyway 10:38
El_Che I am pretty sure the ones that AlexDaniel runs know about #raku 10:40
El_Che they are probably the half of the nicks here :) 10:40
tbrowder would appreciate you looking at AVL-Tree on rosettacode. i tried to make it as rakuish as i could but i'm also sure there's room for improvement 10:41
tbrowder i need to add output examples but need to learn some more wiki syntax 10:43
lizmat cygni.se/the-perfect-programming-language/ # feels to me, this person should be told about Raku :-) 11:13
Altai-man_ `[ 1..100 -> '$->fizz;$->buzz;' ] -> [i](<''> $i ! <> $ !)... -> '$;` I am not sure if joke or not 11:16
`{ N: $.N + 1, n0: $.n1 - $.n0, n1: $.n0} -> #` hmmmm
hankache hello #raku 11:18
Altai-man_ hankache, o/
hankache What's the word on docs.raku.org? 11:22
jnthn Altai-man_: Not a joke, though a quite different take on doing things :) 11:24
lizmat hankache: yeah, the headers seem off :-) 11:26
hankache hi lizmat
I got a bit of free time and was thinking of updating perl6intro 11:27
I was wondering if I should change the links to the docs or not?
hankache So should I update links to docs.raku.org or not yet? 11:36
What about the twitter @perl6org handle and pl6anet.org?
Geth doc: 190993624d | (Elizabeth Mattijsen)++ | 32 files
Fix a LOT of perl6 -> raku references
11:46
lizmat hankache: yes, links can be adapted now 11:50
and perhaps move to a "rakuintro.com" ?
I'm not sure about the future of pl6anet.org
it's basically kept as a placeholder at the moment
squashable6 🍕 lizmat++ synchronize pull request “Add any type information to positional in usage”: github.com/rakudo/rakudo/pull/3300 11:56
rba I was able to take over pl6anet.org and the domain and dns under our control. 12:17
tellable6 2019-11-13T23:05:50Z #raku-dev <patrickb> rba github.com/patzim/rakudo.org/tree/...ads-rework # <- That's what I got so far. It's not done yet, but might be enough to gather some input what others think.
rba lizmat: You can use it as long as you like, or we give the feed a new home. I disussed earlier alread to move it to planet.raku.org.
lizmat planet.raku.org feels good :-) 12:18
rba Ok. Will put this on my list. As soon as primar is change I will redirect from pl6anet.org. 12:19
.tell patrickb Thanks for the changes. Will let you know as soon as a testing site based on your repo is setup. 12:20
tellable6 rba, I'll pass your message to patrickb
hankache thanks lizmat for the disambiguation. Yes a rakuintro is on the way :) 12:31
lizmat ++hankage 12:32
lizmat is reminded she should work on getting the Dutch version up to date
++hankache # oops, sorry 12:33
hankache hehe. Maybe after I update the EN version 12:34
it will become easier
lizmat I'm way behind on updates before the name change :-(
squashable6 🍕 lizmat++ synchronize pull request “Add any type information to positional in usage”: github.com/rakudo/rakudo/pull/3300 12:35
Altai-man_ squashable6, status 12:37
squashable6 Altai-man_, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈23 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
Altai-man_, Log and stats: gist.github.com/b62b9b753ba8641ad3...de78ee238c
lizmat wee, a mid-months Squashathoin ? 12:38
Altai-man_ seems so, but I don't think the topic was settled... I'll be writting advent articles anyway, because deadline is close and a cold has caught me this month in not the best timing. :/ 12:39
AlexDaniel uhhh wait 12:47
it kinda… slipped through the cracks…
Altai-man_: we can do it if you tell me the topic for this month :) 12:49
or we cancel it alltogether… 12:50
Altai-man_ AlexDaniel, one thing that comes to mind is github.com/perl6/ecosystem/issues/324 but I suspect some modules are, well, simply abandones, so not sure how we can count the efforts...
but I'd just cancel it this month, tbh
AlexDaniel we can set the webhook on ecosystem/ repo and the bot will count edits to that ticket 12:51
but yeah, I guess no squashathon this month… 12:52
Altai-man_: like this? github.com/rakudo/rakudo/wiki/Mont...Squash-Day 12:54
Altai-man_ AlexDaniel, seems legit to me, thanks for your care. :) 12:55
AlexDaniel :)
lizmat afk for a few hours& 12:58
Geth doc: germanrodriguezherrera++ created pull request #3087:
Fix doc bug related to how to explicitly capture whitespace using <ws>.
13:53
guifa2 .tell jmerelo: Sorry I'm going to be a little bit later on finishing the advent day post, will be ready by early next week. Had a giant load of $work but Pointless dropped on me at $day-job 14:08
tellable6 guifa2, I'll pass your message to jmerelo
tbrowder oops, what is jj's suspense date? 14:21
hankache Git gurus, quick question. If I rename a file would I lose it's history i.e. on GitHub? 14:37
squashable6 🍕 vrurg++ edited a review on pull request “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597#pu...-317655241 14:39
🍕🍕🍕 First contribution by vrurg++! ♥
🍕 vrurg++ wrote a comment on a review for “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597#di...r346851172
🍕 vrurg++ submitted a review on pull request “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597#pu...-317655241
Grinnz it can be a bit harder to follow yes, the new file would not directly show the old history or blame
squashable6 🍕 vrurg++ wrote a comment on a review for “Add a test for rakudo/ra…”: github.com/perl6/roast/pull/597#di...r346851564
Grinnz but its oldest history commit would show the rename at least
tbrowder .ask jmerelo what's the suspense date for advent articles? 14:40
tellable6 tbrowder, I'll pass your message to jmerelo
Altreus Hrm my cro http service running in docker keeps spiking to 160% CPU
And it's only got 2 routes!
hankache thanks Grinnz
Altreus looks like it's only a problem when SSL is active 14:43
AlexDaniel uhh squashable6 chill… 14:50
AlexDaniel Grinnz: why not? 14:52
“The origin of lines is automatically followed across whole-file renames (currently there is no option to turn the rename-following off).” 14:53
Grinnz hmm, maybe it does in some cases, it did not seem to work in the brief examples i checked
AlexDaniel example: github.com/rakudo/rakudo/blame/mas...ethods.pm6 14:54
all files in core.c/ were moved from core/
history, on the other hand, seems to be broken :( github.com/rakudo/rakudo/commits/m...ethods.pm6
Grinnz maybe it depends whether the file was also changed when renamed 14:54
AlexDaniel well, I'd say it's github itself being stupid 14:55
`git log` will not follow by default, but with --follow it works fine
github.com/isaacs/github/issues/900
Grinnz yeah, git log can do it
AlexDaniel omg github.com/sindresorhus/refined-github 14:59
AlexDaniel IT HAS “OPEN YOUR FORK” BUTTON 15:03
AlexDaniel screams like a child
Altreus I'm a bit confused about language basics because I'm a perl5-er. I assumed that I could address a function by its Fully::Qualified::name() ... if I can then I don't know how to define it 15:13
I assumed I could have unit package Fully::Qualified; sub name() {} 15:14
Geth perl6.org: 213b29f96c | (Naoum Hankache)++ (committed using GitHub Web editor) | source/resources/index.html
Perl 6 Intro -> Raku Guide
perl6.org: 07ec7378b1 | (Naoum Hankache)++ (committed using GitHub Web editor) | source/downloads/index.html
Perl 6 Intro -> Raku Guide
15:16
hankache Perl 6 Intro is dead. Long live The Raku Guide raku.guide 15:18
jnthn Altreus: subs are my scoped by default 15:23
Altreus our? 15:25
Some skills are transferrable! 15:26
Altreus TIAS
yass! thank you jnthn 15:27
No question is beneath you
lucasb hankache++ thanks for creating this material 15:30
Altreus Help would be much appreciated because I do not understand this: gist.github.com/Altreus/7ae23f15c2...c64d7a65b1 15:37
also I'd kind of like to set $*RED-DB globally when the service starts but I don't know how to do that 15:38
jnthn Altreus: You'd need to put it in PROCESS::<$RED-DB> (or GLOBAL::) I guess...*but*... 15:43
Altreus: The more typical Cro way is to pass such dependencies into the route sub as an argument
vrurg Altreus: look at red-defaults. 15:44
jnthn cro.services/docs/structuring-serv...pendencies
Altreus I will peruse these things and hopefully learn something :D 15:46
uh how do I "look at red-defaults", if you'll forgive a possibly stupid question? 15:48
vrurg: :) ^ 15:49
Altreus ah an undocumented routine! 15:52
vrurg Altreus: not yet documented, but it's now a mainline feature. 15:53
sorry, will be afk for a few hours.
Altreus Grand :) 15:54
vrurg Altreus: but before I'm gone, one last thing: it's not considered a good practice to be used in a non-single DB environment. It's mostly targeting needs of small-to-midsize apps. 15:56
Altreus this is a tiny app :) 16:16
jnthn: Don't know how to jsonify UUID
oops, pasted newline
I was going to say, can I tell it to stringify this without making a whole custom serialiser? 16:17
Altreus although I'm not sure why I would be in that situation 16:18
The question is academic but still valuable
Also it's JSONifying a Bool as an Int 16:19
johnjay If a compiler is twice as hard to write as the language... does that mean a clever person can make a language so good he can't parse it? 16:21
El_Che you're describing Perl
jnthn Altreus: It just uses JSON::Fast 16:23
github.com/croservices/cro-http/bl...rs.pm6#L70 is the implementation of it, fwiw 16:24
(The body serializer, that is) 16:25
Altreus ah I think SQLite gave me a 0 - red didn't boolify it for me 16:27
El_Che: the same principle applies to PHP 16:28
jnthn That'd make more sense...I'd be surprised if JSON::Fast wasn't doing booleans right :)
SmokeMachine Altreus: fco.github.io/Red/api/Red/Do 16:48
SmokeMachine Altreus: this is one way of doing that: github.com/FCO/Cro-HTTP-Session-Red#synopsis 16:49
SmokeMachine Altreus: thank you for you issue! I’ll try to fix it as soon as I come home... 16:50
Altreus hey cool 16:56
Altreus SmokeMachine: thanks for putting time into it :D 16:56
Geth doc: 9e3e84817c | (German Rodriguez Herrera)++ | doc/Language/grammars.pod6
Fix doc bug related to how to explicitly capture whitespace using <ws>.
17:10
doc: 520c78bfb0 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Language/grammars.pod6
Merge pull request #3087 from germanrodriguezherrera/master

Fix doc bug related to how to explicitly capture whitespace using <ws>.
cj o/ 17:18
I need help with the mariadb connector 17:19
patgee?
anybody seen patgee?
johnjay the rakudo compiler is written in haskell right? What kind of features does raku have that haskell doesn't/ 17:20
jnthn johnjay: No, it's written in Raku (well, a bootstrapped subset of it) 17:23
johnjay i see
so like. the current compiler compiles the new compiler thing?
jnthn Yes, on the boostrapped subset. 17:25
cj has anyone present connected to a mariadb or oraclemysql server using raku yet? 17:37
cj cxreg: that means you 17:43
cj barely any activity by timbunce. I'm surprised. 17:44
cj how do I build raku packages? 18:25
perl Makefile.PL ; make ; prove -bv t/foo.t ?
cj docs.perl6.org/language/modules 18:26
zef install . 18:27
# Connect failed with error Cannot locate symbol 'mysql_init' in native library '' 18:28
wah.
cxreg: I need your help
cj moritz: ooh! I bet you could help, too. 18:37
cj lib/DBDish/mysql/Native.pm6: method mysql_init(MYSQL:U: --> MYSQL) is native(LIB) { * } 18:40
moritz I haven't touched DBIish in a while 18:42
but mysql backend used to work, and mysql and mariadb are protocol compatible
but "native library ''" doesn't look right
do you have the mysql client C library installed?
MasterDuke may also need *dev versions 18:43
cj yeah, ...
paste2.org/IJGGXbDd
eew. so many ads. 18:44
gist.github.com/cjac/9e0cc25a0e1da...77b6af8201
with libraries at /usr/lib/x86_64-linux-gnu/libmysqlclient.a 18:45
and friends
$ sudo ldconfig -v 2>/dev/null | grep -i -e mariadb -e mysql 18:46
libmariadb.so.3 -> libmysqlclient_r.so
MasterDuke: yeah, I have libdbd-mysql-perl:amd64 mariadb-client-10.3 mysql-client packages among others 18:48
on and libmariadb-dev of course 18:49
libmariadbclient-dev:amd64 too
$ file /usr/bin/moar 18:51
/usr/bin/moar: ELF 64-bit LSB pie executable, x86-64
MasterDuke what version of rakudo?
cj 6.d-2
MasterDuke that's the language version. i meant the compiler. i.e., `perl6 --version` 18:53
m: say $*PERL.compiler.version 18:54
camelia v2019.07.1.478.g.75056.dfa.1
cj 2018.12 built on MoarVM version 2018.12 18:55
what platform do you run the bleeding edge on? I should spin up a VM and stop polluting my workstation with dev stuff :-) 18:56
MasterDuke yeah, that's almost a year old
what os are you using? 18:57
cj I'm spinning up an old debian image I've got. I'll upgrade it to buster or sid 19:02
MasterDuke i think they're official repos are a bit out of date also. but El_Che++ has updated packages for most common distros 19:03
*their 19:04
github.com/nxadm/rakudo-pkg
cj nice. I can also build debian packages from source and find bugs that way. 19:05
SmokeMachine Altreus: I think it was fixed with github.com/FCO/Red/commit/40255fd8...ec5bda4baf could you test it, please? 20:35
Geth modules.perl6.org: hankache++ created pull request #130:
Rebrand as Raku
20:47
Xliff_ I've seen this before, but would like it explained again. 21:09
If I have a string that looks like the following: "<<<EOM\nThis is\na\nHeredoc\mEOM;" 21:10
Can I use s///, and still extract the text between "EOM"s?
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\mEOM;" ~~ / '<<<' $et=(\w+) .+? <et> /; 21:12
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized backslash sequence: '\m'
at <tmp>:1
------> 3say "<<<EOM\nThis is\na\nHeredoc\7⏏5mEOM;" ~~ / '<<<' $et=(\w+) .+? <et> /;
expecting any of:
argument list
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $et=(\w+) .+? <et> /;
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$et' is not declared. Did you mean 'Set'?
at <tmp>:1
------> 3\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' 7⏏5$et=(\w+) .+? <et> /;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=(\w+)> .+? <et> /;
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> 3is is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=7⏏5(\w+)> .+? <et> …
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? <et> /;
camelia Nil
Xliff_ ^^ That's what I'm running into
m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? { $et } /; 21:13
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$et' is not declared. Did you mean 'Set'?
at <tmp>:1
------> 3doc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? { 7⏏5$et } /;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? <$et>/;
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$et' is not declared. Did you mean 'Set'?
at <tmp>:1
------> 3edoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? <7⏏5$et>/;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? <et>/;
camelia Nil
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=(\w+)> .+? /;
camelia Nil
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=(\w+)> .+? /;
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> 3is is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=7⏏5(\w+)> .+? /;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' <$et=(\w+)> .+? /;
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> 3is is\na\nHeredoc\nEOM;" ~~ / '<<<' <$et7⏏5=(\w+)> .+? /;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=\w+> .+? /;
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in metachar:sym<assert>; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> 3is is\na\nHeredoc\nEOM;" ~~ / '<<<' <et=7⏏5\w+> .+? /;
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et=\w+> .+? /;
camelia Nil
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' \w+ .+? /; 21:14
camelia 「<<<EOM
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et>=\w+ .+? /;
camelia 「<<<EOM

et => 「EOM」
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et>=\w+ .+? <et>/;
camelia No such method 'et' for invocant of type 'Match'. Did you mean any of these?
Set
at

in block <unit> at <tmp> line 1
Xliff_ m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et>=\w+ .+? $<et>/;
camelia 「<<<EOM
This is
a
Heredoc
EOM」
et => 「EOM」
Xliff_ \o/
m: say "<<<EOM\nThis is\na\nHeredoc\nEOM;" ~~ / '<<<' $<et>=\w+ .+? $<et>';'/;
camelia 「<<<EOM
This is
a
Heredoc
EOM;」
et => 「EOM」
Xliff_ Hah! Here's what I was looking for.... 21:18
m: my $x = 1; my $a = "\$a = <<<EOM\nThis is\na\nHeredoc\nEOM;"; $a ~~ s/ '<<<' $<et>=\w+ (.+?) $<et>';'/L>>{$x++}/; my $b = $/<et>; my $c = $/[0]; say $a; say $b; say $c; say $x;
camelia $a = L>>1
「EOM」

This is
a
Heredoc

2
AlexDaniel hankache: let me know when it's ready 21:32
hankache AlexDaniel: PR for modules is ready. I am working on raku.org now 21:33
AlexDaniel hankache: can you tweak the README too?
hankache AlexDaniel yes
AlexDaniel by the way examples.raku.org doesn't exist. I will have to keep the old link 21:34
AlexDaniel hankache: yep… that's exactly how it went last time :)
hankache AlexDaniel :) 21:35
AlexDaniel masak: can you kill github.com/masak/proto ? I stumbled upon this issue: github.com/perl6/modules.perl6.org...;type=Code
“Sorry, forked repositories are not currently searchable”
Geth doc: 40be222171 | (Stoned Elipot)++ | doc/Language/traps.pod6
Fix links for operators

  - fix link for superset of or equal operator
  - properly quote with << >>
  - remove now unneeded whitespace in link
21:38
perl6.org: hankache++ created pull request #139:
More Perl 6 -> Raku changes
21:39
perl6.org: 2b482956c4 | (Naoum Hankache)++ | 4 files
More Perl 6 -> Raku changes
21:40
perl6.org: bc0dd49716 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | 4 files
Merge pull request #139 from hankache/master

More Perl 6 -> Raku changes
modules.perl6.org/master: 4 commits pushed by (Naoum Hankache)++, (Aleks-Daniel Jakimenko-Aleksejev)++ 22:03
Xliff_ m: '{"a": 4.55, "b": "wxyz", "c": "[true, false]"}'.chars.say 22:21
camelia 46