๐Ÿฆ‹ 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:06 skyl4rk joined 00:07 skids joined
raku-bridge <sampersandโ€”2B +| +^2B = FF> test 00:17
00:47 Xliff joined
Xliff timotimo: I know it's getting late for you. 00:48
00:51 Black_Ribbon joined 00:57 Kaeipi joined, Kaiepi left 01:08 molaf left 01:18 Chi1thangoo left 01:20 molaf joined 01:51 mowcat left 01:53 vielreich joined
vielreich made your area like quebec and speak german, in the frontier mรฉxico with texas,the flag is in the frontier, in horizont orange almost dark like brick in up, in half gray aluminum, and in down blue sky day, with letter L red shinning thick, no very thick just 1 cm and 4 mm with red fire in the right side in line like shadow the same red shinnig 9 mm right, at the left side 1 mm of shadow, 01:53
and in down 3 mm of shadow red shinnig all the shadows stiked at the L the L no with waves in line 9 mm of fire 1 left and 3 in down , the L in the center of the new german flag occupying the entire gray strip with the shadow, the name is Deutcsh, coin deutsches. let the giants play baskectball with the browns.learn german app.memrise.com/course/920/5000-ge...-top-87/1/ copy
the adress of the page, and paste somewhere, for read it later, go at the bookseller and ask for the diccionary english german and read it verbatim,
01:55 vielreich left 02:03 aborazmeh joined, aborazmeh left, aborazmeh joined, guifa left 02:04 Manifest0 left 02:06 Manifest0 joined 02:07 bootleg-ghost joined
xinming SmokeMachine: What is the right way to inflate an object into a hash? 02:18
02:27 aborazmeh left
xinming docs.raku.org/routine/sort <--- In sort, How does sort function knows wether the function accepts one argument or 2 when we provide a block? If we provide a block, does that mean, it's always 2 arguments? 02:41
moon-child m: sub foo($x) {}; say &foo.arity 02:42
camelia 1
xinming Got it, thanks. 03:06
m: my @t = (1, 2, 3 ... Inf); my @y = eager @t; 03:10
Is there other way to inflate the laz list instead of eager statement prefix?
camelia (timeout)
xinming I just now tried something like my @y = |@t;
Xliff m: my @t = (1, 2, 3 ... ^100); my @q = @t.Array; @.is-lazy.say 03:11
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable @.is-lazy used where no 'self' is available
at <tmp>:1
------> 033 ... ^100); my @q = @t.Array; @.is-lazy7โ5.say
expecting any of:
Xliff m: my @t = (1, 2, 3 ... ^100); my @q = @t.Array; @q.is-lazy.say
camelia False
Xliff m: my @t = (1, 2, 3 ... ^100); my @q = @t.Array; @t.is-lazy.say; @q.is-lazy.say 03:12
camelia False
Xliff m: my @t = (1, 2, 3 ... ^100); @t.is-lazy.say; my @q = @t.Array; @q.is-lazy.say
camelia False
Xliff Huh! Odd.
m: my @t = (1, 2, 3 .. ^100); my @q = @t.Array; @t.is-lazy.say; @q.is-lazy.say
camelia Range objects are not valid endpoints for Ranges
in block <unit> at <tmp> line 1
Xliff m: my @t = ^100; my @q = @t.Array; @t.is-lazy.say; @q.is-lazy.say
camelia False
Xliff m: my @t = ^100; @t.is-lazy.say; my @q = @t.Array; @q.is-lazy.say
camelia False
Xliff m: my @t = lazy ^100; @t.is-lazy.say; my @q = @t.Array; @q.is-lazy.say 03:13
camelia True
Xliff m: my @t = lazy ^100; @t.is-lazy.say; my @q = eager @t; @q.is-lazy.say
camelia True
Xliff Odd
03:23 Xliff left 03:26 Xliff joined 03:30 cpan-raku left 03:32 cpan-raku joined, cpan-raku left, cpan-raku joined 04:32 committable6 left, unicodable6 left, statisfiable6 left, releasable6 left, quotable6 left, sourceable6 left, coverable6 left, linkable6 left, evalable6 left, tellable6 left, squashable6 left, shareable6 left, nativecallable6 left, bisectable6 left, notable6 left, bloatable6 left, benchable6 left, greppable6 left 04:33 sourceable6 joined, committable6 joined, shareable6 joined, bloatable6 joined, tellable6 joined 04:34 releasable6 joined, unicodable6 joined, squashable6 joined, notable6 joined, linkable6 joined, bisectable6 joined, statisfiable6 joined 04:35 coverable6 joined, nativecallable6 joined, evalable6 joined, benchable6 joined, greppable6 joined, quotable6 joined 04:40 Ben_Goldberg joined, BenGoldberg left, Ben_Goldberg is now known as BenGoldberg 04:49 Ben_Goldberg joined, BenGoldberg left, Ben_Goldberg is now known as BenGoldberg 04:52 MasterDuke left 04:53 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 04:58 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 05:06 BenGoldberg left 05:07 Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 05:15 fvox_ left 05:16 fvox joined 05:19 bootleg-ghost left 05:36 Doc_Holliwood joined 05:52 aluaces joined 05:57 ufobat joined 05:59 parabolize left 06:00 xinming_ joined 06:03 xinming left 06:19 sjm_uk joined 06:37 BenGoldberg left 06:41 patrickb joined
[Coke] waves hello from "took a nap too late in the afternoon and now I guess I'm staying up all night" 06:43
MitarashiDango[m ^ I'm in this status and I don't like it 06:48
SmokeMachine xinming_: you mean on Red? Could you exemplify what you want, please? 06:49
06:56 Sgeo left 06:59 sena_kun joined 07:03 rindolf joined, samcv left 07:22 Doc_Holliwood left
[Coke] tries to make sleep happen 07:25
patrickb releasable6: status 07:27
releasable6 patrickb, Next release in โ‰ˆ1 day and โ‰ˆ11 hours. 1 blocker. 0 out of 83 commits logged
patrickb, Details: gist.github.com/c08a063990c9462ad3...5dba0d13ef
07:31 wamba joined 07:34 frost-lab joined 08:10 jmerelo joined, skids left 08:25 andrzejku joined 08:28 abraxxa left, abraxxa joined
patrickb I'm looking at docs.raku.org/routine/bless And try to understand the `Point-with-ID` example. I don't get it. The docs state one needs the convoluted way of initializing `$.ID`. 08:45
It seems the only reason the example doesn't work with a simple `$!ID = "*..."` is because the type of `$.ID` is `Int` instead of `Str`, which the `$attr.set_value()` seems to be able to violate. 08:46
08:48 mid_home left
patrickb Can someone clarify? 08:49
rindolf just for the record - i submitted this pull req which appears to have fixed the install: github.com/CurtTilmes/raku-primesieve/pull/8 08:53
s/to have fix/to fix/
Xliff Are there build instructions for windows? 09:02
09:10 Black_Ribbon left
rindolf Xliff: for what? 09:16
Xliff: what do you wish to build? 09:17
09:29 BenGoldberg joined 09:47 Chi1thangoo joined 10:02 BenGoldberg left 10:24 ThaEwat left, AlexDaniel` left, matiaslina left, kiti_nomad[m] left, unclechu left, CIAvash left, JJAtria[m] left, MitarashiDango[m left 10:31 CIAvash joined 10:37 unclechu joined, kiti_nomad[m] joined, ThaEwat joined, AlexDaniel` joined, MitarashiDango[m joined, matiaslina joined, JJAtria[m] joined 10:39 Doc_Holliwood joined 11:06 abraxxa left 11:07 abraxxa joined 11:14 Doc_Holliwood left 11:20 andrzejku left
jmerelo After finding this in Twitter, I though it was going to be a breeze in Raku twitter.com/Jimena_y_yo/status/131...2232239104 Alas, it's not 11:28
tellable6 2020-10-22T19:57:52Z #raku <Xliff> jmerelo: Oh wow! Thank you!
jmerelo m: my %i = :2a,:3b; my @j = [ $(:2a,3b) ]; say %i โˆˆ @j 11:29
camelia 5===SORRY!5=== Error while compiling <tmp>
at <tmp>:1
------> 3my %i = :2a,:3b; my @j = [ $(:2a,37โ5b) ]; say %i โˆˆ @j
expecting any of:
jmerelo m: my %i = :2a,:3b; my @j = [ $(:2a,:3b) ]; say %i โˆˆ @j
camelia False
jmerelo m: my %i = :2a,:3b; my @j = [ %(:2a,:3b) ]; say %i โˆˆ @j
camelia False
jmerelo m: my %i = :2a,:3b; my @j = [ $(%(:2a,:3b)) ]; say %i โˆˆ @j
camelia False
jmerelo m: my %i = :2a; my @j = [ :2a ]; say %i โˆˆ @j
camelia False
jmerelo m: my %i = :2a; my @j = [ :2a ]; say :2a โˆˆ @j 11:30
camelia True
jmerelo m: my %i = :2a,:3b; my @j = [ $(%(:2a,:3b)) ]; say %(:2a,3b) โˆˆ @j
camelia 5===SORRY!5=== Error while compiling <tmp>
at <tmp>:1
------> 3; my @j = [ $(%(:2a,:3b)) ]; say %(:2a,37โ5b) โˆˆ @j
expecting any of:
jmerelo m: my %i = :2a,:3b; my @j = [ $(%(:2a,:3b)) ]; say %(:2a,:3b) โˆˆ @j
camelia False
jmerelo m: my %i = :2a,:3b; my @j = [ %(:2a,:3b) ]; say %(:2a,:3b) โˆˆ @j 11:31
camelia False
jmerelo m: my %i = :2a,:3b; my @j = [ %(:2a,:3b) ]; say :2a,:3b โˆˆ @j
camelia Unexpected named argument 'a' passed
in block <unit> at <tmp> line 1
jmerelo m: my %i = :2a,:3b; my @j = [ %(:2a,:3b) ]; say %(:2a,:3b) โˆˆ @j
camelia False
jmerelo m: say %(:2a,:3b) โˆˆ [ %(:2a,:3b) ]
camelia False
jmerelo m: say %(:2a,:3b) === %(:2a,:3b) 11:32
camelia False
lizmat m: dd [ %(:2a,:3b) ] 11:34
camelia Array element = [:a(2), :b(3)]
lizmat that evaluates to a list of Pairs...
and a hash is not an element of that
m: say %(:2a,:3b) โˆˆ [ (%(:2a,:3b)) ]
camelia False
lizmat m: dd [ (%(:2a,:3b)) ]
camelia Array element = [:a(2), :b(3)]
lizmat hmmm...
m: dd [ (%(:2a,:3b),) ]
camelia Array element = [{:a(2), :b(3)},]
lizmat m: dd [ (%(:2a,:3b),) ] 11:35
camelia Array element = [{:a(2), :b(3)},]
lizmat m: say %(:2a,:3b) โˆˆ [ (%(:2a,:3b),) ]
camelia False
jmerelo lizmat: the problem is that WHICH is not going to return the same anyway
m: my \i = <a b c>,:3b; my \j = [ <a b c> ]; say i โˆˆ j 11:36
camelia False
jmerelo m: my \i = <a b c>,:3b; my \j = [ <a b c>, ]; say i โˆˆ j
camelia False
jmerelo m: say <a b c> === <a b c>
camelia False
jmerelo m: say <a b c>.WHICH
camelia List|84393712
jmerelo m: say <a b c>.WHICH
camelia List|60960576
jmerelo m: say <a b c><> === <a b c><> 11:37
camelia False
lizmat jmerelo: good point, yeah, %() is not a value type
jmerelo m: my \i = <a b c>,:3b; my \j = [ <a b c>, ]; say i.gist โˆˆ j.map: .gist
camelia Cannot map a Array using '"(Any)"'
Did a * (Whatever) get absorbed by a list?
in block <unit> at <tmp> line 1
jmerelo m: my \i = <a b c>,:3b; my \j = [ <a b c>, ]; say i.gist โˆˆ j.map: {.gist}
camelia False
jmerelo m: my \i = <a b c>,:3b; my \j = [ <a b c>, ]; say i.gist; say j.map: *.gist 11:38
camelia ((a b c) b => 3)
((a b c))
jmerelo m: my \i = <a b c>; my \j = [ <a b c>, ]; say i.gist; say j.map: *.gist
camelia (a b c)
((a b c))
jmerelo m: my \i = <a b c>; my \j = [ <a b c>, ]; say i.gist โˆˆ j.map: *.gist
camelia True
jmerelo m: my \i = %(:2a,:3b); my \j = [ %(:2a,:3b), ]; say i.gist โˆˆ j.map: *.gist 11:39
camelia True
jmerelo m: my \i = %(:2a,:3b); my \j = [ %(:2a,:3b), ]; say i.gist โˆˆ j.map: *.gist
camelia True
jmerelo m: my \i = %(:2a,:3b); my \j = [ %(:2a,:3b), ]; say i.gist โˆˆ j.map: *.gist
camelia True
jmerelo I thought that was going to fail, at least part of the time... But apparently keys are sorted when gisted
11:39 andrzejku joined
timotimo yes gist will sort keys 12:06
12:09 Chi1thangoo left 12:38 andrzejku left 12:54 BenGoldberg joined 12:55 abraxxa left, abraxxa joined 13:00 m6locks left 13:13 jmerelo left 13:20 jmerelo joined 13:21 jmerelo left 13:27 Merfont joined 13:28 BenGoldberg left, pnu___ joined, vike left, Kaeipi left, pnu__ left 13:29 pnu___ is now known as pnu__, dustinm` left, patrickb left, xi left, dustinm` joined 13:30 patrickb joined, frost-lab left, xi joined
Altreus Does the raku module system define a strategy for what P5 calls sharefiles? 13:31
13:32 Doc_Holliwood joined
lizmat what are sharefiles ? 13:36
Altreus e.g. templates in a web app 13:39
CSS, JS, such things
13:39 bootleg-ghost joined
lizmat maybe this is what you're looking for? docs.raku.org/syntax/$PERCENT_SIGN%3FRESOURCES 13:41
13:54 xinming_ left 13:55 xinming_ joined
tyil brass: . 14:01
14:07 abraxxa left 14:08 abraxxa joined 14:14 Sgeo joined 14:28 _jrjsmrtn joined 14:31 __jrjsmrtn__ left 14:33 patrickb left
Altreus Yes! Thanks :D 14:39
14:39 aluaces left
Altreus I'm pleased that raku has formalised this because I've got blog posts waiting to be written about this in P5 14:39
14:40 sena_kun left, Chi1thangoo joined 14:42 [Sno] left 14:50 Doc_Holliwood left
lizmat Altreus: it's still a little rough around the edges, but yes, I think it's a step in the right direction :-) 14:52
daxim tadzik: the evil spiteful reddit downvoter strikes again, he got you too this time 14:54
tadzik daxim: oh no /o\
lizmat wonders what this is about
tadzik www.reddit.com/r/perl/comments/jgg...to_python/ 14:55
daxim nuance is not allowed
tadzik it's a weird thread. Someone comes in with their hardcore opinion and mostly expects yes-me-too responses apparently
daxim the groupthink pressure is strong in this subreddit. I've often experienced it, I know about the anonymous coward who follows me around and downvotes the critical posts I make 14:57
Altreus how come the URL contains $PERCENT_SIGN instead of %25 14:59
lizmat Altreus: no idea, jmerelo might know 15:00
moritz might be because it's a file name 15:04
and then apache doesn't like it, or something
15:04 parabolize joined
Altreus I cringe whenever some software's crappy handling of standards leaks out into the public view 15:07
not saying that's what it is but
well, I'm prepared to believe it :P
kawaii lizmat: I'm getting `Type check failed in binding to parameter '$location'; expected IO::Path but got Slip (Empty)` when trying to use that like `template-location %?RESOURCES<templates>;`, not sure if the problem lies in the cro routine there or not. 15:09
lizmat then %?RESOURCES<templates> returns Empty ? 15:11
perhaps a condition is missing somewhere in the template handler logic?
kawaii but I know it's not empty :( www.irccloud.com/pastebin/klwpgKRy/
15:13 skids joined 15:14 Doc_Holliwood joined 15:20 Merfont is now known as Kaiepi 15:28 orinthe left, orinthe joined 15:29 sno joined 15:31 MilkmanDan left 15:32 MilkmanDan joined 15:34 sno left
Altreus perhaps a directory is not considered a resource? 15:36
15:36 sno joined
El_Che releasable6: status 15:43
releasable6 El_Che, Next release in โ‰ˆ1 day and โ‰ˆ3 hours. 1 blocker. 17 out of 85 commits logged
El_Che, Details: gist.github.com/b59244e626368d95ff...51905e2b1b
15:47 ThaEwat left, Doc_Holliwood left 15:48 matiaslina left 15:49 ThaEwat joined 15:50 matiaslina joined
El_Che I am releaseing packages today, mainly because of ububtu 20.10 release, but this allows me to bump the zef release for all distros 15:54
15:57 MilkmanDan left 15:58 MilkmanDan joined
Xliff Can someone tell me why raku supports POD annotations for classes and not roles? 15:59
See: repl.it/@Xliff/NormalAwesomeOpenlook#main.raku 16:00
16:02 jmerelo joined 16:19 BenGoldberg joined 16:35 Doc_Holliwood joined 16:50 zostay_ joined, rjeli_ joined, PotatoGim_ joined 16:51 timeless_ joined 16:52 jcallen_ joined 16:53 BenGoldberg left 16:55 Xliff left, ssm__ joined 16:57 timeless left, PotatoGim left, rjeli left, zostay left, ssm_ left, jcallen left, moon-child left, tejr left, xelxebar left, zostay_ is now known as zostay, timeless_ is now known as timeless, rjeli_ is now known as rjeli, PotatoGim_ is now known as PotatoGim 17:02 approaching236 joined 17:14 mid_home joined
El_Che travis is slow with starting jobs today 17:17
17:17 abraxxa left 17:18 patrickb joined 17:20 abraxxa joined 17:24 moon-child joined 17:29 xelxebar joined 17:30 domidumont joined 17:33 tejr joined 17:47 jmerelo left 18:08 ufobat left 18:09 abraxxa left, abraxxa joined 18:24 abraxxa left, abraxxa joined, bocaneri left 18:25 simcop2387 joined 18:27 Maylay left, wamba left 18:28 aluaces joined 18:29 perlbot joined 18:32 abraxxa left
Geth doc: patrickbkr++ created pull request #3671:
Rework object construction documentation
18:34 Maylay joined 18:35 abraxxa joined 18:36 perlbot left, simcop2387 left 18:37 abraxxa left 18:38 abraxxa joined 18:40 jmerelo joined 18:43 perlbot joined 18:44 simcop2387 joined
El_Che Running for 1 hr 56 min 42 sec and run omly a tird of the jobs so far 18:53
18:53 abraxxa left 18:54 abraxxa joined 18:55 sjm_uk left 19:03 Xliff joined 19:04 mowcat joined 19:09 jmerelo left 19:10 abraxxa left 19:16 perlbot left, simcop2387 left, abraxxa joined 19:18 simcop2387 joined 19:19 mojca_ left 19:21 perlbot joined, abraxxa left 19:23 abraxxa joined 19:32 abraxxa left 19:33 abraxxa joined 19:38 wamba joined 19:39 aborazmeh joined, aborazmeh left, aborazmeh joined 19:44 BenGoldberg joined 19:47 samcv joined 19:48 abraxxa left 19:52 abraxxa joined 19:54 abraxxa left 19:55 abraxxa joined 19:59 finsternis left, Black_Ribbon joined 20:01 abraxxa left 20:02 abraxxa joined 20:10 finsternis joined 20:12 rindolf left 20:13 abraxxa left 20:14 abraxxa joined 20:15 abraxxa left 20:16 abraxxa joined 20:17 abraxxa left 20:18 abraxxa joined 20:19 BenGoldberg left 20:23 approaching236 left 20:26 abraxxa left 20:27 abraxxa joined 20:29 abraxxa left 20:30 Doc_Holliwood left 20:31 abraxxa joined 20:34 perlbot left 20:35 andinus` joined, Geth left 20:36 astronav- joined, Geth joined, astronavt___ left 20:37 [ptc] left, [ptc] joined, andinus left, perlbot joined, dogbert17 left, approaching236 joined, dogbert17 joined 20:38 raku-bridge left 20:39 Sgeo left, Sgeo joined 20:41 andinus`` joined 20:42 vgrato_ joined 20:45 approaching236 left 20:50 andinus` left, Chi1thangoo left, sftp left, nicholatian left, a3r0 left, nekomune left, oodani left, rir left, telex left, BuildTheRobots left, freezing_ left, mniip left, Chi1thangoo joined, a3r0 joined, oodani joined, rir joined, telex joined, BuildTheRobots joined, freezing_ joined, mniip joined 20:51 nekomune joined, sftp joined 20:55 nicholatian joined 21:01 aborazmeh left
JJAtria[m] As far as I understand, in Go sending messages to a Channel and never reading them is a source of memory leaks. Is it the same in Raku? 21:04
El_Che JJAtria[m]: Not really in go 21:07
a normal channel will block until read 21:08
and you can create a channel with a buffer, e.g 10, but once it's full it will block
that's not what I would call a memory leak 21:09
or maybe a smallish-one-by-design :)
JJAtria[m] Hm, yeah, I remember reading this in the context of channels that get stuff sent to them in deferred functions, so it's possible that I didn't read it properly, or that I filed it in the wrong drawer :P 21:10
21:10 abraxxa left
El_Che the behaviour is pretty annoying in the beginning, but it made sense after a while for me 21:10
21:10 wamba left
El_Che "why is my stuff blocking???" 21:11
JJAtria[m]: I think you are maybe thing on goroutines?
off 21:12
damn :)
JJAtria[m] But how about in Raku? Since they are non-blocking, I can push as much garbage as I want and if the reader doesn't read it (or dies or whatever...) is it my responsibility to flush it?
Oh, yeah, I mean, I think this was being called from a defer in a goroutine, I think. It was pretty funky code
El_Che honestly, I don't know, I suspect it will die when you're OOM'ed 21:13
good question
21:13 abraxxa joined
El_Che JJAtria[m]: when starting writing go, everyone goes craxy with go routines 21:13
after a while, you use them a lot less :)
JJAtria[m] I enjoy realising that a lot of the core concepts are similar between Raku and Go 21:14
(until they're not, and then the fun starts)
El_Che well, Raku is so huge that it overlaps with pretty much everything
JJAtria[m] lol 21:15
El_Che many Raku there ways to in concurrency do are
JJAtria[m] As long as there's more than one, that's on brand 21:16
21:17 patrickb left
El_Che defer is actually a pretty nice feature 21:17
just a little more powerful than autoclosing, but a little more cumbersome
JJAtria[m] It's inspired some pretty magic uses of LEAVE in some recent code I've written 21:18
21:18 abraxxa left
JJAtria[m] No ragrets 21:18
El_Che If you say "inspired" it usually means you have a Perl background :) 21:19
21:19 abraxxa joined
JJAtria[m] Busted :) 21:20
21:26 patrickb joined 21:29 abraxxa left 21:37 simcop2387 left, perlbot left 21:38 perlbot joined 21:39 simcop2387 joined 22:35 mowcat left 22:58 __jrjsmrtn__ joined 23:00 _jrjsmrtn left 23:07 cpan-raku left 23:10 BenGoldberg joined 23:11 cpan-raku joined, cpan-raku left, cpan-raku joined
moon-child I think the docs for 'mkdir' (docs.raku.org/routine/mkdir) are wrong (or it has a bug; either way, there's an inconsistency). It says the default mode is 0o777, but when I ls -l a dir made by 'mkdir' the result is drwxr-xr-x, which should be 0o755 23:20
am I missing anything?
23:44 BenGoldberg left
vrurg moon-child: unless you're gone already, you miss `man umask`. 23:53