🦋 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.
00:57 benchable6 left, quotable6 left, statisfiable6 left, coverable6 left, nativecallable6 left, reportable6 left, committable6 left, unicodable6 left, releasable6 left, bloatable6 left, shareable6 left, greppable6 left, notable6 left, squashable6 left, greppable6 joined, unicodable6 joined 00:58 committable6 joined, bloatable6 joined, releasable6 joined 00:59 quotable6 joined, shareable6 joined, statisfiable6 joined, reportable6 joined, coverable6 joined 01:00 squashable6 joined, nativecallable6 joined, notable6 joined, benchable6 joined 01:11 alnk left 01:12 tbrowder joined
guifa I’m guessin the answer is probably no but 01:57
01:57 wildtrees left
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
02:31 kjk joined
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!
03:09 kjk left 03:36 wamba joined 03:44 hythm joined
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
04:41 wamba left 05:20 xinming left 05:21 jaldhar joined 05:23 xinming joined 05:25 wamba joined 05:31 hythm left 05:32 jaldhar left, jaldhar joined 05:38 jaldhar left, jaldhar joined 05:40 jaldhar left, jaldhar joined 05:46 jaldhar left, jaldhar joined 05:52 jaldhar left, jaldhar joined 05:54 jaldhar left, jaldhar joined 05:56 jaldhar left, jaldhar joined 06:00 jaldhar left, jaldhar joined 06:07 jmerelo joined 06:09 sena_kun joined 06:14 robertle left 06:19 xinming left 06:22 jaldhar left, xinming joined, jaldhar joined 06:24 jaldhar left, jaldhar joined 06:26 jaldhar left, jaldhar joined 06:28 Xliff_ joined, jaldhar left, jaldhar joined 06:38 Xliff left, sena_kun left 06:42 sergot joined 06:48 lizmat joined, jjatria joined, mspo joined, bartolin joined, tony-o joined, camelia joined, cxreg joined 06:58 jaldhar left, jaldhar joined 07:00 jaldhar left, jaldhar joined 07:15 lizmat left, jjatria left, mspo left, bartolin left, tony-o left, camelia left, cxreg left, wamba left 07:16 AlexDaniel left, lizmat joined, jjatria joined, mspo joined, bartolin joined, tony-o joined, camelia joined, cxreg joined, AlexDaniel joined 07:17 AlexDaniel left, AlexDaniel joined, mid_home left 07:26 jmerelo left 07:30 jaldhar left, jaldhar joined 07:32 jaldhar left, jaldhar joined 07:34 jaldhar left, jaldhar joined 07:38 jaldhar left, jaldhar joined 07:39 stoned75 left 07:40 jaldhar left, jaldhar joined 07:42 jaldhar left, jaldhar joined 07:44 jaldhar left 07:46 jaldhar joined 07:47 squashable6 left 07:48 jaldhar left, jaldhar joined 07:49 squashable6 joined
El_Che it's quiet around here 07:50
07:50 jaldhar left, jaldhar joined 08:04 jaldhar left, jaldhar joined 08:14 jaldhar left, jaldhar joined 08:16 jaldhar left, jaldhar joined 08:23 robertle joined 08:28 jaldhar left, jaldhar joined 08:30 jaldhar left, jaldhar joined 08:33 maettu left, maettu joined 08:36 jaldhar left, jaldhar joined 08:40 jaldhar left, jaldhar joined 08:42 jaldhar left, jaldhar joined 08:48 jaldhar left, jaldhar joined 08:55 abraxxa left 08:56 abraxxa joined
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++! ♥
08:58 jaldhar left, jaldhar joined
squashable6 🍕 jnthn++ wrote a comment on “Failure from EVAL is not…”: github.com/rakudo/rakudo/issues/33...-554275613 09:08
🍕🍕🍕 First contribution by jnthn++! ♥
09:13 abraxxa left 09:29 maettu left, maettu joined 09:30 xinming left, jaldhar left, jaldhar joined 09:32 xinming joined 09:38 laif joined 09:56 laif left 09:58 jaldhar left, jaldhar joined 10:00 jaldhar left, jaldhar joined 10:02 joeinwap joined 10:04 joeinwap left 10:06 laif joined 10:10 scimon joined 10:17 sena_kun joined, laif_ joined 10:18 jaldhar left, jaldhar joined 10:19 laif left 10:20 laif_ left 10:26 robertle left
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
10:38 jaldhar left
tbrowder not sure all the bots know about raku yet, reliably anyway 10:38
10:38 jaldhar joined 10:40 jaldhar left
El_Che I am pretty sure the ones that AlexDaniel runs know about #raku 10:40
10:40 jaldhar joined
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
10:42 jaldhar left, abraxxa joined, jaldhar joined
tbrowder i need to add output examples but need to learn some more wiki syntax 10:43
10:44 jaldhar left, jaldhar joined 10:49 robertle joined 11:08 Altai-man_ joined 11:10 sena_kun left, scimon_ joined 11:13 scimon left
lizmat cygni.se/the-perfect-programming-language/ # feels to me, this person should be told about Raku :-) 11:13
11:14 robertle left
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
11:17 robertle joined 11:18 hankache joined
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?
11:28 mid_laptop joined
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
11:52 jaldhar left, jaldhar joined 11:54 jaldhar left, jaldhar joined
squashable6 🍕 lizmat++ synchronize pull request “Add any type information to positional in usage”: github.com/rakudo/rakudo/pull/3300 11:56
11:56 jaldhar left, jaldhar joined 11:58 jaldhar left, jaldhar joined 11:59 hankache left 12:00 jaldhar left, jaldhar joined 12:01 abraxxa left 12:15 scimon_ left, scimon joined
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
12:30 hankache joined
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
12:40 mid_laptop left
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
13:09 sena_kun joined 13:10 Altai-man_ left 13:18 jaldhar left, jaldhar joined 13:20 jaldhar left 13:25 jaldhar joined 13:26 jaldhar left, jaldhar joined 13:32 jaldhar left, jaldhar joined 13:34 jaldhar left, jaldhar joined 13:40 jaldhar left, jaldhar joined 13:41 mid_laptop joined 13:42 jaldhar left, jaldhar joined 13:44 jaldhar left, jaldhar joined 13:46 jaldhar left, jaldhar joined 13:48 jaldhar left, jaldhar joined 13:50 jaldhar left 13:51 lucasb joined 13:52 jaldhar joined
Geth doc: germanrodriguezherrera++ created pull request #3087:
Fix doc bug related to how to explicitly capture whitespace using <ws>.
13:53
13:56 jaldhar left 13:58 jaldhar joined 14:00 jaldhar left, jaldhar joined 14:02 jaldhar left, jaldhar joined 14:04 jaldhar left, jaldhar joined, cpan-raku left 14:05 guifa2 joined, cpan-raku joined, cpan-raku left, cpan-raku joined 14:06 jaldhar left, jaldhar joined
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
14:16 jaldhar left, jaldhar joined 14:18 jaldhar left, jaldhar joined 14:20 jaldhar left, jaldhar joined
tbrowder oops, what is jj's suspense date? 14:21
14:22 jaldhar left, jaldhar joined 14:24 jaldhar left, jaldhar joined 14:26 jaldhar left, jaldhar joined 14:27 apathor joined 14:28 jaldhar left, jaldhar joined 14:30 jaldhar left, jaldhar joined 14:32 jaldhar left, jaldhar joined 14:34 jaldhar left, jaldhar joined 14:36 jaldhar left, jaldhar joined
hankache Git gurus, quick question. If I rename a file would I lose it's history i.e. on GitHub? 14:37
14:38 jaldhar left, jaldhar joined
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
14:46 jaldhar left, jaldhar joined 14:48 jaldhar left, wbiker joined, jaldhar joined 14:50 jaldhar left
AlexDaniel uhh squashable6 chill… 14:50
14:50 jaldhar joined 14:51 squashable6 left, squashable6 joined 14:52 jaldhar left, jaldhar joined
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
14:54 jaldhar left, jaldhar joined
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
15:03 timotimo[m] joined, Demos[m] joined, tyil[m] joined, rba[m] joined, MitarashiDango[m joined, AlexDaniel` joined, uzl[m] joined, aearnus[m] joined, matiaslina joined, CIAvash joined
AlexDaniel IT HAS “OPEN YOUR FORK” BUTTON 15:03
AlexDaniel screams like a child
15:04 jaldhar left, jaldhar joined 15:08 Altai-man_ joined 15:10 sena_kun left
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
15:30 jaldhar left, jaldhar joined 15:32 jaldhar left, jaldhar joined
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
15:42 mid_laptop left
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
15:50 robertle left
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
15:54 jaldhar left, scimon left, jaldhar joined 15:56 robertle joined, jaldhar left
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
15:56 jaldhar joined 16:10 robertle left 16:12 robertle joined 16:16 mensvaga left
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
16:18 hankache left
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
16:48 jaldhar left, jaldhar joined
SmokeMachine Altreus: this is one way of doing that: github.com/FCO/Cro-HTTP-Session-Red#synopsis 16:49
16:49 b2gills joined
SmokeMachine Altreus: thank you for you issue! I’ll try to fix it as soon as I come home... 16:50
16:50 jaldhar left, jaldhar joined
Altreus hey cool 16:56
16:56 jaldhar left
Altreus SmokeMachine: thanks for putting time into it :D 16:56
16:56 jaldhar joined 17:08 xinming left, sena_kun joined
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>.
17:10 Altai-man_ left 17:12 xinming joined 17:17 rypervenche joined
cj o/ 17:18
I need help with the mariadb connector 17:19
patgee?
anybody seen patgee?
17:19 robertle left
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
17:40 johnjay left
cj cxreg: that means you 17:43
17:44 wamba joined
cj barely any activity by timbunce. I'm surprised. 17:44
17:46 abraxxa joined 17:51 abraxxa left, johnjay joined 17:52 abraxxa joined 17:56 abraxxa left 18:08 jaldhar left, jaldhar joined 18:10 jaldhar left, jaldhar joined 18:12 jaldhar left, jaldhar joined 18:16 jaldhar left, jaldhar joined 18:20 jaldhar left, jaldhar joined
cj how do I build raku packages? 18:25
perl Makefile.PL ; make ; prove -bv t/foo.t ?
18:26 jaldhar left, jaldhar joined
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
18:30 jaldhar left 18:31 jaldhar joined 18:35 jaldhar left
cj moritz: ooh! I bet you could help, too. 18:37
18:40 wamba left
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
18:57 wildtrees joined
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
19:08 Altai-man_ joined 19:10 sena_kun left 20:00 Manifest0 joined 20:06 stoned75 joined 20:07 stoned75_ joined 20:09 squashable6 left 20:10 squashable6 joined 20:12 guifa2 left 20:15 hankache joined
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
21:09 sena_kun joined
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?
21:11 Altai-man_ left
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
21:26 stoned75_ left, stoned75 left 21:30 stoned75 joined, stoned75 left, stoned75 joined
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
22:31 evalable6 left 22:32 jjatria left, jjatria joined 22:33 evalable6 joined 22:40 hankache left 23:06 wamba joined 23:08 Altai-man_ joined 23:10 sena_kun left 23:20 lucasb left 23:22 Altai-man_ left 23:42 cpan-raku left 23:45 cpan-raku joined, cpan-raku left, cpan-raku joined