🦋 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 mahmudov left, mahmudov joined 00:05 libertas left 00:25 SmokeMachine left 00:26 SmokeMachine joined 00:34 mahmudov left 00:52 Kaiepi left 00:53 Kaiepi joined 01:17 ZZZzz left 01:26 wildtrees left 01:29 albongo left 01:30 rypervenche left 01:33 rypervenche joined 01:34 sena_kun left 01:41 albongo joined 01:49 sena_kun joined 01:50 Actualeyes left 01:54 AlexDaniel left 01:58 ZZZzz joined 02:13 MasterDuke left 02:21 aborazmeh joined, aborazmeh left, aborazmeh joined 02:49 stoned75 left 03:26 farcas82regreg left 03:34 sena_kun left, robertle joined 03:48 sena_kun joined 04:03 tobs left 04:20 rindolf joined 04:28 tobs joined 04:41 molaf joined 04:50 hungrydonkey left 04:58 hungrydonkey joined 05:08 Kaiepi left 05:13 cpan-raku left 05:14 cpan-raku joined, cpan-raku left, cpan-raku joined, squashable6 left 05:17 squashable6 joined 05:33 molaf left 05:34 sena_kun left 05:47 sena_kun joined 05:54 aborazmeh left 06:03 kst left 06:07 jmerelo joined 06:16 NODE left 06:17 Doc_Holliwood joined 06:18 NODE joined 06:19 moon-child left, NODE left, moon-child joined 06:22 NODE joined 06:24 NODE left 06:26 NODE joined 06:43 sauvin joined 06:46 NODE left
Geth doc: ff1e481239 | (JJ Merelo)++ | doc/Type/Any.pod6
Revision of Any.map prior to addressing #2632
06:46
doc: a9e8b9fc37 | (JJ Merelo)++ | doc/Type/Any.pod6
.map in sunk contest, refs #2632

