🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:01 BenGoldberg joined 00:06 xinming left 00:07 xinming joined 00:18 wamba left 00:36 mowotter left 00:45 ben_ left 00:47 ben_ joined 00:55 Kaeipi joined 00:56 Kaeipi left 00:58 tejr left 00:59 tejr joined 01:01 tejr left 01:13 tejr joined 01:38 lucasb left 01:44 leont_ left 02:17 ben_ left 02:36 xinming left 02:38 xinming joined 02:44 Chi1thangoo left 02:53 xinming left 02:55 xinming joined 03:00 xinming left 03:01 xinming joined 03:11 Toilie joined 04:02 xinming left 04:03 xinming joined 04:19 dmc00 joined 04:26 Kaiepi joined
CAPTCHA_REQUIRED Dirty tricks ::mi6 04:27
04:45 dotdotdot left 04:50 aborazmeh joined, aborazmeh left, aborazmeh joined 05:32 parabolize left 05:39 aborazmeh left 05:55 dotdotdot joined 05:59 dotdotdot left 06:04 xinming_ joined 06:07 xinming left 06:33 sena_kun joined 06:36 BenGoldberg left 06:41 dotdotdot joined 06:58 dotdotdot left 07:01 aborazmeh joined, aborazmeh left, aborazmeh joined, dotdotdot joined 07:18 aborazmeh left 07:24 jmerelo joined 08:11 Altai-man joined 08:13 sena_kun left
jmerelo Last chance to request a slot for the Advent Calendar github.com/Raku/advent/! 08:14
tellable6 2020-11-25T00:10:57Z #raku <JJAtria[m]> jmerelo: I should have some version of my advent post ready for some reviews tomorrow or the day after, although I'm thinking about changing the topic to make it more accessible for beginners
jmerelo Also: write it.
.tell jjatria thanks!
tellable6 jmerelo, I'll pass your message to JJAtria[m] 08:15
08:34 nosqrt joined 08:42 aborazmeh joined, aborazmeh left, aborazmeh joined 08:56 aborazmeh left 09:08 natrys joined 09:28 BenGoldberg joined, sjm_uk joined 09:33 gdonald left 09:35 gdonald joined 09:46 wamba joined 09:47 MasterDuke joined 09:50 _4d47 joined 09:54 dakkar joined 10:01 BenGoldberg left 10:17 nosqrt left 10:23 Sgeo left 10:32 Guest43 joined 10:34 xinming_ left 10:35 xinming_ joined 10:38 sjm left 10:39 _4d47 left 11:04 aborazmeh joined, aborazmeh left, aborazmeh joined 11:05 domidumont joined
cpan-raku New module released to CPAN! HTTP::Tiny (0.1.4) by 03JJATRIA 11:16
11:16 domidumont1 joined 11:18 domidumont left 11:30 aborazmeh left, kensanata joined 11:34 sjm_uk left 11:37 sjm joined
jmerelo We're going to have a Perl and Raku devroom this year in the online version of Fosdem fosdem.org/2021/schedule/track/per...ogramming/ 11:37
11:39 jmerelo left 11:41 sjm_uk joined
lizmat jmerelo++ 11:49
11:56 grep0r joined 11:57 grep0r left 11:58 dakkar left 12:00 cpan-raku left 12:12 sena_kun joined 12:14 Altai-man left
samebchase- Please review my Advent post on Raku Grammars: gist.github.com/samebchase/8d37f7d...5d36763dd5 12:21
12:25 raku-bridge joined, raku-bridge left, raku-bridge joined, cpan-raku joined, cpan-raku left, cpan-raku joined 12:41 leont_ joined 12:43 Chi1thangoo joined 12:52 BenGoldberg joined 13:27 BenGoldberg left 13:46 lucasb joined 14:00 xelxebar left 14:01 xelxebar joined 14:03 aborazmeh joined, aborazmeh left, aborazmeh joined
cpan-raku New module released to CPAN! Gnome::N (0.18.0) by 03MARTIMM 14:25
14:35 aborazmeh left 14:52 leont_ is now known as leont 15:00 domidumont joined 15:03 domidumont1 left 15:06 parabolize joined 15:08 Guest43 left 15:16 domidumont1 joined, domidumont left 15:24 wamba left 15:29 aborazmeh joined, aborazmeh left, aborazmeh joined 15:37 leont left 15:39 leont joined 15:41 BenGoldberg joined
tbrowder .tell jmerelo check out my first code block 15:43
tellable6 tbrowder, I'll pass your message to jmerelo
tbrowder samebchase-: i don't see ';' handled 15:47
15:48 aborazmeh left 15:49 leont left 15:52 leont joined 15:57 grep0r joined 15:58 grep0r left 16:00 leont left 16:03 __jrjsmrtn__ joined, leont joined, _jrjsmrtn left 16:05 guifa2 joined
guifa2 o/ 16:06
16:10 sjm left 16:11 Altai-man joined 16:13 sena_kun left
guifa2 m: sub(int $foo is raw) { $foo++}; my int $bar = 1; foo $bar; say $bar; 16:14
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at <tmp>:1
------> 3sub(int7⏏5 $foo is raw) { $foo++}; my int $bar = 1
expecti…
guifa2 m: sub foo(int $foo is raw) { $foo++}; my int $bar = 1; foo $bar; say $bar;
camelia Cannot resolve caller postfix:<++>(BOOTInt); the following candidates
match the type but require mutable arguments:
(Mu:D $a is rw)
(Int:D $a is rw --> Int:D)

