🦋 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 00:14 abraxxa-home left 00:20 jpn left
ingy lizmat: you planning to do tpfna next year? 00:25
or whatever yapc's called now :) 00:26
tparcna?
toronto edition 00:27
00:34 jaguart left 00:41 Kaiepi left 00:44 perlbot left, simcop2387 left 00:46 perlbot joined 00:47 simcop2387 joined 01:41 razetime joined 01:51 swaggboi left 02:27 razetime left 02:42 jaguart joined 03:42 notable6 left, evalable6 left, tellable6 left, unicodable6 left, quotable6 left, squashable6 left, releasable6 left, statisfiable6 left, linkable6 left, reportable6 left, coverable6 left, bisectable6 left, bloatable6 left, nativecallable6 left, committable6 left, benchable6 left, sourceable6 left, shareable6 left, greppable6 left 03:43 evalable6 joined, reportable6 joined, notable6 joined, releasable6 joined, unicodable6 joined, squashable6 joined, quotable6 joined 03:44 bloatable6 joined, nativecallable6 joined, shareable6 joined, benchable6 joined, bisectable6 joined 03:45 sourceable6 joined, committable6 joined, linkable6 joined, statisfiable6 joined, greppable6 joined, tellable6 joined, coverable6 joined 04:06 perryprog is now known as merryprog 04:26 Kaiepi joined, buffet joined 04:38 vrurg left 04:42 razetime joined 05:42 unicodable6 left, shareable6 left, greppable6 left, releasable6 left, nativecallable6 left, bloatable6 left, bisectable6 left, statisfiable6 left, benchable6 left, notable6 left, squashable6 left, committable6 left, evalable6 left, coverable6 left, sourceable6 left, reportable6 left, tellable6 left, quotable6 left, linkable6 left 05:43 notable6 joined, sourceable6 joined, statisfiable6 joined, unicodable6 joined, coverable6 joined, shareable6 joined, quotable6 joined 05:44 linkable6 joined, bloatable6 joined, releasable6 joined, committable6 joined, tellable6 joined 05:45 nativecallable6 joined, reportable6 joined, greppable6 joined, evalable6 joined, squashable6 joined, bisectable6 joined, benchable6 joined 06:00 reportable6 left 06:02 reportable6 joined 07:02 nativecallable6 left, greppable6 left, unicodable6 left, evalable6 left, bloatable6 left, squashable6 left, releasable6 left, shareable6 left, sourceable6 left, coverable6 left, benchable6 left, linkable6 left, tellable6 left, notable6 left, bisectable6 left, statisfiable6 left, quotable6 left, reportable6 left, committable6 left 07:03 quotable6 joined, notable6 joined, nativecallable6 joined, benchable6 joined, reportable6 joined, bisectable6 joined, releasable6 joined, evalable6 joined, statisfiable6 joined, tellable6 joined, unicodable6 joined, squashable6 joined, bloatable6 joined 07:04 linkable6 joined, sourceable6 joined 07:05 committable6 joined, coverable6 joined, shareable6 joined, greppable6 joined 07:26 jpn joined 07:37 DarthGandalf left 07:55 Sgeo left 07:57 jpn left 08:20 DarthGandalf joined 08:26 abraxxa joined 08:33 abraxxa left, abraxxa joined 08:54 jpn joined 08:59 Kaiepi left 09:02 sena_kun joined 09:30 razetime left 09:43 Kaiepi joined 10:27 sena_kun left 10:39 rahil joined
rahil hi there 10:39
10:40 rahil left
Nemokosch welcome 10:40
10:54 Abhoerschutz left 10:57 Abhoerschutz_ joined 10:58 Kernspin left 10:59 Kernspin joined 11:07 Abhoerschutz_ is now known as Abhoerschutz 11:21 holyghost joined 11:24 sena_kun joined 11:29 holyghost left
how does one reset a @variable to its default value? 11:30
lizmat @variable = () 11:32
Nemokosch I'm back to thinking one shouldn't ever use @variables, they are too unpredictable for that
oh, so they just downright ignore is default traits... 11:35
lizmat m: my @a is default(42) = 1,2,3; dd @a; @a[1] = Nil; dd @a 11:44
camelia Array @a = [1, 2, 3]
Array @a = [1, 42, 3]
lizmat what is so hard to understand about that ?
Nemokosch why can't @variables behave like... variables? 11:46
why do they sabotage this way of thinking in all possible ways? 11:47
undefined @variable, @variable that doesn't start off empty... hello? 11:48
is there even a way to tell a @parameter "you should start off as undefined", which would be the right thing for a named parameter? 11:54
12:00 reportable6 left, reportable6 joined 13:00 shareable6 left, greppable6 left, squashable6 left, statisfiable6 left, notable6 left, unicodable6 left, coverable6 left, tellable6 left, quotable6 left, reportable6 left, nativecallable6 left, bloatable6 left, evalable6 left, sourceable6 left, releasable6 left, benchable6 left, linkable6 left, bisectable6 left 13:01 bisectable6 joined, bloatable6 joined, releasable6 joined, squashable6 joined, benchable6 joined, coverable6 joined, nativecallable6 joined, tellable6 joined, kaskal left, reportable6 joined 13:02 statisfiable6 joined, linkable6 joined, sourceable6 joined, quotable6 joined, notable6 joined 13:03 greppable6 joined, evalable6 joined, unicodable6 joined, shareable6 joined 13:06 kaskal joined 13:10 jpn left 13:37 jpn_ joined 13:44 abraxxa left 13:46 elcaro_ left 13:47 elcaro joined 13:50 eseyman left 13:59 Xliff joined
Xliff \i 13:59
\o even
Now working on GTK4 bindings. 880,000 lines of Raku and counting.
14:06 Altai-man joined 14:07 hankache joined, hankache left
lizmat Xliff: I'd be interested in (non-)progress of compilation times 14:07
14:08 hankache joined
Xliff lizmat: I think I send up that on #raku-dev like... yesterday? Day before? 14:08
14:10 sena_kun left 14:12 vrurg joined 14:26 holyghost joined 14:27 holyghost left 14:58 hankache left 15:19 eseyman joined
Geth ecosystem/main: ccb23906aa | (Lucien Grondin)++ (committed using GitHub Web editor) | META.list
Update META.list

