🦋 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:03 RaycatWhoDat left 00:06 lichtkind left, uzl[m] left 00:10 uzl[m] joined, Altreus left, Altreus joined 00:11 Nasrudin left, BlackChaosNL[m] left 00:14 BlackChaosNL[m] joined 00:17 Nasrudin joined 00:28 mowcat left 00:33 leont left 00:48 OpenZen left 00:49 OpenZen joined 00:50 BlackChaosNL[m] left 00:51 Nasrudin left, BlackChaosNL[m] joined 00:52 Nasrudin joined 00:59 soar joined 01:03 limarfrek joined 01:05 kerframil left 01:18 konvertex left 01:29 devmikey left 01:37 molaf left 01:49 molaf joined 02:02 soar left 02:16 OpenZen left 02:31 OpenZen joined 02:37 limarfrek is now known as kerframil 02:42 Cabanossi left, Cabanossi joined 02:57 soar joined 03:02 andrzejku joined 03:13 ziping joined 03:30 flyingtiger joined 03:39 andrzejku left 04:21 ziping left, skids left 04:22 OpenZen left, flyingtiger left, leont joined 04:31 aborazmeh joined, aborazmeh left, aborazmeh joined 04:32 OpenZen joined 04:39 OpenZen left 04:40 zacts joined, andrzejku joined, marcusr left, OpenZen joined 04:41 marcusr joined 04:54 kerframil left 05:10 andrzejku left 05:14 andrzejku joined 05:18 zacts left 05:23 brtastic joined 05:32 OpenZen left 05:37 molaf left 05:39 andrzejku left 05:46 rbt left, rbt joined 05:56 rindolf joined 05:59 Guest4273 is now known as aluaces 06:01 andrzejku joined 06:03 leont left 06:06 rindolf left 06:14 brtastic left 06:33 wamba joined 06:35 xinming_ left, xinming_ joined 06:58 abraxxa1 left 06:59 abraxxa joined 07:10 JJMerelo joined 07:11 brtastic joined 07:30 veesh left 07:33 Manifest0 left 07:34 Manifest0 joined, Cabanossi left 07:37 harrison joined 07:42 Cabanossi joined 07:43 rindolf joined 07:46 harrison left, JJMerelo left 07:48 veesh joined 07:49 soursBot joined 07:56 wamba left 07:57 patrickb joined
Geth_ ecosystem/JJ-patch-10: 0d0f8b0c5c | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
RE-adds Lingua::En::Stem::Porter
08:11
ecosystem: JJ++ created pull request #501:
RE-adds Lingua::En::Stem::Porter
08:16 andrzejku left 08:17 stoned75 left 08:18 stoned75 joined 08:19 andrzejku joined 08:32 pecastro joined
Geth_ ecosystem: 0d0f8b0c5c | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
RE-adds Lingua::En::Stem::Porter
08:34
ecosystem: 941ea46dc0 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Merge pull request #501 from Raku/JJ-patch-10