Answer gleaned from roast and this answer by @lizmat in Stackoverflow stackoverflow.com/a/60185772/891440
linkable6 Link: docs.raku.org/type/Any
linkable6 DOC#2632 [open]: github.com/Raku/doc/issues/2632 [Hacktoberfest][RFE][big][docs][good first issue][help wanted][new][⚠ Top Priority ⚠] Checklist for 6.d
06:48 NODE joined 07:00 Doc_Holliwood left 07:04 wamba joined 07:12 kensanata joined 07:18 aindilis left 07:19 farcas82regreg joined 07:20 aindilis` joined 07:21 xinming_ left, xinming_ joined 07:26 aindilis` left 07:27 xinming joined 07:30 xinming_ left 07:33 xinming left, sena_kun left 07:35 xinming joined 07:37 domidumont joined 07:42 NODE left 07:43 NODE joined 07:47 sena_kun joined 07:57 reach_satori left 08:09 colomon_ left 08:11 colomon_ joined 08:19 jmerelo left 08:33 zakharyas joined 08:42 hungrydonkey left 08:44 wamba left 08:49 dakkar joined 08:53 wamba joined 08:54 hungrydonkey joined 08:59 MasterDuke joined 09:05 zakharyas left 09:07 domidumont left, zakharyas joined 09:23 Manifest0 left 09:24 domidumont joined 09:34 sena_kun left 09:39 hungryd90 joined 09:42 hungrydonkey left 09:43 pecastro joined 09:47 sena_kun joined 09:51 reach_satori joined 09:52 Kaiepi joined, Kaiepi left 09:53 Kaiepi joined 10:02 hungrydonkey joined 10:03 hungryd90 left 10:25 [Sno] left, [Sno] joined 10:27 NODE left 10:28 NODE joined 10:29 rindolf left 10:30 patrickb joined 10:34 [Sno] left 10:35 ZZZzz left, [Sno] joined 10:42 wamba left 10:48 pecastro left 10:49 pecastro joined 10:53 libertas joined 10:58 ZZZzz joined 10:59 wamba joined 11:12 rindolf joined 11:13 wamba left 11:25 [Sno] left 11:26 [Sno] joined 11:33 sena_kun left 11:37 squashable6 left 11:38 aborazmeh joined, aborazmeh left, aborazmeh joined 11:39 squashable6 joined 11:40 wamba joined 11:42 wamba left, wamba1 joined 11:47 sena_kun joined 12:04 Kaiepi left 12:07 Kaiepi joined
xinming m: my %h = ("b" => "yy"); my @c = (%h<y> ?? %h<y> !! Empty, "x"); @c.perl.say; 12:17
camelia ["x"]
xinming Is there a short cut to make Any to become Empty?
m: my %h = ("b" => "yy"); my @c = (%h<y> // Empty, "x"); @c.perl.say; 12:18
camelia ["x"]
xinming This one worked
cpan-raku New module released to CPAN! Uzu (0.3.5) by 03SACOMO
abraxxa what's the best construct to descend a directory and put all file IO objects into two arrays based on their name and included directory? 12:24
I have one solution using gather/take but now need to fill a second list 12:25
I'd just use a regular while loop without gather/take and push to the two arrays 12:27
12:34 lucasb joined 12:36 Woodi left 12:44 zakharyas left 12:45 NODE left 12:46 NODE joined
moritz so, do it? 12:59
you can do something like 13:00
sub traverse($dir) { my (@f1, @f2); my sub inner($dir) { ... }; inner($dir); return @f1, @f2 }
where inner() recurses and fills @f1 and @f2
13:00 hungrydonkey left 13:01 hungrydonkey joined 13:04 patrickb left 13:07 pecastro left 13:08 veesh_ joined 13:10 veesh left 13:11 veesh_ is now known as veesh 13:14 patrickb joined 13:33 sena_kun left 13:34 tadzik left, _jrjsmrtn joined 13:35 tadzik joined 13:37 __jrjsmrtn__ left 13:44 reach_satori left 13:46 nosqrt left 13:48 sena_kun joined 13:59 pecastro joined 14:04 rindolf left 14:13 rindolf joined 14:18 zakharyas joined 14:22 gabiruh left 14:32 zakharyas left 14:33 zakharyas joined 14:46 MasterDuke left 14:50 gabiruh joined, aborazmeh left 15:16 melezhik joined 15:20 molaf joined 15:31 dansolo42 joined 15:32 dansolo42 left 15:33 sena_kun left 15:34 farcas82regreg left 15:40 dansolo42 joined 15:47 sena_kun joined 15:48 aborazmeh joined, aborazmeh left, aborazmeh joined 15:53 lichtkind joined
dakkar abraxxa: alternatively, you can use something like www.thenautilus.net/cgit/MaildirIn...od?h=bayes which gives you a Supply of IO::Path objects, which will keep emitting changes to the directories 16:04
dakkar should probably release that module
abraxxa dakkar: thanks, but way too high-tech ;) 16:07
16:07 molaf left
abraxxa I've read the difference between when and if and gather/take and it's now a regular while loop with an if/elsif 16:07
16:10 hungrydonkey left
El_Che mee door seffes? 16:20
16:20 wildtrees joined
lichtkind jnthn: is it possible to get an interview with you? 16:30
16:33 gabiruh left 16:36 domidumont left 16:37 aborazmeh left 16:42 patrickb left 16:53 melezhik left 17:06 wamba1 left 17:10 pecastro left 17:23 aborazmeh joined, aborazmeh left, aborazmeh joined 17:34 sena_kun left, melezhik joined 17:36 dakkar left 17:38 aborazmeh left
xinming m: my $s = "username:5"; my ($name, Int() $id) = $s.split(":"); $id.perl.say; 17:39
camelia "5"
xinming In this example, Should the Int() part be usable? 17:40
17:42 reach_satori joined
lizmat I think xinming has found a bug: 17:42
m: my (Int $a, $b) = "42:b".split(":")
camelia Type check failed in assignment to $a; expected Int but got Str ("42")
in block <unit> at <tmp> line 1
lizmat m: my (Int(Str) $a, $b) = "42:b".split(":")
camelia ( no output )
lizmat m: my (Int(Str) $a, $b) = "42:b".split(":"); dd $a
camelia Str $a = "42"
lizmat m: my (Int(Str) $a, $b) = "42:b".split(":"); dd $a; $a = "foo"
camelia Str $a = "42"
xinming lizmat: So, This is a bug, right?
lizmat m: my (Int(Str) $a, $b) = "42:b".split(":"); dd $a; $a = "foo"; dd $a 17:43
camelia Str $a = "42"
Str $a = "foo"
xinming the my Int() $x = "3"; should work as expected.
lizmat yeah, or a NYI
xinming Got it, thanks, it's just confirmation for this.
will add a issue
lizmat thanks!
bisectable6: my (Int(Str) $a, $b) = "42:b".split(":"); dd $a
bisectable6 lizmat, On both starting points (old=2015.12 new=5685648) the exit code is 0 and the output is identical as well
lizmat, Output on both points: «Str $a = "42"␤»
lizmat looks like it has been there like forever :-) 17:44
xinming lizmat: BTW, when we use my (Int() $a) Will this declare the $a as Int?
or, it's scalar, Just store the value Int in it.
lizmat m: my Int() $a; $a = "42"; dd $a 17:45
camelia 5===SORRY!5=== Error while compiling <tmp>
Coercion Int(Any) is insufficiently type-like to qualify a variable
at <tmp>:1
------> 3my Int() $a7⏏5; $a = "42"; dd $a
expecting any of:
constraint
lizmat looks like it should at least create a similar error
xinming So, the my Int() $a is an error
lizmat yeah...
so my (Int() $a, $b) should also be 17:46
xinming Got it, I thought that we can save a step further to coerce things directly for newly created var
lizmat yeah, that would be cool, but apparently we're not there yet :-) 17:47
17:48 sena_kun joined 17:50 dogbert11 left
xinming m: my (Int() $a) = "42" 17:50
camelia ( no output )
xinming m: my Int() $a = "42"
camelia 5===SORRY!5=== Error while compiling <tmp>
Coercion Int(Any) is insufficiently type-like to qualify a variable
at <tmp>:1
------> 3my Int() $a7⏏5 = "42"
expecting any of:
constraint
tbrowder hi, #raku
El_Che ukar# ih
tbrowder anyone here ever use Inline::Python? 17:51
El_Che: hi! lucky i can read pig latin 17:52
El_Che tbrowder: it took me soms tries to write it :)
lizmat m: say "pig latin".flip
camelia nital gip
17:53 wamba joined
tbrowder cool, good thing to demo to my grandson! 17:53
El_Che lizmat: showoff :) 17:54
lizmat m: my constant &pig-latin = &flip; say pig-latin "how are yoy" 17:55
camelia yoy era woh
lizmat *uoy :-)
tbrowder in a raku script using inline::python how would i express "from some-pything import foo, bar"? 17:57
lizmat: that is very neat! 17:58
lizmat m: sub pig-latin($s) { $s.flip.words.reverse }; say pig-latin "how are you" # maybe even neater ? 18:01
camelia (woh era uoy)
18:02 aluaces left
El_Che lol 18:02
lizmat m: sub pig-latin($s) { $s.flip.words.reverse.Str }; say pig-latin "how are you" 18:03
camelia woh era uoy
lizmat that's better
m: sub pig-latin($s) { ~$s.flip.words.reverse }; say pig-latin "it's hard to stop" 18:04
camelia s'ti drah ot pots
lizmat dinner&
18:04 cpan-raku left
tbrowder even better 18:04
18:05 cpan-raku joined, cpan-raku left, cpan-raku joined 18:07 jmerelo joined
El_Che (I was under the impression that regular English was pig latin :) ) 18:07
18:08 aborazmeh joined, aborazmeh left, aborazmeh joined 18:09 chloekek joined 18:15 Actualeyes joined, aborazmeh left 18:19 reach_satori left 18:20 molaf joined, reach_satori joined 18:27 wamba1 joined 18:30 aluaces joined 18:31 wamba left 18:35 |Sno| joined 18:38 [Sno] left 18:41 kensanata left 18:42 mahmudov joined 18:44 zakharyas left
tbrowder otsna osna 18:44
jmerelo hey
tbrowder hey 18:45
hatswa pusa? 18:47
er, what's up,jj?
jmerelo working on a paper now, fighting with Python 18:49
lichtkind ll 18:51
jmerelo: github.com/pierre-vigier/Perl6-Mat...ix#authors 18:52
jmerelo lichtkind: glad to be of help!
tbrowder: also, will probably buy the ticket to Houston this week.
tbrowder great! i'm already signed up, as is an old classmate who is a raku wannabe (former fortran guy and current windows it guy) 18:54
18:55 pecastro joined
jmerelo tbrowder: great! 18:55
tbrowder: I guess we'll meet there 18:56
18:57 aindilis joined
tbrowder i hope so 19:02
19:10 wamba1 left
tbrowder fun fact, def of pig latin from wikioedia: "a made-up language formed from English by transferring the initial consonant or consonant cluster of each word to the end of the word and adding a vocalic syllable (usually ˈpiɡ ˌlatn: so chicken soup would be translated to ickenchay oupsay . Pig Latin is typically spoken playfully, as if to convey secrecy." 19:17
so lizmat can fine-tune sub "pig-latin" and make a fun module to demo raku? 19:18
.tell lizmat ^^^ 19:19
.ask lizmat ^^^
hm, bots gone home?
jmerelo tbrowder: I would say so
m: say "Hi"
camelia Hi
jmerelo well, that one works.
tbrowder m: say pig-latin('hello jmerelo') 19:20
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
pig-latin used at line 1
tbrowder arg, have to start over, too much effort--sigh 19:22
19:22 sauvin left 19:32 sena_kun left 19:44 jmerelo left 19:48 sena_kun joined 19:50 gabiruh joined 19:53 wildtrees left 19:59 Manifest0 joined 20:03 gabiruh left, gabiruh joined 20:18 wildtrees joined 20:19 chloekek left, MasterDuke joined 20:22 zakharyas joined 20:25 nosqrt joined 20:41 rindolf left, pmurias joined 20:43 dogbert17 joined
pmurias is back from google onsite interviews (it didn't go as well as planned, now waiting for results) 20:43
I have a Raku focused day planned tommorow 20:44
20:44 vike left
lizmat pmurias++ 20:44
wildtrees pmurias, was it tougher then you expected? :-/
20:45 aborazmeh joined, aborazmeh left, aborazmeh joined 20:49 Black_Ribbon joined
pmurias wildtrees: got stressed out on the algorithms interview (and it was the 5th on that day) and didn't solve it fully 20:59
wildtrees: had 2 js/frontend ones which I would guess went well
wildtrees oh, goodluck with getting a job there anyways pmurias , it was the 5th interview of the day? 21:00
pmurias yes
wildtrees sounds intense
21:01 aborazmeh left
pmurias wildtrees: had a googliness interview which I don't know how to judge and a system design one which the recruiter told me was supposed to be a frontend/backend interaction focused but was just a regular one which I wasn't really prepared for so I kind of winged it 21:01
wildtrees pmurias, what was the toughest question on the algorithm interview? 21:03
pmurias wildtrees: not sure if I'm allowed to mention it on IRC
wildtrees oh , :D that's fine 21:04
pmurias didn't sign an NDA but a guy who worked there he asked me if I signed one (he didn't too when he was interviewed) and he thought it was some administrative oversight 21:06
wildtrees gotcha 21:07
21:09 vike joined 21:11 kensanata joined
rypervenche Do we have any idea what the tutorials are going to be like for the Perl & Raku Conference? I'd like to purchase my ticket, but I'm not sure how many days to book the hotel for. 21:12
21:12 zakharyas left
lizmat rypervenche: I assume you mean the one in Houston ? 21:14
rypervenche lizmat: Yes 21:15
lizmat I have no idea... I know that I won't be going to the US for the foreseeable future
rypervenche Oh :/ 21:16
guifa rypervenche: I’m going to be doing a presentation on internationalization/localization, but I don’t knwo what else is planned yet 21:23
The second round of talk submissions ends in two weeks. I imagine they’re waiting to announce all the speakers for when they have a schedule as well so it’ll probably all get dumped on the 8th 21:27
21:32 sena_kun left
rypervenche Ah ok. 21:38
21:45 Itaipu joined 21:47 sena_kun joined 22:37 vike left 22:38 kensanata left
cpan-raku New module released to CPAN! Sparrow6 (0.0.13) by 03MELEZHIK 23:01
23:03 cpan-raku left 23:04 cpan-raku joined, cpan-raku left, cpan-raku joined 23:07 mowcat left 23:26 Sgeo left 23:27 Sgeo joined 23:34 sena_kun left 23:48 sena_kun joined 23:57 aborazmeh joined, aborazmeh left, aborazmeh joined