The following do not match for other reasons:
(Bool:D $a is rw)
guifa2 What's the correct way to pass a mutable native?
16:21 stoned75 joined 16:43 hungrydonkey joined 16:44 sjm_uk left 16:48 leont left
samebchase- tbrowder: you mean comments in Clojure? ";" 16:53
I have handled that in the full grammar I've linked to, but not in the article
tbrowder: gist.github.com/samebchase/f6fbb81...e-raku-L18 16:54
16:58 jmerelo joined
MasterDuke m: sub foo(int $foo is rw) { $foo++}; my int $bar = 1; foo $bar; say $bar; 16:59
camelia 2
MasterDuke guifa2: ^^^
guifa2 MasterDuke: weird, I swear that had given me an error when I tried it
jmerelo We're going to have a devroom (v as in virtual) this year in FOSDEM 17:00
tellable6 2020-11-28T15:43:41Z #raku <tbrowder> jmerelo check out my first code block
guifa2 is trying to speed up loading by avoiding unboxing since blob's read method takes natives
hungrydonkey m: run "date" 17:01
camelia Sat Nov 28 18:01:27 CET 2020
17:05 leont joined 17:13 sjm joined
guifa2 MasterDuke: I'm getting the following error. Any ideas? 17:18
Bytecode validation error at offset 1300, instruction 196: 17:19
operand type 160 does not match register type 152 for op decont_u in frame bind-init
17:22 leont left
tbrowder ah, ok, but you might mention that and be consistent with your comment style, ;; vs # 17:28
guifa2 MasterDuke: tio.run/##K0gtyjH7/z85J7G4WMFRoZpL...iZUg@v9/AA I think this golfs it for what's triggering it. Clearly has something to do with it being passed along to another 17:29
17:32 leont joined
guifa2 WHOA 17:33
all I had to do was change to a different native type and it worked
17:40 leont left, leont joined
samebchase- tbrowder: In the Clojure snippets I'm commenting using ";;" and in the Raku snippets I'm commenting with "#" unless I messed up somewhere, let me check 17:45
tbrowder ok, i'll be quiet, you are probably right. love the article 17:48
i never looked into clojure before and didn't realize its lisp roots 17:49
i've always wanted to dabble with scheme for emacs purposes but never understood why so many variants of the same language 17:53
um, gnucash uses scheme...
sorry, emacs lisp is the variant 17:55
erg
MasterDuke i've always been attracted to the theoretical purity/simplicity of scheme. but then the only two that i've actually had any interest in and used are racket and clojure, both very much batteries-included, raku-like-in-their-size languages 17:58
guifa2: yeah, the non-64bit types have some problems 17:59
guifa2 MasterDuke: ah noted. I posted an issue on Rakudo, but couldn't quite tell if it's Rakudo or MoarVM
I only have ... *counts* 40 class files to change haha
cpan-raku New module released to CPAN! Gnome::N (0.18.1) by 03MARTIMM 18:06
samebchase- tbrowder: thanks! 18:08
guifa2 MasterDuke: well dang, switching everything to natives didn't get me any speed up =\ I wonder if there's still an unboxing somewhere that I'm missing 18:12
or rather, a boxing
18:21 leont left, leont_ joined 18:29 xinming_ left 18:31 xinming_ joined 18:36 Xliff joined 18:43 wamba joined 18:49 domidumont1 left 19:01 leont_ left 19:02 leont_ joined
Geth doc: 039a4fdf26 | (Stoned Elipot)++ | doc/Type/Test.pod6
Untangle ok() and nok() descriptions

