🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:06 discord-raku-bot left, discord-raku-bot joined, reportable6 left 00:08 reportable6 joined 00:10 discord-raku-bot left 00:11 discord-raku-bot joined 00:17 Arathorn is now known as Matthew|m 00:59 ajr left 01:06 coleman joined 01:41 frost joined 02:32 zacts joined 02:42 zacts is now known as z4kz 03:18 Guest35 left 03:31 [Coke] left, coleman left 03:34 [Coke] joined 04:34 evalable6 left, benchable6 left, linkable6 left, bloatable6 left, unicodable6 left, quotable6 left, notable6 left, greppable6 left, statisfiable6 left, sourceable6 left, coverable6 left, tellable6 left, bisectable6 left, nativecallable6 left, releasable6 left, shareable6 left, committable6 left, reportable6 left, notable6 joined, releasable6 joined, linkable6 joined 04:35 sourceable6 joined, coverable6 joined, statisfiable6 joined, bisectable6 joined, committable6 joined, benchable6 joined, quotable6 joined 04:36 unicodable6 joined, greppable6 joined 04:37 tellable6 joined, evalable6 joined, reportable6 joined, shareable6 joined, bloatable6 joined, nativecallable6 joined 04:42 euandreh left 04:44 euandreh joined 04:52 jaguart joined 04:59 z4kz left 05:11 euandreh left 05:13 euandreh joined 05:39 Util left 05:46 Util joined 06:07 reportable6 left, reportable6 joined 06:15 vrurg joined 06:17 vrurg_ left 06:18 jjido joined 06:46 abraxxa joined 06:47 abraxxa left 06:50 abraxxa joined 06:55 abraxxa left 06:56 abraxxa joined 07:15 Sgeo left 07:26 Sankalp left 07:29 Sankalp joined 07:53 MasterDuke joined 07:59 dakkar joined 08:10 lichtkind joined 08:11 jjido left 08:12 jjido joined 08:13 mexen joined
Nemokosch m: say qq{ {1 + 2} } 08:18
anyway... 08:20
> > say qq{ {1 + 2} }
> {1 + 2}
> > say qq/ {1 + 2} /
> 3
I'd still like to know if this is an issue, or not documented, or I failed to notice
08:26 Nemokosch joined 08:27 jjido left
Nemokosch *just a little test* 08:28
Nemokosch funky
08:28 Nemokosch left 08:33 Util left 08:39 Util joined 08:46 grondilu joined 08:52 grondilu left 08:53 grondilu joined
El_Che building rakudo-pkg for new release 09:05
lizmat ++El_Che 09:10
09:15 jjido joined 09:25 Oshawott joined
El_Che t/02-rakudo/18-pseudostash.t flopper-de-flop 09:26
09:29 archenoth left 09:53 jjido left
El_Che done 10:20
10:27 Altai-man joined 10:30 sena_kun left 10:40 sena_kun joined 10:43 Altai-man left 11:17 lichtkind left, lichtkind_ joined 11:24 jjido joined
grondilu bduggan, author of git.sr.ht/~bduggan/raku-protobuf, not around? 11:26
12:08 reportable6 left 12:11 reportable6 joined
lizmat I don't recall seeing bduggan here, fwiw 12:16
lizmat clickbaits rakudoweekly.blog/2022/04/25/2022-...inrelease/
grondilu unrelated: 12:24
m: proto foo($) {*}; multi foo(uint8 $) {}; multi foo(uint16 $) {}; foo my uint8 $
camelia Ambiguous call to 'foo(Int)'; these signatures all match:
(uint8 $)
(uint16 $)
in block <unit> at <tmp> line 1
grondilu can't a multidispatch work with natives?
or am I missing something obvious? 12:25
grondilu is also suprised that foo is assumed to take a Int as parameter. 12:26
m: proto foo($) {*}; multi foo(uint8 $) {}; multi foo(uint16 $) {}; multi foo(Str $) {}; foo my uint8 $
camelia Ambiguous call to 'foo(Int)'; these signatures all match:
(uint8 $)
(uint16 $)
in block <unit> at <tmp> line 1
grondilu m: proto foo($) {*}; multi foo(uint8 $) {}; multi foo(uint16 $) {}; multi foo(Str $) {}; foo "bar" 12:27
camelia ( no output )
lizmat m: multi foo(uint8) { dd }; multi foo(uint16) { dd }; my uint8 $a = 42; foo $a
camelia Ambiguous call to 'foo(Int)'; these signatures all match:
(uint8 $)
(uint16 $)
in block <unit> at <tmp> line 1
lizmat hmm... *that* should work 12:28
m: multi foo(int8) { dd }; multi foo(int16) { dd }; my int8 $a = 42; foo $a
camelia Ambiguous call to 'foo(Int)'; these signatures all match:
(int8 $)
(int16 $)
in block <unit> at <tmp> line 1
lizmat hmmm
m: multi foo(Int) { dd }; multi foo(int16) { dd }; my int8 $a = 42; foo $a
camelia sub foo(int16)
lizmat ok, I guess it's either native or not, and no difference between the various native types 12:29
grondilu is that specced?
lizmat good question, wouldn't know
but whether specced or not, that's all historical now 12:30
grondilu I'm trying to write serialization routines, and I was planning to use multidispatch on natives.
nine It distinguishes between native ints, uints, nums, strings and (non-native) objects 12:34
Or rather non-native types
grondilu m: say so my uint8 $ ~~ uint8 12:37
camelia True
grondilu m: say so my uint8 $ ~~ uint16
camelia False
grondilu so I'm supposed to use manually check for the type? 12:38
like `given $arg { when uint8 {...}; when uint16 {...}; ... }` ? 12:39
grondilu notices that this doesn't work 12:41
m: sub foo($x) { so $x ~~ uint8 }; say foo my uint8 $ 12:43
camelia False
grondilu m: sub foo($x) { so $x ~~ uint8 }; say foo my uint8 $ = 2
camelia False
grondilu :thinki 12:44
🤔 12:45
m: say my uint8 $ ~~ uint8 12:46
camelia True
grondilu m: sub foo($x) { $x.WHAT }; say foo my uint8 $ 12:47
camelia (Int)
grondilu 🤨 12:48
that seems wrong tbh 12:49
m: say *.WHAT(my uint $)
camelia ===SORRY!=== Error while compiling <tmp>
Cannot give arguments to WHAT
at <tmp>:1
------> say *.WHAT(my uint $)⏏<EOL>
grondilu m: say (*.WHAT)(my uint $)
camelia Impossible coercion from 'Int' into 'Whatever': no acceptable coercion method found
in block <unit> at <tmp> line 1
grondilu m: say {.WHAT}(my uint $) 12:50
camelia (Int)
grondilu m: say {.WHAT}(my uint $ = 1)
camelia (Int)
MasterDuke well, calling a method boxes it into an object (i.e., it loses its nativeness)
grondilu ok
m: say sub (uint $x) { $x.WHAT}(my uint $) 12:51
camelia (Int)
grondilu even if the sub was defined to take natives?
Xliff m: sub a (Int $x) { my uint8 $xx := $x; $xx.WHAT.say } 12:52
camelia ===SORRY!=== Error while compiling <tmp>
Cannot bind to natively typed variable '$xx'; use assignment instead
at <tmp>:1
------> sub a (Int $x) { my uint8 $xx := $x⏏; $xx.WHAT.say }
Xliff m: sub a (Int $x) { my uint8 $xx = $x; $xx.WHAT.say }
camelia ( no output )
grondilu m: say (my uint $).WHAT
camelia (Int)
Xliff m: sub a (Int $x) { my uint8 $xx = $x; $xx.WHAT.say }; a(12)
camelia (Int)
Xliff m: sub a (Int $x) { my uint8 $xx = $x; $xx.WHAT.say; $xx.REPR.say }; a(12)
camelia (Int)
P6opaque
grondilu oh, .WHAT does not what I thought it would
Xliff m: sub a (Int $x) { my uint8 $xx = $x; $xx.WHAT.say; $xx.^name.say }; a(12) 12:53
camelia (Int)
Int
Xliff Odd.
m: use NativeCall; sub a (Int $x) { my uint8 $xx = $x; $xx.WHAT.say; $xx.REPR.say; $xx.^name.say }; a(12)
camelia (Int)
P6opaque
Int
12:59 jjido left
grondilu sees docs.raku.org/language/numerics#Native_dispatch 13:00
raku's doc is very good. seemingly exhaustive, despite how big a language raku is. 13:02
congrats
unrelated: 13:13
m: say ++$ * 256 + *, 1 xx 10 13:14
camelia WhateverCode.new(1 1 1 1 1 1 1 1 1 1)
grondilu m: say ++$ * 256 * * + *, 1 xx 10
camelia WhateverCode.new(1 1 1 1 1 1 1 1 1 1)
grondilu oh nevermind 13:15
github.com/Raku/flymake-rakudo <-- cool stuff, anything similar for vim? 13:20
[Coke] grondilu: thanks for saying that - it often feels that because it's so big, there are always gaps. 13:24
grondilu frankly I used to prefer reading the synopses, but lately I switched to reading the official doc. It has become better than the synopses now, I think. 13:27
13:27 Guest35 joined
grondilu this flymake module makes me feel like trying emacs with evil-mode again 13:29
grondilu does that 13:37
13:37 discord-raku-bot left, discord-raku-bot joined 14:02 frost left 14:13 coleman joined 14:25 lichtkind_ left
gfldex I'm reading S05-mass/* and already found 3 ENODOCs 14:28
14:36 Sgeo joined
Geth ¦ Documentable: coke assigned to antoniogamiz Issue Dependencies invalid github.com/Raku/Documentable/issues/162 14:44
grondilu that flymode thing is telling me I made an error at my first `use` line. Message is `X perl5#` 14:48
grondilu guesses it's about include paths or something 14:52
Geth ¦ Documentable: JJ unassigned from antoniogamiz Issue File::Temp dependencies invalid github.com/Raku/Documentable/issues/162 15:00
15:02 RakuIRCLogger left, TempIRCLogger left
grondilu ended up setting RAKULIB and the error vanished 15:02
real-time syntax check, very nice
15:07 jaguart left
Geth ¦ Documentable: coke assigned to antoniogamiz Issue Typo in diagnostic output github.com/Raku/Documentable/issues/163 15:52
16:07 linkable6 left, evalable6 left 16:10 linkable6 joined, evalable6 joined
Geth ¦ Documentable: coke assigned to antoniogamiz Issue "make html" broken in raku/doc github.com/Raku/Documentable/issues/164 16:21
16:37 dakkar left 17:06 mexen left 17:09 pklibert joined 17:20 grondilu left 17:22 jaguart joined 17:55 morte_ joined
CIAvash grondilu: If that line was the only line you saw, there is a chance you're seeing the last line of the message. If you're using Eldoc for messages, read the Eldoc section here: www.ciavash.name/blog/2022/04/25/f...acs/#eldoc 18:04
tellable6 CIAvash, I'll pass your message to grondilu
18:05 sena_kun left 18:07 reportable6 left 18:10 reportable6 joined 18:11 sena_kun joined 18:20 morte_ left 18:22 abraxxa left 18:25 jjido joined 19:22 n1to joined 19:34 bigdata joined 20:00 bigdata left, bigdata joined, sena_kun left 20:02 sena_kun joined 20:06 sena_kun left 20:07 sena_kun joined
timo Xliff: ever so slightly confused by the "method Cairo::cairo_t" in the cairo Context class; is the :: in there fine? is it reachable? 20:10
20:11 saint- left
timo at least now i found method Cairo::cairo_font_options_t later in that file, so there's precedent 20:14
20:31 HobGoblin is now known as goblin 20:51 Geth__ left, Geth__ joined, Geth left 20:52 TempIRCLogger joined, Geth__ left, Geth joined, lizmat left 20:53 lizmat_ left, lizmat joined 20:56 Geth left, Geth joined 21:01 Geth left, Geth joined 21:04 melezhik joined
melezhik I've switched SparkyCI the newest ( 2020.04 ) Rakudo version, if someone needs to test their modules against the latest version - feel free - sparrowhub.io:2222/report/239 21:05
21:07 melezhik left 21:09 jjido left 21:19 jjido joined
Geth doc: e9c0ad31e9 | Coke++ | xt/01-raku-version.t
track 2022.04 rakudo release
21:21
doc: f22bdf16c1 | Coke++ | 2 files
Make category case consistent

Upper lower
Closes #4063
doc: 7fbf8842f2 | Coke++ | xt/search-categories.t
add note
21:22 linkable6 left 21:24 linkable6 joined
Geth doc: coke self-assigned No space after category comma in indices (and in general generated pages with leading whitespace) github.com/Raku/doc/issues/2884
131189118c | Coke++ | xt/search-categories.t
21:45
doc: d3483f2c6e | Coke++ | 5 files
Remove leading space from category component

Resolves #2884
22:06 linkable6 left 22:07 n1to left, linkable6 joined 23:05 ajr joined 23:11 thegargler joined
thegargler hm 23:11
23:39 ajr left 23:47 jjido left