🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | log inspection situation still under development | For MoarVM see #moarvm
Set by lizmat on 22 May 2021.
00:04 reportable6 left 00:05 reportable6 joined 02:02 frost joined 03:02 nine left, nine joined 04:50 reportable6 left, shareable6 left, evalable6 left, notable6 left, unicodable6 left, linkable6 left, tellable6 left, statisfiable6 left, greppable6 left, bloatable6 left, committable6 left, coverable6 left, squashable6 left, sourceable6 left, nativecallable6 left, benchable6 left, quotable6 left, releasable6 left, bisectable6 left 04:51 committable6 joined, coverable6 joined, squashable6 joined 04:52 linkable6 joined, greppable6 joined, statisfiable6 joined, sourceable6 joined, unicodable6 joined, tellable6 joined 04:53 evalable6 joined 05:50 releasable6 joined 05:51 shareable6 joined 05:52 bisectable6 joined 05:53 nativecallable6 joined 06:08 squashable6 left 06:09 squashable6 joined 06:11 squashable6 left 06:12 squashable6 joined 06:52 benchable6 joined, bloatable6 joined 06:53 notable6 joined 07:05 reportable6 joined 07:58 squashable6 left 08:00 squashable6 joined
lizmat Files=1349, Tests=117874, 317 wallclock secs (35.88 usr 9.48 sys + 4387.51 cusr 355.63 csys = 4788.50 CPU) 09:39
09:45 frost left 11:08 frost joined, ab5tract joined 11:15 TempIRCLogger left 11:37 squashable6 left 11:40 squashable6 joined 11:42 squashable6 left 11:49 Altai-man joined 12:02 TempIRCLogger joined 12:03 reportable6 left 12:04 reportable6 joined 12:31 TempIRCLogger left, TempIRCLogger joined 12:35 TempIRCLogger left, TempIRCLogger joined 12:44 squashable6 joined 12:48 ab5tract left 12:52 [Coke] left 12:59 [Coke] joined 13:13 TempIRCLogger left, TempIRCLogger joined 13:18 TempIRCLogger left, TempIRCLogger joined 13:36 lizmat_ joined 13:37 frost left, [Coke] left 13:38 TempIRCLogger left, lizmat left 13:40 [Coke] joined 13:45 ab5tract joined 13:51 lizmat_ left, lizmat joined 13:52 quotable6 joined 13:54 TempIRCLogger__ joined, TempIRCLogger__ left 13:58 TempIRCLogger joined 14:00 TempIRCLogger left 14:01 TempIRCLogger joined 14:03 TempIRCLogger left, TempIRCLogger joined
lizmat m: my Int $a; $a := True; say $a # this feels counter-intuitive :-) 14:05
camelia True
14:08 TempIRCLogger left, TempIRCLogger joined 14:10 TempIRCLogger left, TempIRCLogger joined
nine But correct, since Enums are Ints 14:11
after all: 14:12
m: say True + True
camelia 2
14:14 TempIRCLogger left, TempIRCLogger joined 14:32 TempIRCLogger__ joined, lizmat_ joined 14:34 TempIRCLogger left, lizmat left 14:35 lizmat_ left, lizmat joined 14:46 TempIRCLogger__ left 14:47 TempIRCLogger joined 15:38 Geth left, Geth joined 15:40 TempIRCLogger left, TempIRCLogger joined 16:26 Altai-man left
ab5tract still might be considered LTA that it isn't coerced to the Int-y side of things 16:27
m: my Int $a; $a := True; put $a
camelia True
ab5tract (thought it might be related to say calling .gist) 16:28
m: my Int $a; $a := True; dd $a
camelia Bool::True
ab5tract appears to be consistent :)
16:29 Altai-man joined 17:33 ab5tract left 18:02 reportable6 left 18:20 Altai-man left 19:04 reportable6 joined
lizmat so I have a role that exports an infix:<eqv> candidate 20:45
how can I have a class consuming that role (in another file) have that export as well?
case in point: IRC::Log the role exporting an IRC::Log::Entry version of eqv 20:46
and wanting IRC::Log::Colabti to automatically export that as well
alternately, do we have a way to stick something in the EXPORT of a consuming class from the code of a role? 21:12
Geth DBIish/rbt.complex-types: 06c955ba6d | (Rod Taylor)++ | 9 files
Restructure type conversions

Allow for 2-way registered conversions. From Raku objects to a format suitable for the database (this was hardcoded for Buf already) in addition to the previously registerable conversions from DB to Raku (Bool, DateTime, Buf).
Allow registration of conversion via register-type-conversion() function calls. This hides the internal implementation which will probably change at some point.
The pg_custom_type.p6 file contains a sample Raku Point(:$x, :$y) object to a Pg "point" type in both directions.
21:13
21:14 Geth left, Geth joined 22:55 MasterDuke left 22:56 summerisle is now known as eof 23:50 pussies_slayer_9 joined
pussies_slayer_9 I found a oneliner where perl excels in comparison to raku 23:51
perl -e 'my $str .= "$_\n" for 0..300000;'  0.02s user 0.00s system 3% cpu 0.697 total
raku -e 'my $str ~= "$_\n" for ^300000;'  2.47s user 2.37s system 100% cpu 4.796 total
100x difference 23:52
raku totally obliterated 23:53
one would think that perl is just reallocing the $str buffer while raku is copying it over and over to a new one 23:56
perl -e 'my $int += $_ for 0..300000;'  0.02s user 0.00s system 89% cpu 0.020 total 23:59
raku -e 'my $int += $_ for 0..300000;'  0.26s user 0.05s system 115% cpu 0.263 total
10x slower