While here sync parameters' name between signatures and descriptions.
19:04
linkable6 Link: docs.raku.org/type/Test
19:05 leont_ left, leont_ joined 19:11 xinming_ left 19:13 xinming_ joined 19:16 aindilis joined 19:20 Black_Ribbon joined
MasterDuke guifa2: i assume you've profiled? 19:29
guifa2 Not yet: had had some trouble on my desktop but....seemsl ike the laptop is okay with profiling so yay. trying that now 19:34
19:42 guifa2 left 19:53 perigrin left, perigrin joined 19:57 guifa2 joined 20:00 jmerelo left
tyil vrurg: . 20:07
nine: .
guifa2 MasterDuke: it's spending almost all the time in the infix:<but> 20:08
20:12 sena_kun joined
guifa2 I probably need to readjust my test, because the decoding is < 5% of the time, and I'm sure the but is from the XML stuff 20:13
20:14 Altai-man left 20:27 skids joined
guifa2 MasterDuke: hmm, looks like potentially the worst of the time is in my BUILD substitute. Not sure how I can make that any faster sadly =\ (I bind all of the attributes to equivalently named keys, in addition to keys that match the camelCase that CLDR uses. Commenting out the worst of them (with ~ 200 binds) plummeted the runtime 20:42
20:42 xinming_ left
guifa2 I guess I can just remove that feature and and have the hashy access just do $."$key"(), and maybe caching it? 20:43
20:44 xinming_ joined
cpan-raku New module released to CPAN! Gnome::N (0.18.1.1) by 03MARTIMM 20:45
20:45 patrickb joined
MasterDuke huh. can you use the `is built(:bind)` thing lizmat recently introduced? 20:59
guifa2 MasterDuke: I missed that trait, I'll take a look at it 21:05
21:06 natrys left
guifa2 . o O ( lizmat releases so many, being the resident trait-master haha) 21:06
21:26 Sgeo joined
Geth doc: 147562760d | (Stoned Elipot)++ | doc/Type/Test.pod6
Use parameters' names in description
21:46
linkable6 Link: docs.raku.org/type/Test
21:47 gdonald left 21:51 mowcat joined 22:08 guifa2 left 22:18 guifa2 joined 22:26 kensanata left 22:33 aborazmeh joined, aborazmeh left, aborazmeh joined 22:36 stoned75 left
Geth advent: pheix++ created pull request #73:
Add my draft to the repo
23:08
23:12 aborazmeh left 23:16 vike left 23:32 patrickb left 23:51 agentzh left, skids left 23:54 sena_kun left, sena_kun joined 23:58 sena_kun left