🦋 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.
sena_kun El_Che, there is a point release out. 00:02
00:02 Doc_Holliwood left 00:06 DetroitDan joined 00:07 DetroitDan left 00:19 brtastic left 00:21 Tirifto[m] left 00:22 Tirifto[m] joined 00:26 JRaspass left 00:41 xinming left 00:44 xinming joined 01:04 xinming left, pecastro left, xinming joined 01:25 squashable6 left 01:26 buffet3 joined, linkable6 left 01:27 linkable6 joined, buffet left, buffet3 is now known as buffet, evalable6 left 01:28 Altreus joined 01:32 perryprog joined 01:34 perryprog is now known as perry, mowcat left 01:42 guifa2 left 01:46 aindilis joined 01:53 guifa2 joined 01:56 kaiwulf joined 02:03 kerframil left 02:05 squashable6 joined 02:06 evalable6 joined 02:13 gnufr33dom joined 02:16 kerframil joined
xinming Is freenode being attacked? I got many PM from different people. 02:35
perry Gibberish orrrrr? 02:36
I just realized I had +R set when I didn't want it, whoops.
Well, if you do /mode <yournick> +R you won't get any PMs from unregistered people. 02:37
02:43 kvw_5 joined
leont Yeah 02:43
02:46 kvw_5_ left
tonyo rba: i did to find out why zef: was 404ing but the problem's since been corrected and the logs aren't needed (by me, anyway) 02:46
guifa2 codesections++ 02:54
codesections sorry it took so long :D 02:55
guifa2 Haha 'sok. I've been busy reformating CLDR again again (although this time more just tinier touchups) 02:57
haha
codesections ha. Somehow I feel like that's an all-purpose reply for you, no matter when :) 02:58
02:59 aindilis left, aindilis` joined, aindilis` left
guifa2 I mean … yes :-) 02:59
But no lie, a project of this scope has meant I've learned a *lot*
codesections I bet! 03:00
guifa2 that's where the idea of the FOSDEM presentation came out of — I'm writing a module that I have to use to write other moduels that I need to write the one that started this whole danged journey … so I'm constantly thinking how to improve the links between them 03:01
codesections also, part of the strength of Raku's concision is that it makes it a lot easier to rewrite code (in the spirit of programmingisterrible.com/post/139...ge-systems or similar) 03:02
guifa2 I've been really enjoying using traits lately. I was able to cut out about a hundred lines of code by rewriting them as traits on attributes 03:03
codesections O.O I need to do more with traits 03:04
guifa2 I had a lazy loader
has $!foo; method foo { .return with $!foo; …………………… $!foo = finish-loading-for(FOO_OFFSET) }  03:05
it's a pattern I've used before and it works nicely if you just have one or two methods like that, but by the time I got to the 12 attribute …
has $!foo is lazy; # done
codesections nice :) 03:06
leont The recent haskellish code question reminded me I had some almost finished code doing just that 03:17
So now it works, and all that's between me releasing an Erlang style actor model module is writing documentation…
guifa2 leont: did you see gfldex's blog post on it? 03:19
leont Yeah 03:20
xinming perry: Thanks 03:21
guifa2 when I saw it I was like "this is exactly what I was talking about at FOSDEM" haha
leont The whole «Hold (:$key) {}» trick was new to me.
As in, named destructuring like that was a bit surprising, but quite useful 03:22
03:59 evalable6 left, linkable6 left 04:01 evalable6 joined 04:02 linkable6 joined 04:33 kaiwulf left 04:36 leont left 04:39 kerframil left 04:59 xinming left, epony left 05:00 guifa2 left 05:01 xinming joined 05:02 epony joined 05:03 guifa2 joined 05:11 guifa2 left 05:34 rindolf joined 05:56 vike left 06:01 sortiz left 06:15 jmerelo joined 07:00 brtastic joined, brtastic left 07:01 brtastic joined 07:21 epony left 07:28 Doc_Holliwood joined 07:54 domidumont joined
codesections .ask guifa very cool. One thing I haven't gotten my head around, though, with traits is when to use a new variant of `is` vs a new trait altogether. E.g., could you have replaced `multi sub trait_mod:<is> (Attribute \attr, :$lazy)` with `multi sub trait_mod:<lazy> (Attribute \attr)`? Or would that not work? If it does work, is there a reason to prefer one to the other? (Other than choosing between calling it with `is lazy` vs 08:05
`lazy`, I mean)i
tellable6 codesections, I'll pass your message to guifa2
08:10 JRaspass joined 08:11 pecastro joined, epony joined 08:13 brtastic left 08:18 MasterDuke joined 08:20 Geth joined 08:25 squashable6 left 08:27 dakkar joined, squashable6 joined 08:30 Sgeo left 08:44 parabolize left 08:52 wamba joined
gfldex lolibloggedalittle: gfldex.wordpress.com/2021/02/25/custom-when/ 09:04
09:06 sena_kun left 09:07 sena_kun joined, sena_kun left 09:09 sena_kun joined 09:14 leont joined 09:28 ufobat joined 09:55 perryprog joined 09:57 Sir_Ragna_ joined 09:58 pel_ joined, cj_ joined, Ulti_ joined 09:59 webstran- joined, xinming_ joined 10:01 marcusr_ joined 10:03 JRaspass left, xinming left, perry left, buffet left, pel left, cj left, marcusr left, Sir_Ragna left, gordonfish left, mad_hatter left, Ulti left, El_Che left, webstrand left, webstran- is now known as webstrand, El_Che joined 10:04 buffet joined
codesections gfldex++ “Raku is a highly composable programming language, where things just fall into place” sounds a lot like the theme from guifa's Surprisingly Unsurprising talk at Fosdem: so many things fit perfectly together, not b/c anyone planed for that _in particular_ but because the underlying primitives are so carefully planed. It's great :D 10:08
10:08 mad_hatter joined
gfldex codesections: planned as in "iterated for 10 years until all the edge-cases have worn off"? 10:09
codesections haha, yeah, that :) 10:10
I guess it's easy for me to show up post the "Raku" rename, and view the language as a magnificent jewel of design... skipping over the 10+ years of hard work iterating on that design! 10:12
(On the other hand, a _lot_ of Raku's great ideas were already present in the Synopses, so :shrug: ) 10:14
10:21 ensamvarg left
codesections I'm clearly forgetting something basic. How do I dwim here: 10:32
m: my &f = &g // { 'default' }
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
g used at line 1
10:36 vike joined
gfldex m: my &f = MY::<&g> // { default }; f; 10:37
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3my &f = MY::<&g> // { default 7⏏5}; f;
expecting any of:
scoped block
gfldex m: my &f = MY::<&g> // { 'default' }; f;
camelia ( no output )
gfldex m: my &f = MY::<&g> // { say 'default' }; f;
camelia default
gfldex m: sub g { say 'oi‽' }; my &f = MY::<&g> // { say 'default' }; f;
camelia oi‽
gfldex codesections: ^^^ 10:38
codesections oh, thanks. That was... not as basic as I was thinking I was missing!
ty
I guess &MY::g also works, and helps the line-noise factor a bit :) 10:39
gfldex it wasn't basic because a bare `g` is a compile time thing and calling `//` happens at runtime. I believe Rakus partly runtime partly compiletime nature makes it hard on beginners.
codesections yeah. I've *mostly* crossed that hurdle, though I clearly still get tripped up a bit 10:40
it's when we start nesting compiletimes and runtimes, that I'm in serious danger! 10:41
sxmx m: for 1..10 { put $_ ** 3 } 10:43
camelia 1
8
27
64
125
216
343
512
729
1000
10:45 JRaspass joined 10:46 JRaspass left, JRaspass joined 11:08 Black_Ribbon left 11:20 DiffieHellman left 11:47 Doc_Holliwood left
codesections here's a question that has me stumped, even though it seems like it should have an easy answer: 12:25
the docs provide this example for an async socket: whenever $conn.Supply.lines -> $line { #`(block) } 12:26
how do I do the same thing, but for $n bytes at a time (instead of one line at a time)
with a regular socket, I'd use .read 12:27
but that isn't available here. My first thought was to use .head($n), but that seems to give the first $n packets (or Blobs?), not the first $n bytes 12:28
12:47 evalable6 left, linkable6 left 12:48 evalable6 joined 12:50 linkable6 joined 12:58 JRaspass left 13:03 perryprog is now known as perry 13:09 JRaspass joined 13:18 gnufr33dom left 13:19 JRaspass left, JRaspass joined 13:22 JRaspass left 13:29 rir joined 13:39 xinming_ left 13:40 xinming_ joined, ensamvarg joined 13:53 JRaspass joined 13:55 JRaspass left 14:10 jmerelo left, Sgeo joined 14:20 epony left 14:21 guifa2 joined 14:23 guifa2 left
Altreus do you have to create $conn in a special way so it knows to deliver bytes? 14:27
codesections yeah, I've actually done that -- you do $conn.Supply(:bin) 14:29
(I went a different direction, so I'm not actually going to use bytes in that way -- I haven't been stuck on it for 2+ hours :D But I'm still curious to know what I was missing for future reference) 14:30
14:36 gnufr33dom joined 14:37 epony joined
Altreus It's a supply bin 14:42
it contains 1 wool tuque and 1 mouldy chocolate bar
14:47 MasterDuke left 14:48 MasterDuke joined 14:50 guifa2 joined 15:04 MasterDuke left 15:05 MasterDuke joined 15:17 JRaspass joined 15:21 gordonfish joined
rir This is my friendly interface for wrapping utimensat: 15:22
touch( Str:D $fn, Instant :access($a), Instant :modify($m), Boolean :NOFOLLOW($b) )
Where the default for absent Instants is now and Instant:U args mean no change.
Good? Bad?
guifa2 hmm, I agree that no instant should be now, that seems like the most common use case anyways 15:31
tellable6 hey guifa2, you have a message: gist.github.com/70cd76fbc93ac94b40...f059abebcc
guifa2 codesections: right now I don't think there's a way to do a trait other than with "is" 15:36
Although clearly the groundwork is layed for me to be able to do trait_mod:<contains> (Mu \positional, :$type-name), it's just not there yet 15:38
codesections guifa2: interesting! I guess the docs are wrong (or just set in the future…) 15:40
guifa2 at least, I've not been able to create a trait using anything other than trait_mod:<is> 15:41
codesections «[A trait] is declared with the trait_mod declarator followed by a colon and a string literal containing the name of the trait»
guifa2 oof, yeah that seems off. 15:42
lizmat: thoughts? You write more traits than anyone else :-)
codesections m: multi sub trait_mod:<bar>(Sub $s) { note }; sub qux() bar { say 42 }
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3it_mod:<bar>(Sub $s) { note }; sub qux()7⏏5 bar { say 42 }
expecting any of:
new name to be defined
15:45 JRaspass left 15:46 parabolize joined 15:49 Discipulus joined 15:52 JRaspass joined 15:53 JRaspass left 15:57 gnufr33dom left 16:23 BBBB joined
BBBB Is there an updated repo for github.com/stmuk/pl6anet.org/ ? Raku.org homepage lists recent posts from that site and I want to remove a site from it but trying to submit a PR on that repo says I can't because it's archived. 16:24
I wanted to remove perl6.party from the list. It no longer posts new Raku articles and might very soon contain non-Raku, non-programming articles, which will be weird for them to show up in the pl6anet.org feed and raku.org home page that pulls from that feed. (ping moritz if you know maybe where to remove it) 16:31
16:31 BBBB left, vrurg left
MasterDuke github.com/Raku/planet.raku.org i believe 16:36
16:37 vrurg joined 16:39 mowcat joined 16:41 jmerelo joined 17:21 brtastic joined 17:34 xinming_ left, dakkar left, xinming_ joined 17:49 xinming_ left, xinming_ joined 17:53 wamba left 18:04 JRaspass joined 18:08 mad_hatter left 18:15 PimDaniel joined
PimDaniel Is there a math symbol in raku for relative complement: A \ B means : all elements of A that are not into B. Thank's. 18:17
jmerelo PimDaniel: that one precisely. Try it out. You need to use an unicode slash, though 18:22
PimDaniel ho ho . 18:24
18:26 wamba joined, guifa2 left, guifa2_ joined
PimDaniel jemerelo. Sure? i cannot see it into the reference. 18:27
But the problem is i may be i can't write unicode. 18:28
guifa2_ docs.raku.org/language/setbagmix#i..._%E2%88%96
you can use (-) or ∖
PimDaniel Okay!!! Thank's !
18:32 wamba left 18:34 domidumont left 18:43 Geth left
PimDaniel thank's jmerelo, maths work! 18:49
I translated from python HopcroftKarp algorithm class to raku class. 18:50
18:51 jmerelo left
PimDaniel Then i'm calculating the Maximum Independant Set for bipartit graph in order to make retilinear polygons coverage. 18:52
*rectilinear
Is there somebody here good at maths because i doubt for just a thin part. 18:54
????
even for tomorrow. :))) 18:55
18:55 kaiwulf joined
PimDaniel The problem does not concern Hopcroft and Karp algorithm : class est prepared to be published, but on the calculation of what thez call alternated paths. 18:57
19:00 PimDaniel left
SmokeMachine I think this is what we need to do to remove the WiP from Red's description (github.com/FCO/Red/issues/470#issu...86132637). What do you guys think? Is someone wanting to help? 19:08
19:09 wamba joined 19:11 berber44 joined 19:23 Doc_Holliwood joined 19:30 xinming_ left 19:33 xinming_ joined 19:37 abraxxa left 19:39 xinming_ left, xinming_ joined 19:49 rindolf left 19:56 ufobat_ joined 20:00 ufobat left 20:24 xinming_ left, xinming_ joined 20:38 rir_ joined, Doc_Holliwould joined, Kaeipi joined, Toilie joined, pierrot_ joined, benaiah` joined, bonz060 joined, wmoxam left, simcop2387 left, sftp left 20:39 dustinm` left, orinthe left, riatre joined, rba left, mowcat left, kvw_5 left, samcv left, mojca_ joined, codesections left, kini left, stux|RC left, cetjs2 left, benaiah` is now known as benaiah, bartolin joined, sftp joined, eseyman left, xelxebar left, asymptotically left, tejr left, sergot_ joined, codesections joined, samcv joined, earenndil joined, timlegge_ joined, dustinm`_ joined, nine_ joined, Woodi_ joined, sjn__ joined, eseyman_ joined, ________1 joined, roguelazer joined, timeless_ joined, mst_ joined, simcop2387_ joined, MilkmanD1n joined, mst_ left, mst_ joined, mowcat joined, asymptotically joined, xelxebar joined, tejr joined, jcallen joined, Some-body_ joined, moony joined, lucs left, lucs_ joined, kini joined, simcop2387_ is now known as simcop2387, summerisle joined, simcop2387 left, simcop2387 joined, buffet left 20:40 wamba left, freezing left, MilkmanDan left, mst left, rir left, imcsk8 left, uzl[m] left, krako[m] left, BarrOff[m] left, rba joined, ecocode_ joined, MitarashiDango[m left, tusooa left, AlexDaniel` left, cetjs2 joined, freezing_ joined, l-as left, a3f_ joined, CIAvash left, patrickbkr[m] left, sergot left, [ptc] left, cxreg left, sjn left, telex left, kaiwulf left, cgfbee left, jmcgnh left, unclechu left, sena_kun left, bingos joined, kiti_nomad[m] left, Doc_Holliwood left, Tirifto[m] left, polettix left, _________ left, Kaiepi left, masak left 20:41 JJAtria[m] left, kaiwulf joined, stux|RC joined, kvw_5 joined, cxreg joined, masak joined, grumble left, [ptc] joined, cgfbee joined 20:42 afresh1_ joined, masak is now known as Guest48804, robins joined, grumble joined, codesections left, mark[m] left, a3f left, esh left, robinsmidsrod left 20:43 camelia left, DarthGandalf left, ecocode left, Some-body_ is now known as DarthGandalf, afresh1 left, mst_ is now known as mst, pwr22 left, ThaEwat left, wmoxam joined, [ptc] left, robins is now known as robinsmidsrod, camelia joined, mendel joined 20:44 imcsk8 joined, [ptc] joined, esh joined, polettix joined, jmcgnh joined, telex joined, [ptc] left 20:45 codesections joined, [ptc] joined 20:49 ________1 left, _________ joined 20:52 _________ left 20:53 aukkras joined 20:56 uzl[m] joined, aukkras is now known as _________ 20:57 AlexDaniel` joined, MitarashiDango[m joined, tusooa joined 20:58 krako[m] joined 21:00 BarrOff[m] joined, ufobat_ left 21:05 rob_ joined 21:07 lucs_ is now known as lucs 21:14 JJAtria[m] joined, l-as joined 21:16 Tirifto[m] joined, CIAvash joined, patrickbkr[m] joined 21:18 pwr22 joined 21:19 ThaEwat joined 21:21 pel_ is now known as pel 21:25 mark[m] joined 21:29 unclechu joined, kiti_nomad[m] joined 21:41 pecastro left 21:45 pecastro joined 21:49 rob_ left 21:51 orinthe joined, Black_Ribbon joined 22:04 dataangel left 22:06 earenndil is now known as moon-child, cgfbee left 22:13 cgfbee joined 22:23 buffet joined 22:24 brtastic left 22:29 Discipulus left 22:36 xelxebar_ joined 22:37 xelxebar left 22:44 guifa2_ left 22:52 guifa2 joined 23:05 finsternis left 23:12 Doc_Holliwould left 23:18 guifa2 left 23:50 Doc_Holliwould joined 23:58 Manifest0 left 23:59 Manifest0 joined