edit p6-modular link
15:57
16:19 evalable6 left, linkable6 left, evalable6 joined 16:22 linkable6 joined 16:24 Altai-man left 16:25 Altai-man joined 16:35 Guest2910 joined 16:54 razetime joined 17:03 Sgeo joined
smol-hors m: ('000'..'111').join(' ').say 17:18
camelia 000 001 010 011 100 101 110 111
17:18 razetime left 17:48 jpn_ left 18:00 reportable6 left 18:01 reportable6 joined 18:05 Altai-man left 18:14 jpn joined 18:52 mcmillhj joined 18:55 abraxxa-home joined
mcmillhj Are there any quirks with the :cached trait and Set objects? I am trying to memoize a recursive function that has a Set parameter and I never see any values get cached. Smaller example that reproduces what I am seeing: topaz.github.io/paste/ 18:57
sorry, this is the url
topaz.github.io/paste/#XQAAAQB2AgA...2a/81+DaY=
18:59 sena_kun joined
lizmat mcmillhj interesting 19:13
tbrowder xmas
mcmillhj If I change my Set to an Array it works as expected. 19:14
lizmat yeah... :cached is experimental for a reason :-)
this big argument has always been what to use for a key in the cache
and the original implementation used .gist for determining the key 19:15
m: dd (1,2,3).Set.Str 19:16
camelia "2 3 1"
lizmat m: dd (1,2,3).Set.Str
camelia "1 2 3"
lizmat and as you can see, it follows the internal random hash ordering for stringification
m: dd (1,2,3).Str
camelia "1 2 3"
lizmat m: dd (1,2,3).Str
camelia "1 2 3"
lizmat note that it is consistent here 19:17
mind you, the implementation of :cached predates the current implementation of Sets
mcmillhj okay, that makes sense. So w/e structure I am using as a cache needs to have consistent ordering in order for :cached to be consistent. Thank you! This was super informative. 19:18
lizmat you're welcome
well, for this implementation of :cached, indeed 19:19
note the implementation of "is cached" is very simple: 19:20
github.com/rakudo/rakudo/blob/main...rakumod#L8
you could take that sub into your own code and replace c.gist by c.WHICH 19:21
and you would be set, I think
mcmillhj ohh let me try that, filtering the arrays is pretty slow. 19:22
smol-hors I get this error when invoking raku-debug on (I'm on Ubuntu 22.10) bpa.st/O3CKS 19:26
lizmat smol-hors: meh, that feels like bitrot, could you make an issue for that ? 19:29
meanwhile, you can fall into the REPL by calling the "repl"sub 19:30
smol-hors sure :) 19:31
19:38 Guest2910 left
smol-hors issue submitted 19:39
hmm, that reminds me. I also cannot enter the repl (I have Rakudo v2022.04). I invoke raku with no arguments and it prints the header but does not show a prompt or respond to input. 19:41
can submit an issue, or is this something fixed in a later version?
lizmat are you on Windows ? 19:44
smol-hors Ubuntu 22.10
lizmat ah, duh
then I suggest upgrading to 2022.12 if possible -)
Geth docker: 65c49addd3 | (Daniel Mita)++ (committed using GitHub Web editor) | 5 files
Bump to 2022.12 (#51)
smol-hors ok :)
19:53 Guest2998 joined 20:03 jpn left 20:07 codesections joined 20:08 codesections left 20:09 codesections joined
Nemokosch so what do y'all think of this? github.com/Raku/problem-solving/issues/357 20:30
20:33 mcmillhj left
MasterDuke have you tried fixing it in rakudo? any spectests break? 20:56
Nemokosch I haven't. Grammar stuff still makes me shiver. 21:02
21:14 Kaiepi left 21:18 Kaiepi joined 21:27 sena_kun left 21:56 abraxxa-home left 22:22 euandreh left 22:26 euandreh joined 22:32 euandreh left
surprisingly consistent: native types only support assignment, not binding; NQP only supports binding, not assignment 23:09
surprising yes, consistent not so sure 😄 but really, does anyone know the history of this? 23:10
Geth doc: 0rir++ created pull request #4178:
Put glossary ref on HomePage.pod6
23:32
23:32 jpn joined
Xliff What is this? 23:36
"Cannot find method 'is_dispatcher' on object of type BOOTCode"
Is this another nqp escapee making its way into Raku-land?
Nemokosch how do you even get to stuff like this? 😅 23:39
Xliff NativeCall
Nemokosch then this is probably something very meta 23:41
Xliff Hmmm... looks like a predeclaration issue. 23:43
m: sub a { ... }; sub b { a() }; sub a { say "A"; b() }; 23:44
camelia ( no output )
Xliff m: sub a { ... }; sub b { a() }; sub a { say "A"; b() }; b()
camelia (signal SEGV)A
Xliff m: sub a { ... }; sub b { a() }; sub a { say "A"; b() }; a()
camelia (signal SEGV)A
Xliff That last shouldn't segfault. Should just print "A" 23:45
twice.
Ah nope. Infinite loop.
m: sub a { ... }; sub b { a() }; sub a { say "A"; }; b() 23:46
camelia A
Geth doc: 206df08851 | rir++ (committed using GitHub Web editor) | doc/HomePage.pod6
Put glossary ref on HomePage.pod6 (#4178)
23:50
23:51 linkable6 left 23:54 linkable6 joined