🦋 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.
tbrowder AlexDaniel: thnx for the link to Damians article, lots of vaguely documented grammar stuff therein explained. 00:16
Geth ecosystem: 6a7d2e2ffe | 0racle++ (committed using GitHub Web editor) | META.list
Add Point to ecosystem

See github.com/0racle/raku-Point
03:31
cpan-raku New module released to CPAN! Point (0.0.2) by 03ELCARO 03:42
New module released to CPAN! Point (0.0.1) by 03ELCARO
cpan-raku New module released to CPAN! LibXML (0.2.3) by 03WARRINGD 04:39
xkr47 tbrowder, yeah sorry tombstone; I never used it in writing before and misspelled it.. 05:06
tbrowder, but thanks :)
cpan-raku New module released to CPAN! Point (0.0.3) by 03ELCARO 05:26
cpan-raku New module released to CPAN! File::Stat (0.0.2) by 03ELCARO 06:00
jmerelo Do you want to know everything about tripcodes? Read about it in today's calendar entry by sena_kun rakuadventcalendar.wordpress.com/2...tripcodes/ 06:17
cpan-raku New module released to CPAN! Point (0.0.4) by 03ELCARO 07:46
jjatria I'm having a hard time understanding how (List) ~~ (List) is supposed to work, and the meaning of (List)|(List) 09:16
In particular, this behaves sort of how I expected it to
m: say (1, 2) ~~ (1, 2)
camelia True
jjatria But this doesn't
m: say (1, 2)|(1, 2) ~~ (1, 2) 09:17
camelia any(False, False)
jjatria I also tried this, but it didn't help 09:18
m: say (1) ~~ (1); # as expected?
camelia True
jjatria m: say (1)|(1) ~~ (1); # not sure why this is different 09:19
camelia any(True, True)
CIAvash jjatria: (1) is not a list, it's just an Int 09:35
I could be wrong but it seems in the case of `(1, 2)|(1, 2) ~~ (1, 2)` it's looking at object identity 09:36
CIAvash m: say (1, 2)|(1, 2) eqv (1, 2) 09:37
jjatria CIAvash: FWIW, it does work if I put the Junction on the right
camelia any(True, True)
jjatria Oh 09:38
CIAvash Yes being left and right is important, it depends on how the ACCEPTS method is implemented: docs.raku.org/routine/ACCEPTS 09:42
lizmat one of the lessons from smart-match in Perl: it cannot be symmetric 09:43
(and afaik Perl's smart-match is/was)
jjatria Ah, that makes more sense now that I read docs.perl6.org/type/List#method_ACCEPTS 09:46
mscha m: 1233455561223.comb(/(.) $0*/).say; 10:08
camelia (1 2 33 4 555 6 1 22 3)
mscha m: 1233455561223.comb(/(.) {} $0*/).say; 10:09
camelia (1 2 33 4 555 6 1 22 3)
cpan-raku New module released to CPAN! Gnome::GObject (0.15.5) by 03MARTIMM 10:55
New module released to CPAN! Gnome::Gdk3 (0.14.15) by 03MARTIMM
New module released to CPAN! Gnome::Gtk3 (0.20.0) by 03MARTIMM 10:56
New module released to CPAN! Gnome::Glib (0.15.4) by 03MARTIMM
mscha m: 1233455561223.comb(/ \d+ % <same> /).say; 11:10
camelia (1 2 33 4 555 6 1 22 3)
Xliff m: say "abc" ~~ /<:xdigit>/ 12:20
camelia Nil
Xliff m: say "abc" ~~ /<xdigit>/
camelia 「a」
xdigit => 「a」
Xliff m: say "abc" ~~ /<xdigit>+/
camelia 「abc」
xdigit => 「a」
xdigit => 「b」
xdigit => 「c」
Xliff m: say "abc" ~~ /<?xdigit>+/
camelia (timeout) 12:21
awwaiid Why does Set.new((0, 0),(1, 1),(1, 0)) (&) Set.new((0, 0),(1, 1),(1, 0)) give me back set() ? Looking for pairs that belong to each set 12:48
lizmat m: dd (1,2).WHICH 12:49
camelia ObjAt.new("List|57745184")
lizmat Lists are not value types, so none of the lists match, therefore an empty set as a result
see github.com/perl6/problem-solving/issues/135 12:50
also: modules.raku.org/dist/Tuple:cpan:E.../Tuple.pm6
afk&
awwaiid thanks lizmat, just as I suspected 12:53
unclechu hey, the Raku github account still has github.com/perl6 (/perl6) address 13:37
moritz such things are slow to change 14:11
AlexDaniel unclechu: the logo suggests to visit /Raku :) 15:09
unclechu: github.com/Raku
unclechu: some repos are already moved, the rest will be transferred soon, there are still a few things to figure out before we can do it 15:10
AlexDaniel` you can help, too! Let me know if you're interested
AlexDaniel moritz: honestly I simply didn't have enough time to work on it :( 15:13
current problem is how to invite all perl6 members to raku 15:14
I'm not doing that for 300+ people by hand
so I have to write a script…
unclechu sry, i don't have time right now too 15:15
pmurias lizmat: I fixed nqp::radix(_I) on the jvm 15:37
uzl[m] sena_kun++ for today's article. I left a comment in the Reddit post with some questions: old.reddit.com/r/rakulang/comments...s/f9n01lp/ 15:55
BTW, is there a channel for the Comma IDE?!
sena_kun uzl[m]: no such channel, but I'm here. :) 15:57
uzl[m]: thanks for your comments, it seems that wordpress ruined the code. :(
uzl[m] Sure. Regarding Comma, I just wanted to make sure where to ask questions if I had any down the line ;-)! 16:04
sena_kun uzl[m]: here, ping me or jnthn, but better me. :)
uzl[m] sena_kun: In fact, I had a question the other day. I use Vim and something that I noticed with Comma is that whenever I leave its window by moving to another workspace, I've to click on it in order to enable the cursor back and input text. With Vim, if I'm in Insert mode I can move back and forth and I can always input text without having to click its window. 16:16
I've never used IntelliJ-based IDEs so I'm not sure if this is some behavior inherent to them or because of my system since I'm using a tiling window manager.
sena_kun uzl[m]: I am having it too for plain idea right now, so it is intellij thing. using i3.
uzl[m] Oh, I see. Thanks! 16:18
Xliff \o 16:22
Does Raku interoperability tools for Active Directory
s/Raku/Raku have/
AlexDaniel weekly: Thanks to unclechu++ for a reminder, there's now a configured Matrix community for Raku: +raku:matrix.org . Feel free to join it (let AlexDaniel know if you need an invite) 17:22
notable6 AlexDaniel, You're welcome!
AlexDaniel weekly: (there was one named “Perl6” before, so it's part of renaming progress) 17:23
notable6 AlexDaniel, Noted! (weekly)
tbrowder hi, all. there are some theme changes coming on the raku advent site to make it look better, but be patient, jmerelo has his hands full at moment. 17:36
in the meantime, he has discovered we now have the ability to change the site's domain name if we want to (but probably not until earlier than mid january)! 17:39
any comments on a rakuadvent name change to something like "advent.raku.org" or "christmas-advent.raku.org" or similar? 17:41
jmerelo tbrowder: I think that we can do both. Any *.raku.org can be a simple redirect, but with the plan you've purchased, you can get raku-advent-calendar.org for free, I think. 17:42
sena_kun m: say :42foo; 17:49
camelia Unexpected named argument 'foo' passed
in block <unit> at <tmp> line 1
sena_kun hmm...
ah
m: say (:42foo); 17:50
camelia foo => 42
sena_kun ^ in this form of pair literal, only int literals are supported?
inb4: just look it up in Grammar
tbrowder jmerelo: the plan's free domain is only for the first year, then another fee annually, but probably less than $20 depending on TLD. 18:00
jmerelo tbrowder: right. I don't what will happen to the customization if you stop paying, though.
chloekek p6: my $ü = 1; say $u¨
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$u' is not declared
at <tmp>:1
------> 3my $ü = 1; say 7⏏5$u¨
tbrowder not planning to, but only God knows. i would like to get TPF support. but first let's see of this plan gives enough css and font flexibility. 18:02
so, a separate issue: if the Raku community wants to change names for the advent site, what new name shall it have? 18:05
tobs weekly: ^ last note was an addendum to: Thanks to unclechu++ for a reminder, there's now a configured Matrix community for Raku: +raku:matrix.org . Feel free to join it (let AlexDaniel know if you need an invite) 18:12
notable6 tobs, Noted! (weekly)
tobs AlexDaniel: see github.com/perl6/whateverable/issues/371 :)
jmerelo tbrowder: let's be totally original. raku-advent-calendar.blog 18:13
tbrowder .blog TLD costs $23.88 /yr after first year cost of $9.88 at namecheap.com 18:24
we could use existing name to get "advent-calendar.raku.org" 18:25
lelf Hi. Is there a shortcut for « make $/<smth>.made »? 18:41
lizmat $<smth>.made # aka, lose the slash ? 18:43
cspencer i’m trying to do some binding to an external c++ library, but am having some challenges and am getting the following message: “Don't know how to mangle symbol 'tensor::dim' for library 'libtorch.so.3'” 18:45
does anyone know how to resolve the symbol mangling error?
lelf lizmat: ok. -1 char. what to do with the rest 17? :) 18:46
lizmat doesn't know of any further shortcut
maybe someone else does
cspencer i’ve been following: github.com/rakudo/rakudo/blob/mast...mangling.t
which seems to indicate that i can use nativeconv('thisgnu') to specify a mangling convention, but it doesn’t appear to be working 18:47
hythm .ast instead of .made # one less char 18:51
tellable6 2019-12-02T22:45:53Z #raku <lizmat_> hythm thanks for the headsup, fixed! hythm++
lizmat hythm: yeah, but yuck 18:52
lizmat imo, this is not about the AST, but about what you made with "make" 18:52
.ast is a bad name, imo 18:53
hythm right
tadzik most of the time you don't make() an AST
well, unless you're writing a compiler :)
lizmat right 18:54
hythm but its an alias to .made, if i understand correctly
tadzik .made is a "new" name
lizmat even the original name of .ast :-)
tadzik oh, it is? :)
lizmat no, I meant .ast is the original name :-)
oops
xkr47 is there a cruìâ tool to convert perl5 to perl6 ? :D 19:19
AlexDaniel squashable6: status 19:21
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 1 day and ≈8 hours (2019-12-07 UTC-12⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
sena_kun releasable6: status 19:24
releasable6 sena_kun, Next release in ≈16 days and ≈23 hours. There are no known blockers. 0 out of 98 commits logged (⚠ 457 warnings)
sena_kun, Details: gist.github.com/5c13d2275ecd991985...d4045e1d8e
AlexDaniel sena_kun: I've just cleared the changelog draft: github.com/rakudo/rakudo/wiki/ChangeLog-Draft 19:25
releasable6: status
releasable6 AlexDaniel, Next release in ≈16 days and ≈23 hours. There are no known blockers. 0 out of 98 commits logged (⚠ 457 warnings)
AlexDaniel, Details: gist.github.com/26227d2cee788dfb03...323eb04cd8
AlexDaniel … ok it always takes a minute for releasable6 to catch up
xkr47 what might be wrong when in intellij I get "xxx is not defined" for a lot of basic subs like print, exit, die... 19:44
"Subroutine exit is not declared"
sena_kun xkr47: you mean Comma? 19:45
xkr47 yes
sena_kun xkr47: 1)try to re-open project; 2)are you using 2019.11?
3)ensure the sdk is set 19:46
xkr47 2019.10.0
1) did not help 3) sdk is set
(v2019.03.1) 19:47
sena_kun 2019.11 has a cool fix in this area, afaik... Also, invalidate cache?
xkr47 how?
ah file menu
sena_kun yup 19:48
xkr47 just upgraded to intellij idea 2019.3
invalidation fixed!
sena_kun \o/
xkr47 thanks !!
yeaah now I get nice refactoring suggestions
`if $o.defined {` -> `with $o {` 19:49
sena_kun \o/
xkr47 I'm making a "jq" kindof tool that instead runs a supplied perl6 script 19:50
xkr47 input: string/yaml/json, same output alternatives 19:50
xkr47 I had it for perl5 already, now I try to force myself to learn perl6 with a new version of the script :) 19:51
sena_kun xkr47: good luck!
xkr47 thanks
or alternative I ask here :D
sena_kun that's a nice option too. ;) 19:52
lelf p6: given [42] {when :(Int $x) {note $x}} # is there a way to make this work? 20:00
evalable6 (exit code 1) 04===SORRY!04=== Er…
lelf, Full output: gist.github.com/6bd3a73bcbf2d8ca1c...e376d35ba3
sena_kun m: given [42] {when :(Int) {note $_ }} 20:03
evalable6 [42]
lelf I don't want [42], I want what is matched by $x 20:10
sena_kun lelf: what are you trying to achieve? 20:12
lelf e. g. cases on empty list / 1-element list / many-element list 20:17
MasterDuke m: given [42] { when *.elems == 0 { say "empty" }; when *.elems == 1 { say "1-elem" }; when *.elems > 1 { say "many-elem" } } 20:23
evalable6 1-elem
lucasb if it fits the problem, it could alternatively be written as some multis with different arity 20:26
lelf MasterDuke: ... I asked how to do it with signatures 20:28
lucasb ':(Int $x)' doesn't introduce a new variable $x in the scope. IIUC, it's just a parameter name 20:29
MasterDuke hm, dunno 20:30
lucasb m: say [1,2,3] ~~ :($x,$y,$z)
evalable6 True
lucasb it matches, but I also dunno how to get those values :)
cpan-raku New module released to CPAN! Date::Calendar::CopticEthiopic (0.0.1) by 03JFORGET 20:42
cpan-raku New module released to CPAN! Date::Calendar::Strftime (0.0.2) by 03JFORGET 20:44
sena_kun goodness, the wordpress editor is beyond horrible 23:00
lizmat sena_kun: the old or the new one ? 23:24
tbrowder sena_kun: how do you create and enter your posts on wp? 23:32
sena_kun lizmat: both... 23:34
lizmat I guess :-)
sena_kun tbrowder: doing a github gist, then using script to obtain html, then paste raw html into editor
tbrowder it may be too late for this year, but i'm working on a semi-CLI method that might help. zoffix's script was a good start, but it looks to me that WP does things behind the scene (with php) that can cause trouble depending on the actual markup. did you ensure paras were single lines? probably so. 23:36
sena_kun tbrowder: I did 23:37
I mean, it is just that it unescaped some characters that WERE escaped. but let other escaped characters be fine. which made the code broken, of course, because syntax... 23:38
but I fixed it already, so never mind
cpan-raku New module released to CPAN! Sanity (0.0.1) by 03UGEXE 23:41
tbrowder yeah, escaping in the gist round trip is weird i think 23:45