»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:02 wamba left
cpan-p6 New module released to CPAN! ORM::ActiveRecord (0.0.2) by 03GDONALD 00:04
vrurg m: $a = 1; $a ,= 2; $a.perl.say 00:10
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/tFbwUbOOwA
Variable '$a' is not declared
at /tmp/tFbwUbOOwA:1
------> 03<BOL>08⏏04$a = 1; $a ,= 2; $a.perl.say
vrurg m: my $a = 1; $a ,= 2; $a.perl.say
evalable6 (my \List_94780069600176 = $(List_94780069600176, 2))
vrurg Very, very strange...
timotimo it just doesn't flatten automatically for you 00:16
m: my $a = 1; $a = $a, 2; say $a.perl 00:17
evalable6 WARNINGS for /tmp/2OtngIMtEJ:
1
Useless use of constant integer 2 in sink context (lines 1, 1)
timotimo m: my $a = 1; $a = ($a, 2); say $a.perl
evalable6 (my \List_93876663334736 = $(List_93876663334736, 2))
timotimo m: my $a = 1; $a = flat($a, 2); say $a.perl
evalable6 $((my \List_94568668927840 = ($(List_94568668927840.Seq), 2)).Seq)
timotimo also not like that, lol
m: my $a = 1; $a = flat($a<>, 2); say $a.perl
evalable6 $((1, 2).Seq)
Xliff github.com/Xliff/p6-GTK-CoreTemps 00:18
Now I just need to figure out how to properly align the f'ing labels...
vrurg timotimo: Actually, it comes from R#1205. 00:19
synopsebot R#1205 [open]: github.com/rakudo/rakudo/issues/1205 [junctions] Compound junction-assignement operators cause a hang
vrurg m: my $a = 1; $a &= 2; $a.gist.say
evalable6 (signal SIGHUP) «timed out after 10 seconds»
vrurg ^ like this...
timotimo it gives you an infinite recursion, yeah 00:20
m: my $a = 1; $a = $a<> & 2; $a.gist.say
evalable6 all(1, 2)
timotimo if you don't decont, the scalar sticks around, and gets stuff assigned into it
which is the scalar itself, and the 2
not sure if NOTABUG 00:21
vrurg timotimo: it's rather a bug. But it must be carefully considered. Perhaps, would have to be fixed for each type in its own way. 00:25
timotimo should metaop_assign put a decont in there always? 00:26
you could try that and run a full spectest
vrurg sounds reasonable. deconting would have to be done by Actions in QAST due to later optimization. 00:27
timotimo hm? 00:29
00:30 Xliff left
vrurg METAOP_ASSIGN call gets optimized away 00:30
00:30 MilkmanDan left
timotimo oh, yeah, sometimes i guess 00:30
irced .tell Elronnd dpaste.com/30NR3QS 00:31
tellable6 irced, I'll pass your message to Elronnd
00:32 MilkmanDan joined 00:35 kst left
irced i am subclassing an Int and adding a role but after I construct my object i can't use the assignment operator = without changing the type. that is, my $a = dividend_t.new(0); # ^dividend_t; $a = 11; #^int 00:38
i guess i have to be explicit everytime and do a = dividend_t.new(11) 00:39
timotimo assignment to a scalar will replace the contents, if you want it to be different, you have to replace the scalar witha proxy
irced so by proxy you mean what i just did?
timotimo i don't see a proxy 00:40
irced searches the room for a proxy.
irced looks under the couch cushion that he's sleeping on.
timotimo but i wouldn't say it's the right way to go, though
irced finds a proxy in the docs. 00:41
ok, thanks for your tip timotimo!
00:45 kst joined
irced i understand objects such as literal constants better after the discussion. 00:45
irced puts literal constants in quotes retroactively. 00:48
i'll just work with the language defaults as suggested 00:49
01:11 HoboWithAShotgun left
Elronnd irced: yes. But that's nto a very common pattern in c 01:28
tellable6 2019-09-13T00:31:54Z #perl6 <irced> Elronnd dpaste.com/30NR3QS
Elronnd largely because it doesn't have closures
irced Elronnd: ok
Elronnd: thanks for your feedback.
Elronnd I mean, it's used sometimes, but generally not for that kind of thing 01:29
if I were writing a c++ or d wrapper, though, I would totes make it throw an exception (which is basically the same thing)
01:31 wildtrees left 01:41 molaf left 01:54 molaf joined 02:08 Cabanossi left 02:20 Cabanossi joined 02:45 [particle]1 joined 02:46 [particle] left 02:49 [particle]1 left 02:52 [particle] joined 02:56 [particle]1 joined 02:57 [particle] left 03:00 [particle] joined, [particle]1 left 03:02 cpan-p6 left 03:03 cpan-p6 joined, cpan-p6 left, cpan-p6 joined 03:04 [particle]1 joined, [particle] left 03:13 [particle]1 left 03:14 [particle] joined 03:16 AlexDaniel left, AlexDaniel joined 03:17 AlexDaniel left, AlexDaniel joined 03:28 roy[m] joined 03:50 aindilis left 03:51 aindilis joined 03:54 rindolf joined
irced well subclassing Int opened a whole can a worms, seems like just as in c++, std types should be wrapped 04:12
irced impales a worm on a hook and casts a line. 04:14
04:14 molaf left 04:19 jmerelo joined 04:24 irced left 05:17 sauvin joined 05:19 Itaipu left, Itaipu joined 05:26 Kaypie joined, Kaiepi left 05:35 robertle_ joined 05:37 domidumont joined 05:38 wamba joined 05:42 domidumont left 05:46 Sgeo joined 05:49 Sgeo_ left 05:52 Sgeo_ joined 05:55 Sgeo left 06:01 Sgeo_ left 06:02 Cabanossi left, Cabanossi joined 06:05 Sgeo joined 06:22 domidumont joined 06:29 jmerelo left 06:30 domidumont left 06:38 shlomif joined 06:39 rindolf left, shlomif is now known as rindolf 07:00 domidumont joined 07:02 sena_kun joined 07:14 bitnexus joined 07:32 ChoHag left 07:52 sftp left, sftp joined 08:01 zakharyas joined 08:06 pecastro joined 08:11 krychu_ joined, krychu_ left 08:15 krychu_ joined, krychu_ left
tadzik media.tenor.co/images/486aaf8e5231...c33f82/raw 08:17
08:19 krychu_ joined, krychu_ left 08:21 krychu_ joined, krychu_ left 08:22 krychu_ joined 08:23 krychu_ left 08:33 krychu_ joined, krychu_ left, krychu_ joined 08:34 krychu_ left
cpan-p6 New module released to CPAN! LibXML (0.0.7) by 03WARRINGD 08:34
08:43 leont joined 08:45 krychu_ joined 08:46 krychu_ left 08:49 krychu_ joined 08:50 krychu_ left 08:52 krychu_ joined, krychu_ left 08:54 krychu_ joined 08:55 krychu_ left 08:59 HoboWithAShotgun joined, krychu joined, krychu left 09:01 krychu joined, krychu left 09:06 krychu joined, krychu left 09:08 krychu joined, krychu left 09:16 krychu joined, krychu left 09:19 ravenousmoose joined 09:22 krychu_ joined, krychu_ left 09:24 ravenousmoose left 09:29 krychu_ joined, krychu_ left 09:36 krychu_ joined, krychu_ left 09:46 Black_Ribbon left 09:53 krychu_ joined, krychu_ left 09:54 krychu_ joined, krychu_ left 09:58 krychu_ joined, krychu_ left 10:01 krychu_ joined, krychu_ left, krychu_ joined 10:02 krychu_ left 10:15 krychu_ joined, krychu_ left 10:19 krychu_ joined, krychu_ left 10:21 krychu_ joined 10:22 krychu_ left, krychu_ joined, krychu_ left 10:23 Guest93 left 10:24 Guest93 joined 10:27 krychu_ joined, krychu_ left 10:30 krychu joined, krychu left 10:42 krychu joined, krychu left 11:02 Cabanossi left, krychu joined, krychu left 11:04 spycrab0 left 11:05 krychu joined, krychu left 11:08 zakharyas left 11:11 Cabanossi joined 11:29 krychu_ joined, krychu_ left 11:31 krychu_ joined, holyghost left, krychu_ left 11:36 krychu_ joined, krychu_ left 11:46 HoboWithAShotgun left 11:49 krychu_ joined 11:50 krychu_ left 11:55 ChoHag joined 12:00 krychu_ joined, krychu_ left 12:01 krychu_ joined 12:02 krychu_ left
cpan-p6 New module released to CPAN! ORM::ActiveRecord (0.0.3) by 03GDONALD 12:07
12:19 lucasb joined 12:21 krychu joined, krychu left 12:22 krychu joined, krychu left 12:25 krychu joined, krychu left 12:26 krychu joined, krychu left 12:30 __jrjsmrtn__ left 12:31 __jrjsmrtn__ joined, krychu joined, krychu left 12:33 abraxxa left 12:37 krychu joined, epony left 12:38 krychu left 12:41 krychu joined 12:42 krychu left, astronavt left 12:43 astronavt joined 12:48 krychu joined, krychu left 13:02 krychu joined, krychu left 13:04 zakharyas joined 13:10 krychu joined, molaf joined, krychu left 13:12 krychu joined, krychu left 13:16 krychu joined, krychu left 13:21 HoboWithAShotgun joined 13:24 epony joined 13:25 krychu joined 13:26 krychu left 13:29 MasterDuke left
Geth doc: 4a46515f62 | Coke++ | doc/Language/about.pod6
mark code type
13:34
doc: d777695aaa | Coke++ | doc/Language/nativecall.pod6
Allow example to compile
synopsebot Link: doc.perl6.org/language/about
Link: doc.perl6.org/language/nativecall
13:37 cognominal left 13:39 krychu joined, krychu left, vrurg left 13:43 krychu joined, krychu left 13:45 krychu joined, krychu left 13:46 krychu joined, krychu left 13:52 veesh left 13:54 krychu joined, krychu left 13:55 krychu joined, krychu left
[Coke] doc build failed on "make test", except it's working fine here. weird. Restarted the travis build 13:57
14:00 krychu joined, krychu left 14:02 krychu joined, krychu left 14:05 krychu joined, krychu left 14:07 krychu joined, krychu left
[Coke] build failed on t/02-tests-valid.t again, but this time on a different file. 14:09
# f uninitialized value $repo-id of type Any in string context.
14:14 krychu joined, krychu left 14:21 ravenousmoose joined 14:22 krychu joined, krychu left 14:29 Sgeo_ joined 14:32 Sgeo left 14:37 Sgeo_ left 14:45 krychu joined 14:46 krychu left
HoboWithAShotgun How do I tell comma not to insert spaces before open curlies? 14:48
Every time i type { at the beginning of a line the darn thing puts a number of spaces in front of it, and never the right amount 14:49
I disabled most of the smart keys, yet it is still doing it 14:50
14:51 wamba left, Xliff joined
Xliff \o 14:51
14:52 krychu joined 14:53 krychu left
HoboWithAShotgun greets Xliff with a girdle of flowers and a bowl of lukewarm goat milk 14:53
lizmat takes inspiration from that and goes for a cuppa 14:54
15:00 krychu joined, krychu left 15:04 krychu joined, krychu left 15:08 Sgeo joined 15:09 krychu joined 15:10 krychu left 15:12 krychu joined, krychu left 15:18 krychu joined, krychu left 15:19 Kaypie is now known as Kaiepi, ravenousmoose left
Xliff github.com/Xliff/p6-GTK-CoreTemps 15:24
15:30 MasterDuke joined 15:31 domidumont left 15:34 krychu joined, krychu left 15:38 pat_js joined
Xliff Does someone know how to get core temp data without going through another process like sensors? 15:39
15:40 krychu joined 15:41 krychu left 15:42 krychu joined, krychu left 15:46 krychu joined, krychu left 15:47 zakharyas left 15:49 krychu joined 15:50 krychu left
Elronnd Xliff: probably something in /proc. I would check out the source to sensors 15:52
15:55 krychu joined, krychu left 15:56 krychu joined, krychu left 16:00 krychu joined 16:01 krychu left 16:05 daxim left, daxim joined, Sgeo_ joined
Xliff Elronnd: Yeah. I was going to do that as a last resort. That's a LOT of code. 16:06
And all I can get out of Google is that there are thermal_sensor? items in /sys
Nothing that seems to enumerate the temperaturs by actual cpu.
16:08 Sgeo left
HoboWithAShotgun That doesn't seem to be trivial in vanilla C under Windows either. 16:11
Xliff HoboWithAShotgun: Key words: "Under" and "Windows". :) 16:14
Elronnd Xliff: there is /sys/devices/virtual/thermal/thermal_zone*/temp
I think those are millidegrees C 16:15
HoboWithAShotgun No, the keyword is "vanilla c". It's trivial using WMI
16:15 krychu joined, krychu left
HoboWithAShotgun Having access to .NET / mono from Perl6 natively, THAT would be a killer feature 16:15
16:19 krychu_ joined, krychu_ left 16:26 vrurg joined, dogbert17 joined 16:28 krychu joined, krychu left
SmokeMachine Shouldn't have a `preferences` here? I'm also trying `Cmd + ,` and nothing happens... usercontent.irccloud-cdn.com/file/.../image.png 16:28
the problem may be my Mac... but idk 16:29
Xliff Elronnd: Yes, but that's just one zone of two on my chip.
16:29 krychu joined
Elronnd Xliff: ahh, idk then 16:29
16:30 krychu left
Xliff I have 20 cores. 16:30
Elronnd HoboWithAShotgun: I believe there was an experimental .net compiler. Probably not on par with rakudo though
Xliff That's 10 CPU temps that I need.
Elronnd: Thanks for the suggestions, tho!
OK. New topic. I have libraries that I am distributing with my module. How do I reference those in rakudo? 16:31
%?RESOURCES<path-to-lib>?
16:32 krychu joined, krychu left 16:34 vrurg left
HoboWithAShotgun Elronnd: Yes, I know. Shame that didn't work out. But still, you can access .NET from vanilla C via P/Invoke. 16:37
Xliff Does perl6 support sending a false flag with "sub MAIN (:$verbose = True) {}" 16:38
HoboWithAShotgun So in theory it should be possible to write some kind of interface layer.
Xliff Or do you need "--verbose=0"?
lizmat HoboWithAShotgun: github.com/sorear/niecza
Xliff I thought yyou could do "--no-verbose" for false.
16:38 pat_js left
HoboWithAShotgun lizmat: No activity since 6 years. Also, what I mean is a bridge from rakudo to .NET, not some other compiler. 16:42
lizmat HoboWithAShotgun: ah, ok... please do! :-)
HoboWithAShotgun I'd be happy to do the gruntwork.
Xliff I could help with the NativeCall stuff.
HoboWithAShotgun But coming up with a concept is over my head, sadly.
Xliff o 16:43
lizmat perhaps pmurias and jnthn could give you pointers
16:45 krychu joined
Elronnd HoboWithAShotgun: looks like 3 years actually, but yeah 16:45
16:45 krychu left
Elronnd HoboWithAShotgun: I might start by looking at the jvm compiler 16:45
16:48 krychu joined 16:49 krychu left, leont left, krychu joined 16:50 krychu left 16:51 krychu joined, krychu left
Voldenet I dislike design choice that led to using ~ for string concatenation 16:55
On windows, when using polish keymap, it requires typing in shift + ` + space 16:56
so to comfortably use it, one has to use english keymap, which is suboptimal
16:59 aborazmeh joined, aborazmeh left, aborazmeh joined
AlexDaniel Voldenet: fix your keyboard layout then 17:02
it's not like keyboard layouts are unchangeable…
like, I can type these 「」 right away, no compose sequences required 17:03
sure enough anybody can improve their layout to have ~ too
17:09 krychu joined, krychu left 17:17 krychu_ joined, krychu_ left, krychu_ joined, krychu_ left 17:19 krychu joined, krychu left 17:24 krychu joined 17:25 krychu left 17:29 krychu joined, krychu left, vrurg joined 17:30 vrurg left, krychu joined, krychu left 17:33 Altai-man_ joined, vrurg joined 17:34 krychu joined, krychu left, vrurg left 17:35 sena_kun left 17:37 krychu joined, krychu left 17:38 krychu joined, krychu left 17:39 SCHAPiE left 17:40 aborazmeh left 17:43 leont joined 17:47 krychu joined, krychu left 17:48 krychu joined, krychu left 17:49 SCHAPiE joined 17:51 wildtrees joined 17:52 krychu joined, krychu left, wildtrees left 17:53 wildtrees joined 18:00 krychu joined, krychu left 18:02 krychu joined
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @locals.kv.rotor(2).grep({ .[2] eq 'd' ).flat.say 18:02
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/U7QEw5KC6z
Missing…
Xliff, Full output: gist.github.com/b8df1f8566e89612da...84292132f4
18:02 krychu left
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @locals.kv.rotor(2).grep({ .[2] eq 'd' }).flat.say 18:02
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/3KaGPpkpf8
Variabl…
Xliff, Full output: gist.github.com/499a56cd2867f00003...d83ba118bf
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[2] eq 'd' }).flat.say 18:03
evalable6 Use of Nil in string context
()
in block at /tmp/MQiEx9VBw3 line 1
Use of Nil in string…
Xliff, Full output: gist.github.com/92f0b8083dfebae1d2...e63467f777
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat.say
evalable6 (3 d)
Demos[m] can I donwload the documentation to my local machine 18:04
like in the repl I say `IO::Path.WHY` and get "no documentation available" 18:05
18:06 krychu joined, krychu left 18:07 krychu joined, patrickb joined
patrickb .tell Xliff I forgot to tell you all of the complete tech stack I used to connect to MSSQL: DBIish, DBDish::ODBC, UnixODBC and FreeTDS. 18:07
tellable6 patrickb, I'll pass your message to Xliff
18:07 krychu left
timotimo yes you can. however, the .WHY on most things will not give you the docs even then 18:07
patrickb .tell Xliff Why PreparedStatements don't work. ODBC requires to pass the *DB* column types of parameters when creating (or using?) a prepared statement. One can use `DescribeParam()` to determine that type (DBDish::ODBC uses that). FreeTDS does not support `DescribeParam()` and will not add support in the foreseeable future. One could work around 18:08
that by guessing the DB column types based on the type of the passed values. A Python ODBC implementation (I think it was pyODBC I was looking at) does. It's actually faster that way as the extra roundtrip of `DescribeParam()` is not needed.
tellable6 patrickb, I'll pass your message to Xliff
2019-09-09T19:42:28Z #perl6 <sortiz> patrickb I merge your PR, sorry for the delay.
2019-09-09T20:44:29Z #perl6-dev <Xliff> patrickb Thanks for the information. I was hoping it would be as simple as mapping to the right routine.
18:08 Actualeyes joined, leont left 18:09 krychu joined
patrickb .tell Xliff Other drivers might actually support DescribeParam() and Just Work™ 18:09
tellable6 patrickb, I'll pass your message to Xliff
18:09 krychu left
patrickb is back to vacationing 18:10
18:10 patrickb left 18:12 krychu joined 18:13 krychu left
AlexDaniel` Demos: not really 18:18
18:19 mscha joined
AlexDaniel rba: can you update github.com/perl6/problem-solving/issues/68 so that each resource has a list of people who maintain it? 18:20
rba: because I still have no fucking clue
mscha m: say ৪ + 3; # :-)
evalable6 7
AlexDaniel rba: for example, who should I bother to bring this link back up? docs.perl6.org/perl6.xhtml
u: ৪ 18:21
unicodable6 AlexDaniel, U+09EA BENGALI DIGIT FOUR [Nd] (৪)
rba AlexDaniel: where is this link come from?
AlexDaniel rba: my memory 18:22
timotimo it's linked to on the front page of the docs site
18:23 krychu joined, krychu left 18:24 krychu joined, krychu left
rba AlexDaniel: html without x 18:24
Yet unreachable 18:25
18:25 sauvin left
rba docs.perl6.org is still on the tmp server 18:25
18:27 vrurg joined
rba unreachable links is something we need to take care of 18:27
18:28 krychu joined 18:29 krychu left 18:33 krychu joined, krychu left 18:34 mscha left 18:38 krychu joined, krychu left 18:39 krychu joined, krychu left 18:42 krychu joined, krychu left 18:47 krychu joined, krychu left 18:49 krychu joined, krychu left 18:50 krychu joined, krychu left
Geth problem-solving/path-to-raku: 90b8d0c7e7 | (Elizabeth Mattijsen)++ | solutions/language/PATH-TO-RAKU.md
Rephrase the Social Media paragraph
18:51
18:52 krychu joined, krychu left 18:53 vrurg left 18:54 vrurg joined, vrurg left 18:56 vrurg joined
Geth problem-solving/path-to-raku: 43a1c6d6af | (Elizabeth Mattijsen)++ | solutions/language/PATH-TO-RAKU.md
Move the extensions discussion to a separate issue / PR
18:56
18:57 wamba joined 18:58 krychu joined, krychu left, zakharyas joined, krychu joined
Geth problem-solving/path-to-raku: 6e7e625e53 | (Elizabeth Mattijsen)++ | solutions/language/PATH-TO-RAKU.md
Use the #rakulang hash tag, please
18:59
18:59 krychu left, krychu joined 19:00 krychu left 19:03 krychu joined 19:04 krychu left
Xliff .tell patrickb Thanks for the additional info! I'll keep that in mind. 19:08
tellable6 Xliff, I'll pass your message to patrickb
19:10 krychu joined, krychu left 19:13 krychu joined, krychu left 19:15 sena_kun joined, sena_kun left 19:16 krychu joined, krychu left 19:17 Altai-man_ left 19:18 krychu joined 19:19 krychu left 19:21 krychu joined, krychu left 19:24 krychu joined, krychu left
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat.say; @a .= splice($k, 0); @a.say 19:25
evalable6 (3 d)
[]
tellable6 2019-09-13T18:07:28Z #perl6 <patrickb> Xliff I forgot to tell you all of the complete tech stack I used to connect to MSSQL: DBIish, DBDish::ODBC, UnixODBC and FreeTDS.
2019-09-13T18:09:34Z #perl6 <patrickb> Xliff Other drivers might actually support DescribeParam() and Just Work™
gist.github.com/31b7853f5972459470...875d961aaf
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat.say; @a.splice($k, 0); @a.say 19:26
evalable6 (3 d)
[a b c d e f]
19:26 krychu joined
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat.say; @a.splice($k, 0).sau 19:27
evalable6 (exit code 1) (3 d)
No such method 'sau' for invocant of type 'Array'. Did you mean 'say'?
in block <unit> at /tmp/ZMs2pJDrAZ line 1
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat.say; @a.splice($k, 0).say
evalable6 (3 d)
[]
19:27 krychu left
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; @a.splice($k, 0).say 19:27
evalable6 []
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a.splice($k, 0).say
evalable6 3
[]
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a.splice($k, 0, ()).say
evalable6 3
[]
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a.splice($k, 1).say
evalable6 3
[d]
19:27 cpan-p6 left
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a .= splice($k, 1); @a.say 19:28
evalable6 3
[d]
19:28 cpan-p6 joined, cpan-p6 left, cpan-p6 joined
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a.splice($k, 1); @a.say 19:28
evalable6 3
[a b c e f]
Xliff m: my @a = <a b c d e f>; my ($k, $v) = @a.kv.rotor(2).grep({ .[1] eq 'd' }).flat; $k.say; @a.splice($k, 0, 'dd'); @a.say 19:29
evalable6 3
[a b c dd d e f]
19:37 krychu joined, krychu left
Xliff m: my @a = (<a b c>, <b c> <D <E F> G>); @a.say 19:39
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/qTMkwLjQiO
Two ter…
Xliff, Full output: gist.github.com/ee63c55ff3b01f4dd8...b89d17e3ce
19:39 vrurg left
Xliff m: my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ) 19:40
evalable6
Xliff m: my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); @a.say
evalable6 [0 (1 2) 3 (0 (2 (1 0)))]
Xliff m: my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); @a.flat.say
evalable6 (0 (1 2) 3 (0 (2 (1 0))))
19:41 vrurg joined
Xliff Is there a deepflat? 19:41
19:41 krychu joined, krychu left
Xliff m: sub deepflat ($a) { $a ~~ Array $a.deepflat !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:42
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/IZ_TtOdARF
Two ter…
Xliff, Full output: gist.github.com/fb438f0430a54b1d33...7b81f78f94
Xliff m: sub deepflat ($a) { $a ~~ Array ?? $a.deepflat !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say
evalable6 0
Xliff m: sub deepflat ($a) { $a ~~ Array ?? $a.&deepflat !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:43
evalable6 0
19:43 netrino joined
Xliff m: sub deepflat ($a) { $a ~~ Array ?? $a.map( *.deepflat ) !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:44
evalable6 0
Xliff m: sub deepflat ($a) { $a ~~ Array ?? $a.map( *.&deepflat ) !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say
evalable6 0
Xliff m: sub deepflat ($a) { $a ~~ Array ?? $a.map( *.&deepflat ).flat !! $a }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:45
evalable6 0
Xliff m: sub deepflat (@a) { @a.map({ $_ ~~ Array .&deepflat !! $a }).flat }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:46
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/uLj08AVxJG
Malform…
Xliff, Full output: gist.github.com/769672e9062136c4fa...b5f98cc5f8
Xliff m: sub deepflat (@a) { @a.map({ $_ ~~ Array ?? .&deepflat !! $a }).flat }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/sP36U6fdkS
Variabl…
Xliff, Full output: gist.github.com/ffcd726cb8f42ea691...8f2a2865a7
Xliff m: sub deepflat (@a) { @a.map({ $_ ~~ Array ?? .&deepflat !! $_ }).flat }; my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); $a.&deepflat.say 19:47
evalable6 (exit code 1) Type check failed in binding to parameter '@a'; expected Positional but got Int (0)
in sub deepflat at /tmp/dm3QQhzZoE line 1
in block <unit> at /tmp/dm3QQhzZoE line 1
Xliff m: my ($a, $b, $c, $d) = ^4; my @a = ( ($a, ($b, $c), $d, ($a, ($c, ($b, $a)))) ); @a.deepflat.say 19:48
evalable6 (exit code 1) No such method 'deepflat' for invocant of type 'Array'
in block <unit> at /tmp/dW2UgDspjl line 1
19:49 zakharyas left 19:53 Black_Ribbon joined 19:58 guifa2 joined 20:05 krychu joined, krychu left 20:10 krychu joined 20:11 krychu left 20:12 krychu joined, krychu left 20:19 krychu joined, krychu left 20:21 krychu joined, krychu left 20:23 krychu joined, krychu left 20:25 krychu joined, krychu left 20:26 krychu joined 20:27 krychu left 20:33 krychu joined 20:34 krychu left 20:36 krychu joined, krychu left 20:39 krychu joined, krychu left 20:41 roy[m] left, aearnus[m] left, unclechu left, lance_w[m] left, folex left, Demos[m] left, CIAvash left, EuAndreh[m] left 20:42 TravisRt2botio[m left, BlackChaosNL[m] left, Matthew[m] left, sergiotarxz[m] left, xliff[m] left, Guest48976 left, rba[m] left, mack[m]1 left, Seance[m] left, uzl[m] left, matiaslina left, AlexDaniel` left 20:44 krychu joined, krychu left 20:48 AlexDaniel` joined 20:50 krychu joined, krychu left 20:53 krychu joined
Xliff \o/ -- 280Kloc of Perl6 code! 20:53
20:55 krychu left 20:56 krychu joined
MasterDuke impressive 20:56
Xliff :> 20:57
Thanks, MasterDuke
docs.google.com/spreadsheets/d/12j...=365670324 21:00
drive.google.com/file/d/12j1Dy6zIc...sp=sharing
21:02 BlackChaosNL[m] joined, EuAndreh[m] joined, Matthew[m] joined, lance_w[m] joined, sergiotarxz[m] joined, TravisRt2botio[m joined, Guest53157 joined, rba[m] joined, unclechu joined, roy[m] joined, xliff[m] joined, aearnus[m] joined, matiaslina joined, Demos[m] joined, folex joined, uzl[m] joined, CIAvash joined, Seance[m] joined, mack[m]1 joined 22:39 thowe joined 22:45 krychu left 23:09 pecastro left 23:11 wamba left 23:18 dogbert17 left 23:54 leont joined 23:59 Actualeyes left