🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
[Coke] .ask jj can we close doc#3644 - rakudoc is out there and installable, and we've not been called p6doc for ages. 00:00
tellable6 [Coke], I haven't seen jj around, did you mean cj?
00:01 linkable6 left, sono_ joined 00:02 linkable6 joined, reportable6 left 00:04 reportable6 joined, sono left 00:07 neshpion joined 00:12 m6502 left 00:17 melezhik left 00:23 nine left, nine joined 01:23 committable6 left, squashable6 left, reportable6 left, bisectable6 left, statisfiable6 left, quotable6 left, shareable6 left, bloatable6 left, unicodable6 left, evalable6 left, coverable6 left, benchable6 left, sourceable6 left, tellable6 left, notable6 left, nativecallable6 left, linkable6 left, releasable6 left, greppable6 left 01:24 nativecallable6 joined, shareable6 joined, squashable6 joined 01:25 reportable6 joined, linkable6 joined, greppable6 joined, releasable6 joined, bisectable6 joined, committable6 joined, monkey_ joined, quotable6 joined, statisfiable6 joined 01:26 benchable6 joined, tellable6 joined, notable6 joined, sourceable6 joined, bloatable6 joined, evalable6 joined 01:27 unicodable6 joined, coverable6 joined 01:41 RandalSchwartz left 01:42 monkey_ left 01:43 monkey_ left 01:49 monkey_ joined 01:54 monkey_ left 01:56 monkey_ joined 01:57 Xliff joined 02:31 monkey_ left 02:49 discord-raku-bot left 02:50 discord-raku-bot joined 03:26 notzmv left 04:21 frost joined 04:59 Eddward joined 05:00 Doc_Holliwood joined 05:34 Eddward left 05:41 jmcgnh left 05:44 jmcgnh joined, ufobat joined 06:02 reportable6 left 06:04 reportable6 joined 07:04 evalable6 left, linkable6 left 07:06 linkable6 joined 07:07 evalable6 joined 07:17 Doc_Holliwood left 07:19 perlbot left 07:20 simcop2387 left 07:32 simcop2387 joined, perlbot joined 07:33 Xliff left 07:34 adrian9971 joined 07:35 adrian9971 left 07:44 m6locks left 07:53 dakkar joined, patrickb joined 08:04 dakkar left, dakkar_ joined 08:06 linkable6 left 08:07 linkable6 joined 08:15 patrickb left 08:16 patrickb joined 08:24 neshpion left 08:36 Sgeo left 09:05 zacts joined 09:08 dakkar_ is now known as dakkar 09:16 zacts left 10:05 jdporter joined 10:06 Doc_Holliwood joined 10:21 jdporter left
Geth Raku-Steering-Council/main: f19dc50ade | (Elizabeth Mattijsen)++ | announcements/20210624.md
24 June 2021 update on Raku Steering Council status
10:24
lizmat aka: github.com/Raku/Raku-Steering-Coun...0210624.md
11:17 Doc_Holliwood left 11:23 discord-raku-bot left 11:24 sono_ left 11:32 discord-raku-bot joined
gfldex Discrod bridge test. 11:33
lizmat
.oO( don't let lightning strike! )
11:35
gfldex Discrod bridge test.
:-/ still ends up in the wrong Discord server. 11:36
lizmat meh
Altreus definitely not an API::Discord problem ... probably maybe
11:37 discord-raku-bot left 11:39 valentinus joined, valentinus left, discord-raku-bot joined
gfldex Discrod bridge test. (Or I start crying!) 11:40
OK, It helps to kill the right process. What a relief!
You lot need to be civil now, the young folk over on Discord can hear what you say! 11:41
lizmat welcome Discord folks! 11:42
11:42 valentinus joined, valentinus left 11:44 valentinus joined
Altreus So we still haven't entirely resolved the issue where the heartbeat stops but there is no disconnection 11:45
jnthn helped us out and we thought it was gone
But there appears to be some sort of edge case where, eventually, it just stops receiving events
more bots = more data
maybe we'll figure it out
gfldex I have a PR up to start cleaning up debugging. I would like to have a build in web server to be able to dig around in data structures at runtime. 11:47
Altreus kane showed me a PR last night but I'd already given up and gone to bed 11:51
I'm hoping to have the time and energy to actually do my stream tonight and I might as well start with that
kawaii_ someone said my name 11:52
Altreus na 11:53
nobody here
11:53 valentinus left 11:54 ufobat left, ufobat joined
kawaii_ gfldex: your PR goes a long way to helping us clean up the log output which has been on our list of things for a while now, but the number of things you chose to hide from the output is a little heavy handed imo, such as hiding when disconnects and reconnects happen - which seems like something a bot developer would want a record of without having debug logging active 11:57
for sure though the heartbeats themselves should be hidden away :) 11:58
Altreus yeah those things are still on because see above, but having a simple switch to turn it off seems good 11:59
kawaii_ an internal webserver when debug mode is on sounds handy though 12:01
but we shouldn't clutter this channel with discussion about our module :P
12:02 reportable6 left 12:03 reportable6 joined
gfldex It's very easy to switch them on. Once you do you can .wrap the two functions and do some filtering. 12:07
Altreus jnthn suggested using Log::Timeline but I've not managed to construct sufficient understanding 12:13
12:20 Doc_Holliwood joined 12:47 juanfra left 12:54 Doc_Holliwood left 13:05 RakuIRCLogger left 13:07 RakuIRCLogger joined 13:18 patrickb left 13:26 b2gills left 13:47 b2gills joined 13:49 b2gills left, RandalSchwartz joined 14:14 Eddward joined 14:26 chronon left 14:33 _ed joined 14:40 Doc_Holliwood joined 15:03 Sgeo joined 15:13 melezhik joined
melezhik . 15:13
15:13 juanfra joined
Altreus , 15:25
_ed ; 15:33
15:35 PotatoGim left, GreaseMonkey left, dustinm` left, sivoais left, tonyo left, charsbar left, jcallen left, Scotteh left, renormalist left, El_Che left, tadzik left, greaser|q joined, charsbar joined, sivoais joined, El_Che joined, jcallen joined, Doc_Holliwood left 15:36 dustinm` joined, PotatoGim_ joined, tadzik joined 15:37 Scotteh joined 15:40 tonyo joined 15:42 _ed left 15:51 patrickb joined 16:02 littlebenlittle[ joined
tbrowder howdy 16:11
m: my $a=1.02e-4; say $a.Real 16:12
camelia 0.000102
tbrowder m: my $a=1.02e-5; say $a.Real 16:15
camelia 1.02e-05
tbrowder is there any way to coerce $a above into showing more than 6 decimal places without a formatting object? 16:16
m: my $a=0.0000007 16:17
camelia ( no output )
tbrowder m: my $a=0.0000007; say $a 16:18
camelia 0.0000007
tbrowder m: my $a=7e-7; say $a 16:19
camelia 7e-07
tbrowder m: my $a=7e-7; say $a.Real 16:20
camelia 7e-07
tbrowder the answer: 16:26
m: my $a=1.02e-8; say $a.base(10,*); 16:27
camelia 0.00000001
tbrowder hm, not the answer...lost the last 2 digits 16:28
16:28 tadzik left, tadzik joined
tbrowder m: say pi.base(10,*) 16:29
camelia 3.14159265
tbrowder m: say pi.base(10,50):0; 16:30
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say pi.base(10,50):7⏏050;
expecting any of:
colon pair
16:31 dakkar left
tbrowder m: say pi.base(10,20); 16:31
camelia 3.14159265358979311600
tbrowder m: my $a=1.02e-9; say $a.base(10,20) 16:32
camelia 0.00000000102000000000
16:32 _ed joined 16:37 _ed left
moon-child tbrowder: somebody hacked something with MONKEY-TYPING, I think; it was in a github issue somewhere 16:37
tbrowder thnx, i'll check irc logs 16:38
moon-child m: use MONKEY-TYPING; augment class Num { multi method gist(Num:D: --> Str) { self.base(10, 20); } }; say 1.02e-6;
camelia 0.00000102000000000000
16:41 ufobat left
tbrowder ok, thnx! 16:54
16:56 neula joined
moon-child (aside: it occurs to me that you can use monkey typing to implement typeclasses properly) 16:57
(hmm, no, not properly. You could have name conflicts. I don't think there's a way around that)
17:06 _ed joined 17:10 _ed left
littlebenlittle[ How do you properly dispatch to an inherited method? Is it something like `class A { method f() { 0 } }; class B is A { method f() { self.A::f() + 1 } }` 17:18
gfldex m: class A { method m { say 'A' } }; class B is A { method m { self.A::m() } }; B.new.m; 17:21
camelia A
guifa yup .Parent::method() <-- must use parenthetical too IIRC 17:22
littlebenlittle[ Hm, okay then I need to dig deeper. Thanks
17:24 Eddward left
moon-child easier, more general solution: 17:24
m: class A { method m { say 'A' } }; class B is A { method m { callwith } }; B.new.m;
camelia A
17:53 _ed joined 17:58 _ed left 18:02 reportable6 left 18:04 reportable6 joined 18:09 _ed joined 18:16 Doc_Holliwood joined 18:32 _ed left 18:36 greaser|q left, greaser|q joined, _ed joined, greaser|q is now known as GreaseMonkey 18:41 _ed left 18:52 _ed joined 18:56 dvergin joined 18:58 _ed left 18:59 dvergin left 19:01 _ed joined 19:09 neshpion joined 19:20 Od1n joined
Od1n hello 19:20
19:28 _ed left 19:35 ufobat joined
gfldex lolibloggedalittle: gfldex.wordpress.com/2021/06/24/typed-filters/ 19:49
m: say „Hello Od1n!“; 19:50
camelia Hello Od1n!
19:55 melezhik left 19:58 _ed joined 20:12 _ed left 20:14 _ed joined 20:21 _ed left, patrickb left 20:23 Eddward joined 20:27 _ed joined 20:31 _ed left 20:49 _ed joined 20:53 _ed left
raydiak gfldex++ I like your blog 21:02
(even though every time I look at it I can't stop staring at the extra space character in the title)
21:03 ufobat left 21:32 tejr left 21:33 Eddward left 21:37 tejr joined 21:38 _ed joined 21:42 _ed left
tbrowder hi, need some expert help for creating a test 21:43
i have a string list of method names for numbers and want to add them to a () something like this: 21:45
($value).$method <== i want this to execute as (value.method) 21:48
or (value).method
21:49 Doc_Holliwould joined
MasterDuke $value."$method" 21:49
raydiak need the parens too for that form 21:50
tbrowder thnx...will report back soon
21:52 Doc_Holliwood left
raydiak m: my $m = 'say'; 'foo'."$m"() # the calling parens, I mean. parens around the invocant in your question are optional if I understand what you're asking correctly 21:52
camelia foo
21:55 neula left
tbrowder yes, and i'm getting close, but not quit there yet. in yr example i want to do this 21:59
:m (1.25).Int 22:00
ugexe m: say (1.25)."Int"()
camelia 1
tbrowder yes 22:01
m: my $val = 1.25; say $val."Int"() 22:02
camelia 1
moon-child note also that if it doesn't have to be a string, you can just 22:06
m: my $method = Int; say 1.25.$method
camelia 1
22:09 Eddward joined
tbrowder ok, let me try another... 22:10
m: class f {method foo {say 1}}; my $f = f.new; my $meth = foo; say $f.$meth 22:13
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
foo used at line 1
ugexe my $meth = "foo"
tbrowder m: class f {method foo {say 1}}; my $f = f.new; my $m = "foo"; say $f.$meth 22:15
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$meth' is not declared
at <tmp>:1
------> 3}; my $f = f.new; my $m = "foo"; say $f.7⏏5$meth
moon-child m: class F {}; my method foo { say 1 }; my $meth = &foo; say F.new.$meth; 22:16
camelia 1
True
moon-child err, that should be
m: class F {}; my method foo(F:) { say 1 }; my $meth = &foo; say F.new.$meth;
camelia 1
True
raydiak m: class f {our method foo {say 1}}; my $f = f.new; my $meth = f::<&foo>; say $f.$meth # or our-scope the method inside the package 22:17
camelia 1
True
moon-child oh yea that's definitely better
tbrowder m: class f {method foo {say 1}} ; my $f = f.new; my $meth = "foo"; say $f.$meth 22:19
camelia No such method 'CALL-ME' for invocant of type 'Str'
in block <unit> at <tmp> line 1
22:19 Eddward left, Doc_Holliwould left, jcallen left, PotatoGim_ left, GreaseMonkey left, juanfra left, linkable6 left, simcop2387 left, frost left, sourceable6 left, tellable6 left, statisfiable6 left, bisectable6 left, releasable6 left, greppable6 left, shareable6 left, nine left, timo left, sftp left, samebchase left, tejr left, neshpion left, Scotteh left, tadzik left, charsbar left, Sgeo left, discord-raku-bot left, perlbot left, gordonfish left, raydiak left, synthmeat left, silug left, tonyo left, El_Che left, RandalSchwartz left, jmcgnh left, smarton left, jast left, dogbert17 left, xinming left, a3r0_ left, Voldenet left, Kaiepi left, Manifest0 left, cognominal left, MasterDuke left, reportable6 left, sivoais left, evalable6 left, coverable6 left, unicodable6 left, bloatable6 left, notable6 left, benchable6 left, quotable6 left, committable6 left, squashable6 left, nativecallable6 left, lucerne left, Od1n left, guifa left, lizmat left, LizBot_ left, [Coke] left, solitario left, tyil left, Henry151 left, leah2 left, jrjsmrtn left, vodkra left, rypervenche left, leedo left, littlebenlittle[ left, peder left, dg left, jdv left, Ulti left, andinus left, gabiruh_ left, daxim left, avuserow left, tobs left, Woodi left, _________ left, xkr47 left, markmarkmark left, kjp left, tinita left, JRaspass left, polettix left, camelia left, ComplYue[m] left, AlexDaniel left, cnx left, nebuchadnezzar left, doconthe1ocks left, lucs left, jjatria left, bartolin_ left, pierrot left, phogg left, pounce left, pjlsergeant left, dpk left, esh_ left, gfldex left, eseyman left, jercos left, Ekho left, broquain1 left, domm left, patterner_ left, rba left, CIAvash left, tyil[m] left, demostanis[m] left, bdju left, kybr left, kawaii_ left, dcx left, m_athias left, Altreus left, moritz left, Geth left, skaji left, cooper left, corwin left, colomon left, ingy left, sgrs left, eof left, rjbs left, ptc left, ugexe left, ilogger2 left, leont left, SmokeMachine left, moon-child left, samcv left, perlmaros left, goblin left, sjn left, elcaro left, Juerd left, vrurg left, swaggboi left, Maylay left, ecocode_ left, Grrrr left, DarthGandalf left, greyrat left, zostay left, masak left, tbrowder left, KotH left, gugod left, BinGOs left, mtj left
moon-child whelp, byee 22:20
22:20 Tirifto left, raydiak_ joined 22:21 leedo joined, rypervenche joined, vodkra joined, jrjsmrtn joined, leah2 joined, daxim joined, avuserow joined, gabiruh_ joined, andinus joined, Ulti joined, jdv joined, dg joined, peder joined, littlebenlittle[ joined, mtj joined, BinGOs joined, gugod joined, KotH joined, tbrowder joined, zostay joined, masak joined, DarthGandalf joined, Grrrr joined, greyrat joined, ecocode_ joined, Maylay joined, swaggboi joined, vrurg joined, tonyo joined, Scotteh joined, tadzik joined, El_Che joined, charsbar joined, Sgeo joined, RandalSchwartz joined, discord-raku-bot joined, perlbot joined, jmcgnh joined, smarton joined, jast joined, dogbert17 joined, gordonfish joined, xinming joined, raydiak joined, a3r0_ joined, Voldenet joined, Kaiepi joined, synthmeat joined, Manifest0 joined, silug joined, cognominal joined, tejr joined, neshpion joined 22:22 neshpion joined, tejr joined, cognominal joined, silug joined, Manifest0 joined, synthmeat joined, Kaiepi joined, Voldenet joined, a3r0_ joined, raydiak joined, xinming joined, gordonfish joined, dogbert17 joined, jast joined, smarton joined, jmcgnh joined, perlbot joined, discord-raku-bot joined, RandalSchwartz joined, Sgeo joined, charsbar joined, El_Che joined, tadzik joined, Scotteh joined, tonyo joined, Juerd joined, elcaro joined, sjn joined, goblin joined, perlmaros joined, samcv joined, moon-child joined, SmokeMachine joined, leont joined, ilogger2 joined, leedo joined, rypervenche joined, vodkra joined, jrjsmrtn joined, leah2 joined, daxim joined, avuserow joined, gabiruh_ joined, andinus joined, Ulti joined, jdv joined, dg joined, peder joined, littlebenlittle[ joined, mtj joined, BinGOs joined, gugod joined, KotH joined, tbrowder joined, zostay joined, masak joined, DarthGandalf joined, Grrrr joined, greyrat joined, ecocode_ joined, Maylay joined, swaggboi joined, vrurg joined, jcallen joined, GreaseMonkey joined, juanfra joined, linkable6 joined, simcop2387 joined, frost joined, sourceable6 joined, tellable6 joined, statisfiable6 joined, bisectable6 joined, releasable6 joined, greppable6 joined, shareable6 joined, nine joined, timo joined, sftp joined, samebchase joined, dpk joined, esh_ joined, gfldex joined, eseyman joined, jercos joined, Ekho joined, broquain1 joined, domm joined, patterner_ joined, rba joined, raydiak_ left, MasterDuke joined
raydiak big split... 22:22
big split... 22:23
22:23 Od1n joined, reportable6 joined, sivoais joined, evalable6 joined, coverable6 joined, unicodable6 joined, bloatable6 joined, notable6 joined, benchable6 joined, quotable6 joined, committable6 joined, squashable6 joined, nativecallable6 joined, lucerne joined, guifa joined, lizmat joined, LizBot_ joined, [Coke] joined, solitario joined, tyil joined, Henry151 joined, camelia joined, ComplYue[m] joined, cnx joined, AlexDaniel joined, nebuchadnezzar joined, doconthe1ocks joined, lucs joined, jjatria joined, bartolin_ joined, pierrot joined, phogg joined, pounce joined, pjlsergeant joined
raydiak m: class f {method foo {say 1}}; my $f = f.new; my $meth = "foo"; say $f."$meth"() # if you use strings, you still have to do it with the quotes and the parens 22:23
22:23 gordonfish left
raydiak oh right, bots aren't back yet 22:23
22:23 littlebenlittle[ left, corwin joined, colomon joined, ingy joined, sgrs joined, eof joined, rjbs joined, ptc joined, ugexe joined, CIAvash joined, tyil[m] joined, demostanis[m] joined, bdju joined, kybr joined, kawaii_ joined, dcx joined, m_athias joined, Altreus joined, moritz joined, Geth joined, skaji joined, cooper joined
camelia 1
True
22:23
22:24 lucerne left
raydiak heh, thanks camelia++ :) 22:24
22:24 gordonfish joined, tobs joined, Woodi joined, _________ joined, xkr47 joined, markmarkmark joined, kjp joined, tinita joined, JRaspass joined, polettix joined 22:25 PotatoGim_ joined, Tirifto joined, Eddward joined, _ed joined 22:27 rassoc joined 22:28 juanfra left, CIAvash left, demostanis[m] left, ComplYue[m] left, AlexDaniel left, cnx left
tbrowder ok, got it working in my test, lets see if i can demo...slowly now... 22:29
22:29 _ed left
tbrowder m: class f is Num { method foo {self.Int}}; my $f = f.new(1.25); my $meth = "foo"; say $f."$meth"() 22:34
camelia 1
tbrowder MasterDuke: thnx
raydiak: thnx
ugexe: thnx
moon-child: thnx 22:35
weird stuff, but Raku can do anything!!!
moon-child anything can do anything! Welcome to turing equivalence :)
raydiak for some value of "anything". I like the Raku version of that a lot more than, say, Brainfuck... 22:37
moon-child watch for my raku implementation written in brainfuck 22:38
22:38 gabiruh_ left
raydiak I'll let my grandchildren know to keep an eye on your progress :D 22:39
22:43 _ed joined 22:48 _ed left 23:09 rassoc left 23:30 _ed joined 23:34 _ed left 23:46 _ed joined 23:51 _ed left