🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 8 June 2022.
00:07 reportable6 left 00:10 reportable6 joined 00:29 ProperN[out] joined 00:30 ProperNoun left 00:43 lichtkind left 01:59 frost joined 02:30 chikega joined 02:38 Garbanzo left 02:39 Garbanzo joined 03:35 chikega left 03:37 chikega joined 03:38 Guest93 joined, Guest93 left 03:57 chikega left 04:57 bisectable6 left, reportable6 left, notable6 left, greppable6 left, quotable6 left, sourceable6 left, benchable6 left, tellable6 left, evalable6 left, committable6 left, coverable6 left, releasable6 left, bloatable6 left, statisfiable6 left, nativecallable6 left, linkable6 left, unicodable6 left, shareable6 left 04:58 quotable6 joined, linkable6 joined, nativecallable6 joined, evalable6 joined, releasable6 joined, shareable6 joined, unicodable6 joined, greppable6 joined, notable6 joined 04:59 bloatable6 joined, sourceable6 joined, reportable6 joined, tellable6 joined, benchable6 joined, bisectable6 joined 05:00 Sankalp left, statisfiable6 joined, committable6 joined, coverable6 joined 05:02 Sankalp joined 05:13 Neuron joined
Neuron Hello, where would I find Hash.raku() implementation? 05:18
On sparc (bit endian machine) it says negative numbers (like (\Hash_-2538074464 = {a => 42, b => Hash_-2538074464}) which breaks spectest 05:19
05:36 Garbanzo left
Voldenet Neuron: nqp::objectid github.com/MoarVM/MoarVM/blob/d11b...ectid.c#L5 05:47
m: my %h; %h = :42a, :b(%h); use nqp; say nqp::objectid(%h); say %h
camelia 5652383101248
(\Hash_5652383101248 = {a => 42, b => Hash_5652383101248})
Neuron Voldenet, thank you! 05:48
Voldenet though it's more convoluted 05:49
05:49 Neuron left
Voldenet Neuron: github.com/rakudo/rakudo/blob/51c0...t.pm6#L249 github.com/rakudo/rakudo/blob/1c04...u.pm6#L900 05:50
tellable6 Voldenet, I'll pass your message to Neuron
06:07 reportable6 left
Nemokosch For the SO questions: yes, common sense helps with the numbers; the number format itself much less so 06:09
06:10 reportable6 joined
For me, the comma indicates a decimal fraction so ironically enough, this number format is rather exclusive from my perspective 06:12
Add the rather bizarre "thousand K" instead of "one M" and bang, confusion arises 06:14
07:10 evalable6 left, linkable6 left, linkable6 joined 07:11 lichtkind joined 07:12 evalable6 joined 08:29 sourceable6 left, nativecallable6 left, releasable6 left, greppable6 left, bisectable6 left, reportable6 left, linkable6 left, evalable6 left, tellable6 left, bloatable6 left, coverable6 left, committable6 left, notable6 left, shareable6 left, benchable6 left, statisfiable6 left, unicodable6 left, quotable6 left 08:30 statisfiable6 joined, greppable6 joined, linkable6 joined, benchable6 joined, notable6 joined 08:31 reportable6 joined, shareable6 joined, nativecallable6 joined, evalable6 joined, committable6 joined, bisectable6 joined 08:32 coverable6 joined, releasable6 joined, sourceable6 joined, unicodable6 joined, bloatable6 joined 08:33 tellable6 joined, quotable6 joined 09:18 Sgeo left, jaguart joined 10:18 bloatable6 left, statisfiable6 left, sourceable6 left, tellable6 left, quotable6 left, linkable6 left, bisectable6 left, shareable6 left, releasable6 left, notable6 left, coverable6 left, greppable6 left, unicodable6 left, nativecallable6 left, benchable6 left, evalable6 left, committable6 left, reportable6 left 10:19 sourceable6 joined, greppable6 joined, coverable6 joined, benchable6 joined, bisectable6 joined, statisfiable6 joined, quotable6 joined 10:20 evalable6 joined, bloatable6 joined, shareable6 joined, linkable6 joined, committable6 joined, tellable6 joined 10:21 reportable6 joined, nativecallable6 joined, notable6 joined, releasable6 joined, unicodable6 joined 10:51 Xliff joined, Xliff left, Xliff joined
Xliff Hi ho! 10:51
Can I dynamically add a parent to a given class via the HOW? 10:52
m: class A { method a { 42.say}; }; class B { }; B.^add-parent(A); B.a.say; 10:53
camelia No such method 'add-parent' for invocant of type
in block <unit> at <tmp> line 1
Xliff m: class A { method a { 42.say}; }; class B { }; B.^add_parent(A); B.a.say;
camelia Parents cannot be added to class 'B'after it has been composed
in block <unit> at <tmp> line 1
Xliff m: class A { method a { 42.say}; }; class B { }; use MONKEY-TYPING; augment class B { also is A }; B.a.say; 10:55
camelia ===SORRY!=== Error while compiling <tmp>
Parents cannot be added to class 'B'after it has been composed
at <tmp>:1
Xliff :(
m: class A { method a { 42.say}; }; my $x = Metamodel::ClassHOW.new_type( name => 'MyCustomB' ); $x.^add_parent(A); $x.^compose; $x.new.a.say' 10:59
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> add_parent(A); $x.^compose; $x.new.a.say⏏'
expecting any of:
infix stopper
statement end
statement …
Xliff m: class A { method a { 42.say}; }; my $x = Metamodel::ClassHOW.new_type( name => 'MyCustomB' ); $x.^add_parent(A); $x.^compose; $x.new.a.say
camelia 42
Xliff m: class A { method a { 42.say}; }; my $x = Metamodel::ClassHOW.new_type( name => 'MyCustomB' ); $x.^add_parent(A); $x.^compose; $x.new.a 11:00
camelia 42
Xliff m: class A { method a { 42.say}; }; my $x = Metamodel::ClassHOW.new_type( name => 'MyCustomB' ); $x.^add_parent(A); $x.^compose; $x.new.a; $x.^name.say
camelia 42
Xliff Well, that's progress. Would love it if you could do it to previously composed classes, or could take a composed class and make a new uncomposed type from it. 11:01
At any rate... Happy Caturday.
Voldenet you don't need Metamodel::ClassHOW 11:14
m: class A { method a { 42.say}; }; my $x = .HOW.new_type( name => "MyCustomB" ); $x.^add_parent(A); $x.^compose; $x.new.a; $x.^name.say
camelia 42
Voldenet Any.HOW sounds pretty nice too 11:15
11:30 lichtkind_ joined 11:32 lichtkind left 11:38 Xliff left 11:56 Xliff joined 12:07 reportable6 left 12:08 reportable6 joined 13:05 jgaz joined 13:21 frost left 13:23 Woodi left 13:26 Woodi joined
xinming releasable6: status 14:20
releasable6 xinming, Next release in ≈34 days and ≈4 hours. There are no known blockers. 0 out of 23 commits logged (⚠ 89 warnings)
xinming, Details: gist.github.com/aaa1503f71faf9d78f...f36a37bcf3
xinming we have 1 release every 2 months now, right? 14:21
14:27 jgaz left 15:33 Kaiepi left, Kaiepi joined 16:33 sourceable6 left, greppable6 left, notable6 left, reportable6 left, coverable6 left, quotable6 left, committable6 left, nativecallable6 left, unicodable6 left, shareable6 left, tellable6 left, statisfiable6 left, bloatable6 left, bisectable6 left, evalable6 left, releasable6 left, benchable6 left, linkable6 left, statisfiable6 joined, linkable6 joined 16:34 benchable6 joined, tellable6 joined, quotable6 joined, releasable6 joined, shareable6 joined, unicodable6 joined, sourceable6 joined, committable6 joined 16:35 coverable6 joined, evalable6 joined, nativecallable6 joined 16:36 bisectable6 joined, notable6 joined, bloatable6 joined, greppable6 joined, reportable6 joined 16:44 Garbanzo joined 16:59 sena_kun left 17:00 sena_kun joined 17:24 [Coke] left 17:28 [Coke] joined 17:49 clarjon1 joined, clarjon1 left, clarjon1 joined 17:52 clarjon1 left 17:53 clarjon1 joined 17:55 clarjon1 left, clarjon1 joined 18:01 clarjon1 left 18:02 clarjon1 joined 18:04 clarjon1 left, clarjon1 joined 18:05 reportable6 left 18:06 reportable6 joined 18:07 clarjon1 left 18:08 clarjon1 joined 18:09 clarjon1 left 18:17 jaguart left 19:11 clarjon1 joined 19:55 Sgeo joined 20:07 Kaipei joined 20:10 Kaiepi left 20:18 Kaipei left 20:43 Kaipei joined 20:59 discord-raku-bot left, discord-raku-bot joined 21:13 Kaipei left 21:28 lichtkind_ left 21:29 lichtkind joined 22:29 committable6 left, greppable6 left, quotable6 left, unicodable6 left, statisfiable6 left, tellable6 left, shareable6 left, reportable6 left, benchable6 left, sourceable6 left, nativecallable6 left, coverable6 left, linkable6 left, releasable6 left, bisectable6 left, evalable6 left, bloatable6 left, notable6 left, unicodable6 joined, releasable6 joined, sourceable6 joined, linkable6 joined, evalable6 joined, quotable6 joined, bloatable6 joined, benchable6 joined 22:30 notable6 joined, greppable6 joined, bisectable6 joined, committable6 joined, statisfiable6 joined, coverable6 joined 22:31 shareable6 joined, reportable6 joined, nativecallable6 joined, tellable6 joined 22:37 jgaz joined 23:03 Xliff left 23:04 discord-raku-bot left 23:05 discord-raku-bot joined 23:32 Colere joined 23:40 jgaz left