🦋 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:05 Kaiepi left, Kaiepi joined
tbrowder AlexDaniel: thnx for the link to Damians article, lots of vaguely documented grammar stuff therein explained. 00:16
00:24 xinming_ left 00:25 xinming_ joined 01:06 wildtrees left 01:49 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 01:51 lucasb left 02:27 cspencer left 02:29 hkdtam left 02:44 cspencer joined
Geth ecosystem: 6a7d2e2ffe | 0racle++ (committed using GitHub Web editor) | META.list
Add Point to ecosystem

See github.com/0racle/raku-Point
03:41 moritz_ joined
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
03:42 moritz left
cpan-raku New module released to CPAN! LibXML (0.2.3) by 03WARRINGD 04:39
04:55 squashable6 left 04:57 squashable6 joined
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
05:32 rindolf joined 05:46 robertle left 05:55 ZzZombo_ joined 05:58 ZzZombo left, ZzZombo_ is now known as ZzZombo
cpan-raku New module released to CPAN! File::Stat (0.0.2) by 03ELCARO 06:00
06:13 jmerelo joined
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
06:20 Doc_Holliwood left 06:32 benjif joined 06:40 sena_kun joined 06:41 wamba joined 06:49 stoned75 joined 07:10 Doc_Holliwood joined 07:15 wamba left 07:18 moritz_ is now known as moritz 07:26 sena_kun left, jmerelo left 07:44 squashable6 left
cpan-raku New module released to CPAN! Point (0.0.4) by 03ELCARO 07:46
07:46 squashable6 joined 07:51 abraxxa left, abraxxa joined 07:54 eiro left, wamba joined 07:55 eiro joined 07:56 MasterDuke left, abraxxa left 07:57 abraxxa joined 08:02 wamba left 08:07 wamba joined 08:15 mid_home left 08:18 wamba left 08:23 El_Che left, leah2 left, b2gills left, sjn left, dogbert17 left, pat_js left, broquaint left, Ulti left 08:24 El_Che joined, leah2 joined, b2gills joined, sjn joined, dogbert17 joined, pat_js joined, Ulti joined, broquaint joined, leah2 left 08:28 leah2 joined
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)
09:20 wamba joined 09:23 wamba left, wamba joined 09:28 wamba left 09:29 wamba joined
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
09:37 stoned75 left
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
09:41 wamba left, wamba1 joined
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)
09:46 pmurias joined
jjatria Ah, that makes more sense now that I read docs.perl6.org/type/List#method_ACCEPTS 09:46
09:48 wamba1 left 09:50 wamba joined 09:53 wamba left, wamba joined 09:59 wamba1 joined, wamba left 10:00 wamba1 left 10:02 wamba joined 10:08 mscha joined
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)
10:10 benjif left 10:19 wamba left, wamba1 joined 10:31 pmurias left 10:33 xinming_ left 10:34 xinming_ joined 10:38 sena_kun joined 10:53 ben_m left
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
11:02 Doc_Holliwood left 11:04 ben_m joined
mscha m: 1233455561223.comb(/ \d+ % <same> /).say; 11:10
camelia (1 2 33 4 555 6 1 22 3)
11:11 wamba1 left, wamba joined 11:12 pmurias joined 11:15 wamba left 11:16 wamba joined 11:20 wamba left, wamba1 joined 11:27 wamba1 left 11:28 wamba joined 11:47 wamba left 12:13 wamba joined, scimon joined
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
12:25 sena_kun left 12:34 scimon left 12:39 sena_kun joined 12:41 Doc_Holliwood joined 12:43 Xliff left 12:47 awwaiid joined
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
awwaiid thanks lizmat, just as I suspected 12:53
13:14 mid_laptop joined 13:26 unclechu joined
unclechu hey, the Raku github account still has github.com/perl6 (/perl6) address 13:37
13:38 mensvaga left 13:48 mid_laptop left 13:50 wamba left 13:55 xinming_ left, xinming_ joined 13:58 mid_laptop joined 13:59 Kaiepi left, Kaiepi joined 14:01 wamba joined 14:04 sergot left, freezing left 14:09 freezing joined, sergot joined
moritz such things are slow to change 14:11
14:13 sergot left, freezing left 14:19 freezing joined, sergot joined 14:22 lucasb joined 14:25 sena_kun left 14:41 sena_kun joined 14:44 hkdtam joined
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
15:35 daxim left 15:36 hkdtam left
pmurias lizmat: I fixed nqp::radix(_I) on the jvm 15:37
15:41 daxim joined 15:55 uzl[m] joined
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. :(
16:00 pmurias left
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. :)
16:13 jmerelo joined
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
16:21 cwood joined 16:22 cwood is now known as Xliff
Xliff \o 16:22
Does Raku interoperability tools for Active Directory
s/Raku/Raku have/
16:25 sena_kun left 16:39 sena_kun joined 16:41 mid_laptop left 16:51 Xliff left 17:10 robertle joined
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)
17:32 chloekek joined
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...
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
17:51 mscha left 18:00 wamba left
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
18:13 MasterDuke joined 18:22 skyl4rk left
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
18:26 sena_kun left, skyl4rk joined 18:40 lelf joined, sena_kun joined
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
18:50 camelia left, hkdtam joined, hythm joined
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
18:52 mid_home joined
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 :-)
19:16 cspencer left 19:17 t12 joined
xkr47 is there a cruìâ tool to convert perl5 to perl6 ? :D 19:19
19:21 t12 is now known as arrestee
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
19:40 wildtrees joined 19:41 wamba joined
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
19:50 wamba left
xkr47 input: string/yaml/json, same output alternatives 19:50
19:51 wamba joined
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
20:16 stoned75 joined
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
20:26 sena_kun left
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 :)
20:36 arrestee left 20:37 arrestee joined 20:40 sena_kun joined
cpan-raku New module released to CPAN! Date::Calendar::CopticEthiopic (0.0.1) by 03JFORGET 20:42
20:43 rindolf left
cpan-raku New module released to CPAN! Date::Calendar::Strftime (0.0.2) by 03JFORGET 20:44
20:53 finanalyst joined 21:02 arrestee left 21:13 jmerelo left 21:15 pmurias joined 21:16 Nasrudin joined, Nasrudin42 left 21:27 wildtrees left 21:32 pmurias left, pmurias joined 21:48 arrestee joined 21:49 arrestee left 21:56 mid_home left 22:07 hythm left, chloekek left 22:13 finanalyst left 22:26 sena_kun left 22:41 MasterDuke left, sena_kun joined
sena_kun goodness, the wordpress editor is beyond horrible 23:00
23:11 cpan-raku left 23:12 cpan-raku joined, cpan-raku left, cpan-raku joined
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
23:58 sena_kun left