RE-adds Lingua::En::Stem::Porter
08:39 sarna joined
sarna hello! how do I check if a thing is present in a Seq? `contains`? 08:39
oh, contains is a trap probably :) 08:40
∈ is what I wanted 08:42
08:47 andrzejku left 08:50 soar left 08:56 sena_kun joined
sarna m: my @foo = [[1,2,3],[4,5,6]]; my @bar = @foo.shift; say @bar 09:06
camelia [[1 2 3]]
sarna how to get `[1,2,3]`? 09:07
m: my @foo = [[1,2,3],[4,5,6]]; my @bar := @foo.shift; say @bar
camelia [1 2 3]
sarna this works, but is it The Way?
09:10 luk_v joined
luk_v m: my @foo = [[1,2,3],[4,5,6]]; my @bar = |@foo.shift; say @bar 09:11
camelia [1 2 3]
09:12 luk_v left, lumin left 09:13 Sgeo left
sarna thanks :) 09:13
MasterDuke m: my @foo = [[1,2,3],[4,5,6]]; my @bar = @foo.shift.list; say @bar # also works with `.[]` and `.<>` 09:19
camelia [1 2 3]
sarna neat! that's more readable, imo 09:31
MasterDuke or `.self` 09:32
sarna weird, why would .self help here? 09:33
m: say [[[1]]].self 09:34
camelia [1]
sarna whew
09:38 sjm_uk joined 09:41 leont joined 09:53 soursBot left
sarna m: my @foo = [1,2,3]; my @bar = [4,5,6]; say @foo.grep: * > 1; say @foo.grep: * > 1 && * ∉ @bar; # what the hell? 09:57
camelia (2 3)
(1 2 3)
MasterDuke can't use * twice in an expression to refer to the same thing 09:59
sarna oh.. welp
I wrapped it in a block - is that the preferred solution?
MasterDuke and then changed to $_? yep 10:00
sarna yeah
thanks, it was so hard to debug :(
can I name the thing instead of referring to `$_`? 10:01
like, `@bar.grep -> $foo { $foo > 1 }`
10:02 konvertex joined
sarna m: my @foo = [1,2,3]; my @bar = [4,5,6]; say @foo.grep: -> $baz {$baz > 1 && $baz ∉ @bar}; 10:03
camelia (2 3)
sarna woohoo!
10:04 aborazmeh left 10:08 Black_Ribbon left 10:10 Altai-man_ joined, soursBot joined 10:12 sena_kun left
tbrowder hip 10:18
hooray
i need some regex help, please 10:19
lizmat hopes moritz will be triggered by this :-) 10:20
tbrowder hi, lizmat
lizmat tbrowder o/
tbrowder i need a token that considers this false: '#=x' but either of these true: 10:23
'#=' or '#= '
10:24 JJMerelo joined
jnthn tbrowder: Something like: '#=' <![x]> ' ' (well, or whatever appropriate kind of whitespace you want) 10:25
Uh, ' '? on the end there
But you probably don't want a literal space
tbrowder yes, a trailing decl line. the bare '#=' on a line is the problem.
the 10:26
i should have shown the second true token as '#=\h \N*' 10:28
jnthn, i hadn't thought of that, thnx, food to chew on! 10:30
bye 10:34
10:38 xinming_ left, xinming_ joined 10:43 wamba joined
tbrowder hm, the problem is the token has to be considered as anchored before a \n 10:44
10:50 kensanata joined
tbrowder i think i 10:58
mumble... 11:00
11:18 soursBot left
tbrowder i wonder if i need a back look somehow. 11:20
either "#= \h \N*" or "#=" 11:22
include the "#=" in the alternation...that hasn't been tried yet 11:23
moritz look-aheads are OK, but if I were you, I'd try *really* hard to avoid look-behinds 11:31
11:54 soar joined
tbrowder roger! 11:54
i'm not doing that...yet...still some new thoughts triggered by jnthn 11:55
11:56 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 12:01 libertas joined 12:07 soar left
tbrowder |o| yea! 3 pts, not enough square brackets was apparent problem!! 12:07
later, thnx all 12:08
12:10 sena_kun joined 12:12 Altai-man_ left 12:16 soursBot joined 12:18 ThomBoyer joined 12:23 ThomBoyer left 12:24 ThomBoyer joined 12:25 AlexDaniel left, kensanata left
ThomBoyer docs.raku.org frequently mentions `truthy` and `falsy`, and sometimes `truish`. They're not in the glossary, and I can't find proper definitions anywhere on the site. Is there one somewhere? 12:26
moritz ThomBoyer: it means "true when evaluated in a boolean context" 12:29
like 0 is falsy and 1, 2, 3 are truthy
ThomBoyer Right. But even class Bool doesn't define what's true in a boolean context.
moritz ThomBoyer: it would be great if you could add it to the docs
right, that's under the sovereignty of the objects in question 12:31
Int defines it for Int, Str for Str and so on
12:32 Kaeipi left
ThomBoyer I'd summarize as: A value is falsy if it's Bool::True, a Numeric equal to zero, or an empty container of a built-in type (Str, Hash, etc). For non-builtin classes, it's whatever its `.Bool` method says 12:34
Is that accurate?
12:34 Kaiepi joined
ThomBoyer That's pretty close to Perl5's definition, except that "0" seems to be different from Perl 5. Which led me to search out a more precise definition. 12:36
moritz it's Bool::False 12:39
otherwise pretty good
also, type objects are falsy as well
ThomBoyer Heh. Yeah. I sure _hope_ True isn't falsy. :-)
And I'd forgotten the type-object thing. Ok. Thanks, moritz. 12:40
moritz well, those Raku people... :D 12:42
sarna rakudoers? rakuists? 12:45
sarna opens an issue in the problem-solving repo
moritz rakutos :D 12:47
12:51 soursBot left
lizmat www.reddit.com/r/rakulang/ uses "Rakoons" 12:51
which we now have 500+ of :-)
afk for a few hours&
sarna "rakoons" is awesome! 12:52
12:56 soursBot joined 12:59 JJMerelo left
tbrowder "rakutos like fritos" we should get with frito-lay marketing 13:02
13:04 AlexDaniel joined, AlexDaniel left, AlexDaniel joined
sarna the only programming language with their own chips! 13:06
except forth and lisp
by the way, I've been thinking about this `self` stuff.. why does it "unpack" the nested thing? I mean it's cool, but how does that work? 13:07
m: say [[[[[[1]]]]]] # I mean this
camelia [1]
jnthn That's nothing to do with `self`, but rather the single argument rule
sarna okay what, I forgot .self and it did the same thing 13:08
jnthn: where can I read about it? I saw a comment on reddit but I didn't fully grasp it yet :(
jnthn docs.raku.org/language/list#index-...ument_Rule
sarna I read this one already, but this time I'll follow up with the p6advent article. maybe it will click now :) thanks 13:12
oh darn, so everything unpacks stuff like [[[1]]] automatically.. so I don't need the `self`! nice 13:27
13:28 soursBot left, soursBot joined 13:52 rbt left 13:53 rbt joined 14:10 Altai-man_ joined 14:12 leont left, sena_kun left 14:17 leont joined 14:26 OpenZen joined 14:35 skids joined 14:38 wamba left 14:43 brtastic left 14:45 sarna left 14:51 andrzejku joined 14:54 wamba joined 14:58 wamba left 14:59 flyingtiger joined 15:07 JJMerelo joined 15:10 OpenZen left 15:13 brtastic joined 15:14 OpenZen joined 15:35 Altai-man_ left 15:36 sena_kun joined, ThomBoyer left 15:37 andrzejku left 15:46 melezhik joined 15:50 zacts joined 15:54 konvertex left 15:59 orinthe left, orinthe joined, konvertex joined 16:00 JJMerelo left 16:04 soursBot left, soursBot joined
melezhik I am thinking about usability of repo.westus.cloudapp.azure.com/hub/ for Raku community. Do people any command tools on daily basis? I am thinking about Raku related utils or whatever ... 16:08
16:10 Altai-man_ joined
melezhik usability -> usefullness 16:10
16:12 sena_kun left
[Coke] is there any discussion before adding things to the community modules group? 16:24
16:37 OpenZen left 16:38 flyingtiger left 16:47 chloekek joined 16:48 OpenZen joined 16:50 Sgeo joined 17:12 KindTwo joined 17:13 KindOne left 17:17 KindTwo is now known as KindOne 17:24 OpenZen left 17:33 soursBot left 17:37 soursBot joined 17:42 OpenZen joined 17:46 zacts left 18:07 lichtkind joined 18:09 Black_Ribbon joined 18:11 sena_kun joined 18:12 NODE left 18:13 Altai-man_ left, NODE joined 18:17 NODE left 18:19 NODE joined, NODE left 18:20 NODE joined 18:22 NODE left 18:24 NODE joined 18:26 NODE left 18:28 sauvin left
konvertex Damn, transforming cross products and a shaped array into nested loops and an regular old array brought my 20s runtime down to 4.5s. 18:42
Has anyone compiled a list that compares/benchmarks similar lang constructs yet?
The crystal peeps have a lot of these, for example: 18:43
String.build 597.57k ( 1.67µs) (± 5.52%) fastest
IO::Memory 423.82k ( 2.36µs) (± 3.76%) 1.41× slower
tbrowder raku taco
with grammar sauce 18:44
18:47 epony left
tbrowder being of advanced age i would like to see a way for my modules to be in a group repo some place i could still mantain while able, but easily able to quietly go away and leave it to others if they are interested 18:48
18:51 OpenZen left, OpenZen joined
guifa tbrowder: I think that’s the idea of the community modules 18:58
18:58 skids left 18:59 brtastic left
SmokeMachine is there a easy way of running only 1 test on comma? 19:00
tbrowder so should i start moving them over or what? i haven’t looked closely but do they designate a primary maintainer? etc.
19:01 soursBot left
guifa tbrowder: I’m not actually entirely sure. I know there has been some talk about how to handle things following DrForr’s passing. I admit I’ve been a bit out of the loop 19:02
19:08 soursBot joined 19:13 OpenZen left 19:14 epony joined 19:16 wamba joined
cpan-raku New module released to CPAN! Tomtit (0.1.7) by 03MELEZHIK 19:17
19:24 MasterDuke left 19:25 OpenZen joined 19:31 kensanata joined 19:32 sjm_uk left 19:35 melezhik left
SmokeMachine how can I set the test root? 19:35
on comma
tbrowder melezhik: i would like to be able to run a cron job to use it every so often for selected modules if that can be done easily. or even my rakudo branches 19:41
tellable6 tbrowder, I'll pass your message to melezhik
19:42 aborazmeh joined, aborazmeh left, aborazmeh joined 19:45 soursBot left 19:47 soursBot joined 19:57 soursBot left 20:04 soursBot joined 20:10 Altai-man_ joined 20:12 sena_kun left 20:25 mowcat joined 20:29 Kaiepi left 20:30 OpenZen left 20:37 soursBot left, soursBot joined 20:45 KindTwo joined 20:46 KindOne left 20:48 OpenZen joined 20:49 KindTwo is now known as KindOne 20:50 stoned75 left 20:53 wamba left 20:54 melezhik joined
melezhik I wrote a short article on how one could easy test Raku cli applications shipped as Raku modules using RakuDist - sparrowdo.wordpress.com/2020/06/06...s-testing/ 20:54
tellable6 2020-06-05T19:41:33Z #raku <tbrowder> melezhik: i would like to be able to run a cron job to use it every so often for selected modules if that can be done easily. or even my rakudo branches
melezhik .tell tbrowder are you talking about testing modules with RakuDist? 20:56
tellable6 melezhik, I'll pass your message to tbrowder
tbrowder yes, but pushed from my local host. including rakudo branches if possible. 20:59
melezhik to run RakuDist jobs one could use HTTP API - github.com/melezhik/RakuDist/blob/...ueue-build 21:01
are you branches available from github.com/rakudo/rakudo/commits/ ?
if so, you can also use specific sha to point a certain branch (commit)
it all would work if your modules are hosted on github/gitlab 21:03
not sure if this is what you need ...
but basically you'd start with a following request (just an example) - `curl -d thing=github.com/Kaiepi/p6-Kind sha=f0594084e88e3d36bdcbc220989c7c823233876b rakudist.raku.org/queue` 21:05
21:05 patrickb left 21:07 stoned75 joined 21:19 melezhik left 21:27 Dwarf left, rindolf left 21:28 Dwarf joined 21:32 stoned75 left 21:33 stoned75 joined
SmokeMachine m: sub a(*%bla) { dd |%bla }; a :1a, :2b # is that expected? 21:38
camelia :a(1)
:b(2)
SmokeMachine oh! that's different from my mCHINE... 21:39
*machine
lizmat yeah, that looks valid to me 21:41
21:41 stoned75 left 21:54 aluaces left 21:55 soursBot left 21:58 rbt left 21:59 rbt joined, kensanata left 22:11 sena_kun joined, Draco100 joined 22:12 Altai-man_ left 22:14 Draco100 left 22:26 leont left 22:33 Dwarf left 22:34 OpenZen left 22:36 OpenZen joined 22:57 MasterDuke joined 22:59 lichtkind left 23:00 Cabanossi left 23:08 soar joined, Cabanossi joined 23:12 [particle]1 joined 23:13 [particle] left 23:20 ecocode left, ecocode joined 23:41 KindOne left
tbrowder melezhik: erg, more trouble than it's worth for me now for local. but maybe for stuff on github. on my Todo 23:43
p
tellable6 tbrowder, I'll pass your message to melezhik
23:43 KindOne joined
tbrowder list. ;-) 23:43
23:47 pecastro left 23:49 soar left 23:52 mowcat left 23:55 chloekek left 23:56 melezhik joined