🦋 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:08 aborazmeh joined, aborazmeh left, aborazmeh joined 00:16 Doc_Holliwould left 00:21 mowcat left 00:22 sftp joined 00:32 BenGoldberg left, Ben_Goldberg joined, Ben_Goldberg is now known as BenGoldberg 00:39 sftp left 01:13 sftp joined 01:16 MasterDuke left 01:37 skids left 01:56 molaf left 02:04 Manifest0 left 02:06 Manifest0 joined 02:09 molaf joined
elcaro rypervenche: if your interested, here's RSP game using enums I made a while ago: gist.github.com/0racle/b1b65cc70d6...75ea40dde4 02:10
02:13 skids joined 02:22 leont left 02:40 frot-lab joined 02:44 frot-lab left 02:46 frost-lab joined 02:48 frost-lab left 02:52 seanrobert joined 03:11 approaching236 left 03:14 frost-lab joined 03:20 squashable6 left 03:21 squashable6 joined 03:23 squashable6 left 03:24 squashable6 joined 03:39 seanrobert left 04:00 rindolf joined 04:35 Doc_Holliwould joined 04:55 nige joined 05:32 molaf left 05:46 BenGoldberg left 05:55 skids left 06:02 gnufr33dom joined 06:24 Sgeo_ left 06:26 ufobat joined 06:27 sena_kun joined 06:35 ThaEwat left, JJAtria[m] left, AlexDaniel` left, matiaslina left, unclechu left, kiti_nomad[m] left, CIAvash left, suzusime[m] left 06:38 cpan-raku left 06:39 cpan-raku joined, cpan-raku left, cpan-raku joined 06:40 CIAvash joined 06:47 ThaEwat joined, kiti_nomad[m] joined, AlexDaniel` joined, unclechu joined, JJAtria[m] joined, suzusime[m] joined, matiaslina joined 06:50 Doc_Holliwould left
elcaro does the repl have a "result of last expression" variable? 06:51
06:54 jmerelo joined, squashable6 left
jmerelo m: my $x = 7; my $y = 10; my @m[$x,$y]= (-1 xx $x) xx $y; say @m 06:54
camelia Index 7 for dimension 1 out of range (must be 0..6)
in block <unit> at <tmp> line 1
jmerelo ^^^ this works in some versions of 2020.08.2, it does not in others 06:55
06:55 Doc_Holliwould joined
jmerelo commit: releases my $x = 7; my $y = 10; my @m[$x,$y]= (-1 xx $x) xx $y; say @m 06:55
committable6 jmerelo, ¦releases (47 commits): «Index 7 for dimension 1 out of range (must be 0..6)␤ in block <unit> at /tmp/dKjcgsWtY2 line 1␤␤ «exit code = 1»» 06:56
jmerelo commit: HEAD my $x = 7; my $y = 10; my @m[$x,$y]= (-1 xx $x) xx $y; say @m
committable6 jmerelo, ¦HEAD(d6c7a07): «Index 7 for dimension 1 out of range (must be 0..6)␤ in block <unit> at /tmp/CslkTnrzyB line 1␤␤ «exit code = 1»»
06:57 squashable6 joined
jmerelo OK, got the dimensions upside down. Or sideways. Whatever 06:58
07:06 pecastro joined, gnufr33dom left 07:21 maettu joined 07:25 domidumont joined 07:26 wamba joined 07:33 squashable6 left, suzusime[m] left, ThaEwat left, codesections left, finsternis left, hoelzro left, bisectable6 left, tellable6 left, sourceable6 left, statisfiable6 left, committable6 left, quotable6 left, evalable6 left, nativecallable6 left, linkable6 left, notable6 left, benchable6 left, Altreus left, timlegge left, dakkar joined 07:37 suzusime[m] joined 07:38 squashable6 joined, codesections joined, finsternis joined, hoelzro joined, bisectable6 joined, tellable6 joined, sourceable6 joined, statisfiable6 joined, committable6 joined, quotable6 joined, evalable6 joined, nativecallable6 joined, linkable6 joined, notable6 joined, benchable6 joined, Altreus joined, timlegge joined 07:42 wamba left 07:59 Black_Ribbon left 08:22 abraxxa left, abraxxa joined
Zero_Dogg I'm trying to learn how grammars work. I've got a parser that takes some user input (via prompt()) and one subcomponent of those is a date. I want to further parse the date into year, mont and day components. I've tried using make, but I'm not sure if it's correct, nor how I'm actually suppose to access it. 08:23
Grammar example: paste.centos.org/view/25b37101, input could be ie. 08/10/2020
the date token matches fine, I'm just unsure about how to refine it into the year, month, day tokens and then access those 08:26
moritz you could do something like token month { [ 0\d | 1<[0..2]> ] { make $/.Int } } 08:29
but it's easier to just convert it to integer in date, as you do right now 08:30
Zero_Dogg: does that answer your question?
Zero_Dogg moritz: not quite, because I'm not sure how to access that made value. Given $reply = pasScoreInput.parse("08/10/2020"); I get a string as $reply.<date>, but there's no .<date>.made, and no .made either. I'm probably missing some essential understanding about make/made 08:33
08:37 BenGoldberg joined
Zero_Dogg ah, okay, so, I'm actually making this mess by having an array in TOP 08:45
I get it now. Thanks 08:46
08:48 Doc_Holliwould left 08:59 Doc_Holliwould joined 09:08 vike left 09:09 leont joined 09:10 BenGoldberg left 09:12 wamba joined
moritz Zero_Dogg: check out perlpunks.de/paste/show/5f7ed7e8.5cc1.23f 09:12
Zero_Dogg moritz: thanks!
moritz calling the parse method with :rule<date> allows you to debug the logic around date more easily
ufobat can one write libs in raku, compile them into a jar and use it in java/kotlin projects? 09:28
Zero_Dogg moritz: thanks, I'll keep that in mind. This is all very different from the regex monstrosities I used to parse stuff in perl
09:40 maettu left, Altai-man joined 09:42 sena_kun left 09:57 wamba left, wamba joined 09:59 pecastro left 10:05 pecastro joined 10:07 sftp left 10:11 sftp joined 10:15 rindolf left 10:19 k-man_ joined 10:20 k-man left 10:21 rindolf joined, pecastro left 10:22 k-man__ joined 10:25 k-man_ left 10:29 aluaces left, aluaces joined 10:30 k-man joined 10:31 k-man__ left 10:42 aborazmeh left 10:43 aborazmeh joined, aborazmeh left, aborazmeh joined
moritz Zero_Dogg: if you allow me a bit of self-promotion, let me recommend www.apress.com/us/book/9781484232279 :-) 10:44
10:46 k-man left 10:48 wamba left
Zero_Dogg moritz: You've literally written the book on the subject, huh. I'll have to pick that one up :). Cheers 10:48
10:48 k-man joined
moritz :-) 10:50
+1 for correct usage of "literally", something quite rare these days :-)
Zero_Dogg hehe :) 10:53
Altreus I went to the Lake District and it was litorally the best thing 10:55
11:16 pecastro joined 11:20 Doc_Holliwould left 11:21 Doc_Holliwould joined 11:40 maettu joined 12:01 BenGoldberg joined
codesections I literally read "litorally" as "literally" three times before getting the joke on the 4th reading 12:21
Altreus :D 12:25
12:28 maettu left 12:35 BenGoldberg left
daxim do we have a focus/optics/lens library? 12:51
12:56 ufobat left 13:01 frost-lab left
lizmat daxim is there one in Perl ? then Inline::Perl5 should allow you to use that ? 13:01
Altreus what would such a thing do?
moritz calculate beam shapes based on lenses? 13:02
dunno if anybody has *focused* on that yet /rimshot
rypervenche Geez, you're on a roll today.
daxim Data::Focus, but I don't like the API details, too much emphasis on classes
Altai-man As for Haskell-ish lens - nothing similar. 13:03
Altreus Did Haskell do lenses or was that Fresnel? 13:04
lizmat and there was me thinking it had anything to do with optical lenses 13:05
Altreus I mean the original question was focus/optics/lens
very suggestive language
moritz if you build your metaphor too well, nobody can tell if you're talking in that metaphor anymore :-) 13:06
Altai-man Altreus, there is a js package named "optics" which imitates Haskell lens, Data::Focus imitates the same, so it's likely the question is about those. 13:07
daxim I want my lambdacamels back :(
Altreus crikey 13:08
It would have helped if I had any idea what it meant in this context :D
I didn't even realise there was a way to get it wrong
13:12 jmerelo left
lizmat daxim: sorry to hear that, but you can never go home :-( 13:20
13:31 ufobat joined 13:41 sena_kun joined 13:43 Altai-man left
rypervenche Is there a way to bisect this since it requires a SIGINT? (jnthn provided test code at the bottom) github.com/rakudo/rakudo/issues/3547 13:53
It looks like it was fixed at some point.
moritz rypervenche: you could try to write a small raku program that sends SIGINT to itself 13:54
13:56 natrys joined 14:04 Sgeo joined 14:06 ufobat left 14:13 bisectable6 left 14:14 bisectable6 joined 14:18 andinus` left 14:19 andinus joined 14:29 aborazmeh left 14:50 maettu joined 15:13 ufobat joined, domidumont left 15:14 kylese joined 15:27 BenGoldberg joined 15:28 maettu left 15:31 maettu joined 15:47 skids joined 15:48 abraxxa left 15:57 skids left, maettu left 16:00 BenGoldberg left 16:01 zacts_ joined 16:02 zacts_ left 16:03 zacts_ joined 16:04 zacts_ is now known as zacts, zacts left 16:05 zacts joined 16:12 Black_Ribbon joined 16:26 dakkar left 16:30 jmerelo joined 16:47 pecastro left 16:52 pecastro joined 16:53 HarmtH left 16:58 approaching236 joined, aindilis left 17:07 zacts left 17:08 zacts joined 17:10 pecastro left 17:15 pecastro joined 17:20 pecastro left 17:26 zacts left, pecastro joined 17:27 zacts joined 17:31 pecastro left 17:36 pecastro joined 17:38 zacts left 17:39 zacts joined 17:40 Altai-man joined, skids joined 17:42 sena_kun left 17:45 ufobat left, pecastro left 17:50 pecastro joined 17:55 pecastro left 18:00 pecastro joined 18:12 approaching236 left 18:22 maettu joined 18:23 jmerelo left 18:29 zacts left 18:30 zacts joined 18:51 mowcat joined 18:52 BenGoldberg joined 18:59 approaching236 joined 19:06 approaching236 left 19:10 vrurg_ joined 19:12 vrurg left 19:26 MasterDuke joined, BenGoldberg left 19:33 molaf joined 19:36 zacts left 19:53 maettu left 20:20 Altai-man left
lizmat drops a pin 20:21
sjn *thud* 20:28
codesections wow, that must have been a big pin 20:45
20:46 skids left 20:55 cpan-raku left 20:56 cpan-raku joined, cpan-raku left, cpan-raku joined 21:01 rindolf left 21:05 xinming_ left 21:06 xinming_ joined 21:17 kylese left 21:20 defaultxr left, defaultxr joined 21:39 zacts joined 21:55 zacts left, zacts joined 22:10 natrys left, mowcat left 22:11 TCZ joined 22:13 TCZ left 22:18 BenGoldberg joined 22:52 BenGoldberg left, _jrjsmrtn joined 22:54 __jrjsmrtn__ left 22:58 zacts left, skids joined 23:13 BenGoldberg joined 23:22 pecastro left 23:47 Doc_Holliwould left 23:51 aborazmeh joined, aborazmeh left, aborazmeh joined