šŸ¦‹ 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 01:01 sourceable6 left, shareable6 left, bisectable6 left, notable6 left, squashable6 left, linkable6 left, bloatable6 left, tellable6 left, quotable6 left, releasable6 left, committable6 left, statisfiable6 left, unicodable6 left, greppable6 left, evalable6 left, benchable6 left, coverable6 left, nativecallable6 left, reportable6 left, committable6 joined, statisfiable6 joined, quotable6 joined, benchable6 joined 01:02 releasable6 joined, bloatable6 joined, bisectable6 joined, sourceable6 joined, tellable6 joined, shareable6 joined 01:03 squashable6 joined, notable6 joined, greppable6 joined, reportable6 joined, nativecallable6 joined 01:04 unicodable6 joined, linkable6 joined, evalable6 joined, coverable6 joined
tonyo tbrowder__: that's alright, i'm using those older modules as test beds for fez 01:56
much appreciated though
02:03 teatime left, teatime joined
tonyo m: class ABC { has $!a; method AT-POS(Int:D $idx) { return-rw $!a }; }; my ABC $a .=new; $a[5] = 1; say $a[5]; # tbrowder__ 02:14
camelia 1
tonyo if you need the assignment to have a type constraint:
m: class ABC { has Str $!a; method AT-POS(Int:D $idx) { return-rw $!a }; }; my ABC $a .=new; $a[5] = 1; say $a[5]; # tbrowder__ this will type constrain the assignment 02:15
camelia Type check failed in assignment to $!a; expected Str but got Int (1)
in block <unit> at <tmp> line 1
02:21 teatwo joined 02:24 teatime left 02:27 teatwo left 02:28 teatwo joined 02:42 epony left 02:43 epony joined 03:09 Xliff left 03:46 frost22 joined 04:23 teatwo left 04:31 lizmat left 04:32 lizmat joined 05:32 coverable6 left, notable6 left, bloatable6 left, squashable6 left, linkable6 left, greppable6 left, benchable6 left, reportable6 left, quotable6 left, sourceable6 left, unicodable6 left, bisectable6 left, shareable6 left, releasable6 left, statisfiable6 left, committable6 left, tellable6 left, nativecallable6 left, evalable6 left, committable6 joined, greppable6 joined, notable6 joined, coverable6 joined, benchable6 joined 05:33 nativecallable6 joined, bloatable6 joined, linkable6 joined 05:34 bisectable6 joined, shareable6 joined, unicodable6 joined, tellable6 joined, sourceable6 joined, reportable6 joined, releasable6 joined 05:35 squashable6 joined, quotable6 joined, evalable6 joined, statisfiable6 joined 05:50 frost22 left 06:00 reportable6 left 06:03 reportable6 joined 06:19 squashable6 left 06:21 squashable6 joined 06:26 hackyhacker joined 06:39 eugene joined
eugene hello. i'd like to update my rakudo installation. but when try 'rstar instll' after 'rstar clean -s && rstar fetch -l' got errorĀ  about previous version isn't found. but i already got newer. 06:40
06:55 eugene left 06:57 Sgeo left 07:11 hackyhacker left 07:14 abraxxa joined 07:36 jpn joined 07:42 jpn left 07:48 hackyhacker joined, Xliff joined 07:59 sena_kun joined 08:02 zara joined 08:06 dakkar joined 08:36 jpn joined
lizmat PSA: there will not be a Rakudo Weekly this week 09:37
09:46 evalable6 left, linkable6 left 09:47 linkable6 joined 09:48 evalable6 joined 09:49 hackyhacker left 09:51 hackyhacker joined, hackyhacker left
leont Thanks for taking good care of yourself :-) 10:04
10:14 lichtkind_ joined
lizmat getting up at 6am is not my strong point :-) 10:24
10:33 deoac left 10:34 derpydoo left
tbrowder__ tonyo: many thanks! that should do it. i'll report back. 10:54
11:06 hackyhacker joined 11:13 hackyhacker left 11:14 zara left
tbrowder__ .tell tonyo the "return-rw" mod to AT-POS was the missing link. i though that was in the docs but i could never find it. thank you so much. 11:29
tellable6 tbrowder__, I'll pass your message to tonyo
tbrowder__ i will be releasing that class as "Index1Array" in my planned new module "AlgorithmsIT" as a collection of functions from "Introduction to Algorithms", Third Edition. (y'all could suggest better names i'm sure). it will be online in my github account later today. 11:35
11:55 hackyhacker joined 12:00 reportable6 left 12:03 reportable6 joined 13:03 statisfiable6 left, notable6 left, quotable6 left, squashable6 left, bloatable6 left, committable6 left, sourceable6 left, coverable6 left, tellable6 left, reportable6 left, releasable6 left, benchable6 left, greppable6 left, unicodable6 left, bisectable6 left, shareable6 left, linkable6 left, evalable6 left, bloatable6 joined, unicodable6 joined 13:04 linkable6 joined, shareable6 joined, evalable6 joined, statisfiable6 joined 13:05 notable6 joined, sourceable6 joined, squashable6 joined, quotable6 joined, greppable6 joined 13:06 coverable6 joined, committable6 joined, tellable6 joined, bisectable6 joined, benchable6 joined, releasable6 joined, reportable6 joined 13:09 jpn left 13:44 mtj left, mtj joined 13:51 jpn joined 13:53 jpn left, jpn joined 13:59 human-blip left 14:00 human-blip joined, TieUpYourCamel joined 14:07 human-blip left 14:09 human-blip joined
[Coke] . 14:27
tellable6 2023-06-06T23:12:33Z #raku <Xliff> [Coke] Thanks! Edited.
14:27 hackyhacker left 14:56 epony left 14:59 epony joined
tonyo tbrowder__: ++ 15:09
tellable6 2023-06-07T11:29:29Z #raku <tbrowder__> tonyo the "return-rw" mod to AT-POS was the missing link. i though that was in the docs but i could never find it. thank you so much.
15:13 human-blip left 16:06 euandreh left
librasteve I just noticd that the docs docs.raku.org/language/variables#The_!_twigil say my class Point { ... } 16:14
I know that this works, but it seems to be an unnecessary (and potentially confusing use of my) , shouldn't it read class Point { ... } 16:15
unless someone tells me that I am missing something, I'll file as a doc bug
oh - I found this stackoverflow.com/a/66056086/9146565 very thorough reply from jnthn - so not to worry 16:23
Voldenet but it is confusing
librasteve we can probably debate which option to put in the docs, and probably chunks of the jnthn guidance need to be in there too 16:24
Voldenet doc examples should not add unrelated complexities
dakkar OTOH, doc examples should show "best practices" throughout
tellable6 2023-06-02T00:00:05Z #raku <uzl[m]> dakkar The gamification sounds like a good idea, although I'd be interested on how many Rakoons are interested on that haha
librasteve but I don't suppose it is that bad to steer consumers of the docs to default to my class
Voldenet I default to `class` because it's shorter though - what's the use of having `my` near the class? 16:28
apart from highly dubious code like `{ my class foo { } }; { my class foo { } };` 16:30
dakkar in a library, it makes sure that the code that uses the library can't see that class
librasteve yeah, well class is package (our) scoped by default and my class is lexically scoped 16:31
dakkar so you can be sure that changing any aspect of that `my class` can't break other people's code
librasteve ^^ ++
dakkar as jnthn says in that stackoverflow linked above, such a class is an implementation detail, not part of the api of your library 16:32
librasteve I noticed that fez is now inspecting .rakumod package names and warning when classes are not in the provides
dakkar nice!
Voldenet that makes sense
dakkar so it's harder to accidentally leak names, good 16:33
librasteve so (untested) probably if I switch to my I can hide all the implementation details from META provides
dakkar disconnects, end of the work day
librasteve: that would be my expectation, yes
16:38 dakkar left 16:41 jpn left 16:48 jpn joined 16:56 donpdonp|z_ joined 16:57 donpdonp|z_ is now known as donpdonp|z 17:03 abraxxa left 17:23 human-blip joined 18:00 reportable6 left, jpn left 18:03 reportable6 joined 18:50 euandreh joined 18:53 euandreh1 joined, euandreh left, euandreh1 is now known as euandreh 18:58 Xliff_ joined 19:13 jpn joined
tbrowder__ i just blew away and restored github/AlgorithmsIT because i messed up pushing a new repo to it. someone had started watching it, but you'll now have to click "watch" again if you want to watch it. sorry for the trouble 19:19
19:39 ProperN[out] left 19:53 jpn left 20:10 rypervenche left
tonyo what's that class doing tbrowder__ ? 20:11
20:24 epony left 20:48 eseyman left 20:52 manu_ joined 20:53 manu_ is now known as eseyman
uzl[m] <dakkar> "OTOH, doc examples should show..." <- Agreed! 21:04
tellable6 2023-06-06T14:43:00Z #raku <tonyo> uzl[m] oops - merged and published
uzl[m] Awesome! 21:05
I'm planning to document so and not as specified here (github.com/Raku/doc/issues/4139), it seems straightforward enough. I'm unclear how to proceed though. In the sub definitions for so (github.com/rakudo/rakudo/blob/2022...89-L1392), the signatures have types Mu and Bool. Does that mean I'd need to document it on both types? 21:10
Alternatively I was thinking they might need to go in the "independent routines" section but what's an independent routine anyways? Like isn't everything associated with an object in class so how subs be independent? 21:11
21:14 Xliff_ left 21:25 Xliff_ joined 21:28 Xliff left, Xliff_ left 21:33 jpn joined 21:35 andydude joined 21:37 lichtkind_ left
tbrowder__ tonyo: so far so good, the array class is doing its job. but the actual algorithm for the two functions is not quite right. works fine for a single match, but not for multiple matches. i'll update the repo on github if anyone wants to see it.... 21:46
21:49 ismustachio_ left
[Coke] I believe inherited methods don't need to be duplicated, but if a method exists independently on two classes, yes, dupe it. You can see it by looking for a common routine and the generated page refers to all the places it's doc'd. 21:54
e.g. docs.raku.org/routine/close 21:55
21:56 sena_kun left
tonyo tbrowder__: if you need some help lmk (post a gist of how i should run it, too please) 22:04
22:40 deoac joined 23:01 Sgeo joined 23:13 RakuIRCLogger left 23:15 Geth left, lizmat left 23:33 andydude left 23:34 hexology left, hexology joined 23:43 jpn left
tbrowder__ .tell tonyo: my suspicion is correct, the book's pseudo code is misleaading and my tests prove it. i'll update the repo in a minute. 23:45
tellable6 tbrowder__, I'll pass your message to tonyo
tbrowder__ ok, repo updated 23:49