🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). 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 6 September 2022.
00:00 reportable6 left 00:01 reportable6 joined, lichtkind_ left 00:17 tejr left 00:22 tejr joined
jaguart anyone have any examples of Role introspection? 00:26
for example, the list of `does` that a Role will instroduce, or the list of Methods it will compose into a class?
01:04 xinming left 01:05 xinming joined 01:15 sftp joined 01:17 ProperNoun left 02:17 coverable6 left, committable6 left, linkable6 left, releasable6 left, greppable6 left, evalable6 left, squashable6 left, bisectable6 left, bloatable6 left, tellable6 left, notable6 left, sourceable6 left, statisfiable6 left, reportable6 left, quotable6 left, nativecallable6 left, shareable6 left, unicodable6 left, benchable6 left, benchable6 joined, nativecallable6 joined, quotable6 joined, coverable6 joined 02:18 bisectable6 joined, evalable6 joined, shareable6 joined, linkable6 joined, tellable6 joined, releasable6 joined, greppable6 joined, squashable6 joined 02:19 unicodable6 joined, sourceable6 joined, notable6 joined 02:20 statisfiable6 joined, committable6 joined, reportable6 joined, bloatable6 joined 02:28 razetime joined 02:30 nine left, m_athias left, nine joined 02:31 m_athias joined 02:50 Kaiepi left 03:50 linkable6 left, coverable6 left, releasable6 left, tellable6 left, quotable6 left, squashable6 left, committable6 left, nativecallable6 left, unicodable6 left, evalable6 left, statisfiable6 left, shareable6 left, benchable6 left, bisectable6 left, notable6 left, greppable6 left, sourceable6 left, reportable6 left, bloatable6 left, benchable6 joined 03:51 nativecallable6 joined, releasable6 joined, squashable6 joined, statisfiable6 joined, tellable6 joined, quotable6 joined, greppable6 joined, bloatable6 joined, shareable6 joined, bisectable6 joined, coverable6 joined 03:52 linkable6 joined, notable6 joined, reportable6 joined, committable6 joined, sourceable6 joined 03:53 unicodable6 joined, evalable6 joined
MasterDuke m: say Encoding.^methods 03:54
camelia (name alternative-names encoder decoder)
MasterDuke but it's not 100% for all the built-in roles, (at least sometimes) due to chicken-and-egg problems with building the core 03:55
04:01 grondilu joined
jaguart m: role R { multi method x () { say <x> } };R.^methods 04:23
camelia ( no output )
jaguart m: class R { multi method x () { say <x> } };R.^methods
camelia ( no output )
04:24 grondilu left
[Coke] you need a say 04:28
jaguart m: class R { multi method x () { say <x> } };.say for R.^methods
camelia x
BUILDALL
jaguart m: role R { multi method x () { say <x> } };.say for R.^methods
camelia ( no output )
MasterDuke m: role R { method x () { say <x> } }; .say for R.^methods 04:30
camelia x
MasterDuke huh
jaguart multi methods
works for classes but not for roles
m: role R { multi method x () { say <x> } }; .say for R.^candidates.map({ $_.^multi_methods_to_incorporate.map({.code}) })
camelia (x) 04:31
MasterDuke i wonder if that's specced...
might be worth a rakudo issue
but i am off to sleep
[Coke] day 21 has a typo: For this task, Raku has most of the funtions built-in, so nothing to be invented. 04:44
04:45 irc_user joined 04:55 discord-raku-bot left 04:58 discord-raku-bot joined 05:06 discord-raku-bot left 05:12 razetime left 05:20 discord-raku-bot joined 06:00 reportable6 left 06:02 reportable6 joined
jaguart havent tracked it down, but $o.^method_table is sometimes returning a BOOTHash - any suggests for how to decode? 06:38
this is from $o.HOW.^name ===> Perl6::Metamodel::ClassHOW 06:41
06:55 irc_user left
jaguart ah: ``%m = `` converts a BOOTHash into a devland hash. 06:57
07:24 razetime joined 07:49 Sgeo left 08:23 abraxxa joined 08:28 abraxxa left, abraxxa joined 09:04 Kaiepi joined 09:16 dakkar joined 09:23 xinming left 09:25 xinming joined 09:31 dakkar left 09:36 dakkar joined 09:37 sena_kun joined 09:42 squashable6 left 09:44 squashable6 joined 09:45 jpn joined 09:57 Ven_de_Thiel joined
Ven_de_Thiel o/ 09:57
10:31 andinus left 10:36 mahafyi left 10:43 jpn left, jpn_ joined 10:47 sena_kun left 10:49 sena_kun joined 10:54 Ven_de_Thiel left 11:26 Matthew|m left, andrea[m] left 11:27 MitarashiDango[m left 11:28 tiziodcaio left, CIAvash left 11:29 Demos[m] left 11:33 tadzik left 11:35 jpn_ left 11:43 jpn joined 11:48 tiziodcaio joined 11:55 Matthew|m joined 12:00 reportable6 left 12:02 andrea[m] joined 12:03 reportable6 joined 12:08 CIAvash joined 12:24 mahafyi joined 12:26 MitarashiDango[m joined 12:36 Ven_de_Thiel joined 12:41 mahafyi left 12:43 tadzik joined 12:52 nine left, nine joined 12:53 discord-raku-bot left, discord-raku-bot joined, Demos[m] joined 13:11 lichtkind joined 13:17 jpn left 13:22 xinming left 13:23 xinming joined 13:32 razetime left 13:33 razetime joined 13:36 abraxxa left 13:44 jpn joined 13:48 xinming left, xinming joined
Nemokosch raku-advent.blog/2022/12/20/sigils/ by the way 14:15
why does number 2 repeat for all points made for sigils?
> 2. Sigils use semantically dense symbols
> 2. Sigils can be used quickly and easily
oh okay, not all, 3 comes after...
2, 2, 3 14:16
Anton Antonov It is most like just a type. 14:32
It is most like just a typo
Voldenet easter egg 14:37
14:42 jpn left 14:49 jpn joined
jdv i saw 2 typos in it. it was quite long. surprised i got through it:) 14:59
but fun 15:00
Nemokosch respect for that. I pretty much gave up around the Raku part 😄 15:10
Anton Antonov Hmm.... Easter eggs are for Easter, right? Maybe some Christmas deers or snowflakes are more relevant... 15:12
15:19 Sgeo joined 15:36 simcop2387 left, perlbot left
Voldenet easter eggs are more fun-sounding 15:39
15:40 perlbot joined 15:41 simcop2387 joined 16:06 Guest9088 joined, Guest9088 left 16:40 xinming left, xinming joined 16:46 razetime left 16:54 Ven_de_Thiel left
Anton Antonov @Voldenet Sure. ("Egg" sounds funny in many contexts.) I just uploaded a video with snowflake approximations: youtu.be/THNnofZEAn4 . 17:12
Voldenet wow, Jupyter::Kernel looks amazing 17:17
17:18 jpn left 17:19 jpn joined
Anton Antonov Yeah! 🙂 It is very underutilized by the Raku community (in my opinion...) 17:23
17:25 dakkar left
Voldenet I didn't know it existed until now 17:25
btw, Chart::Gnuplot is also the alternative 17:26
I'm not sure if it would work with jupyter ootb 17:27
17:41 xinming left, xinming joined 17:47 mahafyi joined
Anton Antonov @Voldenet Thanks for mentioning "Chart::Gnuplot" -- I did not encounter it when I was looking for charting / plotting options in Raku... 17:53
Voldenet the only pitfall is that Chart::Gnuplot brings its own version of gnuplot without pngcairo 18:00
18:00 reportable6 left
Voldenet but it helps a lot still 18:00
18:01 reportable6 joined 18:03 jpn left 18:40 epony left 18:44 xinming left 18:46 xinming joined
Anton Antonov @Voldenet I think at some I point I tried to install those on my mac computer, without success. 18:50
19:08 djerius left
Voldenet That makes sense, I use it on x86_64 debian 19:09
19:10 djerius joined 19:11 Maximus is now known as Sevalecan
Anton Antonov Good to know! 19:16
19:21 jpn joined 19:24 Manifest0 joined 19:30 sena_kun left 19:31 sena_kun joined 19:37 xinming left 19:38 xinming joined 19:59 mahafyi left 20:11 jpn left
[Coke] github.com/niner/Inline-Perl5/issues/181 - someone having trouble with I::P5 20:12
20:22 jpn joined 20:30 RandalSchwartz joined 20:32 RandalSchwartz left 20:54 jpn left 20:58 Kaiepi left 21:10 epony joined 21:14 xinming left, xinming joined
p6steve ++ Jupyter::Kernel 21:54
mybinder.org/v2/gh/p6steve/raku-Ph...pyter/HEAD 21:58
may need to give it a minute or so
MTree is quite seasonal 22:02
22:06 xinming left 22:08 xinming joined 22:23 Kaiepi joined 22:31 xinming left, xinming joined
moritz libera does wallops messages for major releases of open source projects. Maybe we can get the newest rakudo version announced that way? 22:35
23:18 Guest21 joined 23:19 codesections left 23:20 codesections joined
jaguart m: class C is rw { has $a is readonly; } 23:23
camelia Potential difficulties:
useless use of 'is readonly' on $!a
at <tmp>:1
------> class C is rw { has $a ⏏is readonly; }
jaguart As the class IS RW why is this useless?
oh - because private? 23:24
m: class C is rw { has $.a is readonly; }
camelia ( no output )
jaguart m: class C is rw { has $!a is readonly; }
camelia Potential difficulties:
useless use of 'is readonly' on $!a
at <tmp>:1
------> class C is rw { has $!a ⏏is readonly; }
jaguart though this doesn't really make sense because: 23:31
m: class C is rw { has $!a; }; .say for C.^attributes.map({ $_.name => $_.rw ?? 'read-write' !! 'readonly' })
camelia $!a => read-write
jaguart m: class C { has $!a; }; .say for C.^attributes.map({ $_.name => $_.rw ?? 'read-write' !! 'readonly' })
camelia $!a => readonly
jaguart m: class C is rw { has $!a is readonly; }; .say for C.^attributes.map({ $_.name => $_.rw ?? 'read-write' !! 'readonly' }) 23:32
camelia Potential difficulties:
useless use of 'is readonly' on $!a
at <tmp>:1
------> class C is rw { has $!a ⏏is readonly; }; .say for C.^attributes.
$!a => readonly
23:40 sena_kun left 23:42 lichtkind left 23:47 Guest21 left