»ö« #raku and #raku-dev are OPEN FOR BUSINESS | 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 mst on 15 October 2019.
00:01 agentzh joined 00:05 pecastro left 00:51 aborazmeh left, __jrjsmrtn__ left, _jrjsmrtn joined 01:14 Xliff left 01:23 wildtrees_ left 01:25 hungrydonkey joined 01:28 lucasb left 01:30 hungrydonkey left, Guest43 joined 01:36 Guest43 left 01:40 maggotbrain left 01:42 maggotbrain joined, maggotbrain left 01:43 maggotbrain joined 02:16 khisanth_ left 02:29 khisanth_ joined 03:19 Cabanossi left 03:31 Cabanossi joined 03:42 Actualeyes joined 04:00 marcusr left 04:01 marcusr joined 04:04 marcusr left, marcusr joined 04:12 rindolf joined 04:13 marcusr left 04:14 marcusr joined 04:53 Black_Ribbon left 05:19 sauvin joined, sauvin left 05:24 wamba joined, rainmanjam left 05:29 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 06:15 agentzh left 06:17 agentzh joined 06:35 krychu left 06:41 wamba left 06:57 sarna joined 06:58 Doc_Holliwould joined 07:01 Doc_Holliwood left, holli joined 07:04 Doc_Holliwould left 07:05 Doc_Holliwood joined 07:08 holli left, Doc_Holliwould joined 07:10 [particle] left 07:11 Doc_Holliwood left, [particle] joined 07:12 Doc_Holliwood joined 07:15 Doc_Holliwould left, Doc_Holliwould joined 07:18 Doc_Holliwood left 07:19 wamba joined, Doc_Holliwood joined 07:21 Doc_Holliwould left 07:46 hungrydonkey joined 07:50 hungrydonkey21 joined 07:53 hungrydonkey left 07:57 domidumont joined 07:59 sena_kun joined 08:01 wamba left, hungrydonkey21 left 08:04 wamba joined 08:12 sarna left 08:31 cpan-raku left 08:33 mojca joined 08:45 cpan-raku joined, cpan-raku left, cpan-raku joined 08:59 sno joined 09:01 zakharyas joined 09:05 sno left 09:09 zakharyas left 09:11 zakharyas joined 09:15 sno joined 09:25 sno left 09:26 sno joined 09:28 wamba1 joined, wamba left 09:31 sno left 09:33 kst`` joined, sno joined 09:37 kst` left 09:43 sno left 09:44 El_Che_ joined 09:45 El_Che_ left, Manifest0 left, Manifest0 joined 09:56 Altai-man_ joined 09:59 sena_kun left 10:05 daxim left 10:11 sno joined, daxim joined 10:29 sno left 10:34 sno joined 10:42 Seance[m] left, Matthew[m] left, rba[m] left, uzl[m] left, folex left, roy[m] left, Demos[m] left, nino_ left, tyil[m] left, unclechu left, mack[m] left, JulianF left, TravisRt2botio[m left, lance_w[m] left, EuAndreh[m] left, AlexDaniel` left, MitarashiDango[m left 10:44 someuser joined 11:03 mack[m] joined 11:04 wamba1 left, wamba joined 11:16 unclechu joined, AlexDaniel` joined, Demos[m] joined, roy[m] joined, EuAndreh[m] joined, JulianF joined, TravisRt2botio[m joined, uzl[m] joined, lance_w[m] joined, nino_ joined, rba[m] joined, Matthew[m] joined, tyil[m] joined, folex joined, Seance[m] joined, MitarashiDango[m joined 11:34 daxim left 11:45 wamba left 11:46 finanalyst joined 11:50 sno left 11:52 finanalyst_ joined, finanalyst left 11:57 sena_kun joined 11:58 Altai-man_ left 11:59 hungryd92 joined, hungryd92 left, hungryd27 joined 12:03 ExtraCrispy joined
hungryd27 hello, does Perl6 have a way to handle matrices? 12:04
I need to do some math
Hello everyone,I need to do some math about matrices. 12:10
12:10 wamba joined
tadzik hungryd27: github.com/pierre-vigier/Perl6-Math-Matrix may be what you need 12:14
I found it on modules.raku.org/search/?q=matrix :)
hungryd27 Oh, thanks.
12:41 finanalyst_ left, hungrydonkey joined 12:43 hungryd27 left 12:49 hungrydonkey left 13:05 sno joined 13:12 lucasb joined 13:44 wamba left 13:50 wamba joined 13:56 Altai-man_ joined 13:58 sena_kun left 14:17 pecastro joined
Ulti the only downside to that implementation is you end up with perl6 lists of rats very easily... rather than native arrays of floats or something a bit more efficient/vectorisable 14:18
its not a binding to low level libs like blas/lapack or anything 14:19
"Multiple shapes not yet understood" for native arrays is I guess one of the reasons no one has gone here yet 14:30
timotimo native arrays are working very well, and have not-terrible performance 14:39
the performance of native *shaped* arrays and shaped arrays in general is poor, though. barely any optimization work has gone into them as far as i know
14:41 sjm_uk joined 14:44 sjm_uk left, molaf joined
Ulti timotimo: at the moment you can't even define them though 14:48
timotimo can you give an example? 14:49
Ulti you also can't do C like trickery where you allocate a big single dim but access with multi dimensions
timotimo m: my int @foo[5,4]
evalable6
timotimo m: my int @foo[5][4]
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/Hx2TMuu2tU
Multipl…
timotimo, Full output: gist.github.com/3425d99f7caf287743...d538c39c47
timotimo is that what you tried?
Ulti the second one yeah 14:50
timotimo i honestly have no clue what "multiple shapes" means
Ulti so is the first a 5 by 4 2D array?
timotimo yes
Ulti lol then for real what is the second o____O
timotimo m: my int @foo[5,4]; @foo[3,2] = 1
evalable6 (exit code 1) Partially dimensioned views of shaped arrays not yet implemented. Sorry.
in block <unit> at /tmp/RP3Zm8oiGq line 1
timotimo m: my int @foo[5,4]; @foo[3;2] = 1; say @foo.perl 14:51
evalable6 array[int].new(:shape(5, 4), [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 0])
Ulti so I guess multi shape is you say it can be a 1D and a 2D or something? like you have different dimensioned views? so int @weirdthing[10][5,2] = ^10; 14:53
timotimo oh? i have no idea how to actually use that tho?
Ulti that is pure speculation but my only guess at what it could possibly do as valid syntax if [x,y] is the syntax for a 2D declaration 14:54
timotimo hm, greppable6 uses perl6 regex, right?
greppable6: my \s+ int \s+ "@" <ident> \s* \[\d+\]\[\d+\] 14:55
greppable6 timotimo, Found nothing!
timotimo greppable6: help
greppable6 timotimo, Like this: greppable6: password # See wiki for more examples: github.com/perl6/whateverable/wiki/Greppable
timotimo oh, module ecosystem, not spec tests
and perl5 regex, too 14:56
Ulti also it feels bad that I could have been using multi dim native arrays this whole time
timotimo performance is, like, really bad though 14:57
15:01 sno left 15:56 wamba left, wamba joined 15:58 Altai-man_ left 16:19 LtStaffel joined, LtStaffel left 16:37 wamba left
Ulti :D 16:40
16:41 domidumont left
Ulti yeah but if no one uses it and complains about it that is unlikely to improve... given how much better most of my other code has gotten from moaning for the last ten years >:P 16:41
timotimo true 16:44
16:48 pycer joined
tony-o hh 16:59
pycer bye 17:00
off to #raku
17:00 pycer left 17:04 molaf left 17:13 someuser left 17:15 gabiruh joined 17:17 wildtrees joined 17:30 AlexDaniel left, AlexDaniel joined, AlexDaniel left, AlexDaniel joined 17:38 someuser joined 17:57 wamba joined 18:03 domidumont joined 18:20 krychu joined 18:33 sena_kun joined 18:36 domidumont left, zakharyas left 18:54 domidumont joined 18:57 domidumont left 19:14 ExtraCrispy left 19:18 Cabanossi left 19:19 khisanth_ left 19:30 Cabanossi joined 19:32 xinming_ left 19:33 xinming_ joined 19:34 khisanth_ joined 19:53 khisanth_ left 19:54 khisanth_ joined 19:59 sena_kun left 20:18 someuser left 20:36 max__ joined 20:39 max__ left, max__ joined, someuser joined 20:40 max__ left 20:42 lucasb left 21:18 Cabanossi left 21:19 Grauwolf joined, Grauwolf left, Grauwolf joined 21:25 Cabanossi joined 21:31 krychu left 21:46 sivoais joined 21:47 TeamBlast joined 21:59 sena_kun joined 22:08 sena_kun left 22:12 wamba left 22:46 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined 22:50 krychu joined 22:52 Xliff joined 23:55 pecastro left