🦋 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:11 ab5tract left, ab5tract joined 00:15 jpn joined 00:20 jpn left 00:29 jrjsmrtn_ left 00:31 jrjsmrtn joined 01:12 jpn joined 01:17 jpn left 02:06 kylese left 02:07 kylese joined 02:39 jpn joined 02:44 jpn left 02:45 hythm joined 03:00 hythm left 03:30 hythm joined
hythm m: say q[grammar G { token TOP { 'top' } }].AST.statements'.head.expression.DEPARSE; 03:34
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> { token TOP { 'top' } }].AST.statements⏏'.head.expression.DEPARSE;
expecting any of:
infix stopper
03:34 silug left, jpn joined, silug joined
hythm m: 'say q[grammar G { token TOP { 'top' } }].AST.statements'.head.expression.DEPARSE; 03:35
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 'say q[grammar G { token TOP { '⏏top' } }].AST.statements'.head.expressio
expecting any of:
infix stopper
hythm m: say q[grammar G { token TOP { "top" } }].AST.statements.head.expression.DEPARSE 03:38
camelia grammar G {
token TOP { top }
03:39 jpn left
hythm m: say q[grammar G { proto token TOP { *} }].AST.statements.head.expression.DEPARSE 03:39
camelia ===SORRY!=== Error while compiling
Missing block
------> grammar G { proto token⏏ TOP { *} }
hythm is `proto` NYI or I'm doing something wrong in the above example? 03:40
the only difference is I added `proto` before `token` 03:43
03:58 edr left 04:07 jpn joined 04:12 jpn left 05:42 jpn joined 05:47 jpn left, hythm left 05:53 sdfgsdfg joined 05:55 antim0d3s left 06:37 jpn joined 06:42 jpn left 06:59 jpn joined 07:04 jpn left 07:45 dbonnafo left 08:04 dbonnafo joined 08:13 constxqt left 08:15 dbonnafo left 08:20 cm left, cm joined 08:28 jpn joined 08:44 jpn left 08:55 ugauga joined
ugauga I'm not Gay 08:56
08:56 ugauga left
antononcube Duly noted. 08:57
09:00 dakkar joined 09:28 sena_kun joined 09:40 nebuchadnezzar joined 10:01 ecocode_ left, ecocode joined, Sgeo left
Geth advent/main: 7c48926ca1 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | raku-advent-2023/authors.md
Add presentation
10:04 dpb left, dpb joined
ab5tract hythm: github.com/rakudo/rakudo/issues/5446 10:04
tellable6 ab5tract, I'll pass your message to hythm
10:19 jpn joined 10:20 Ekho left 10:22 dbonnafo joined 10:25 constxqt joined 10:26 Ekho joined 10:27 dbonnafo left 10:28 _________ left 10:29 _________ joined 10:37 jast left, jast joined 10:40 jpn left 10:44 jpn joined 10:50 jpn left 10:52 jpn joined
nemokosch zverok.space/blog/2018-01-24-yield_self.html 10:52
from what I understand, this is really just .& in Raku 10:53
10:54 rypervenche left
maybe we could test our luck with Ruby folks 10:54
10:58 rypervenche joined 11:20 Tirifto left 11:21 Tirifto joined 11:29 jpn left, jpn joined 11:36 jpn_ joined 11:38 jpn left
tbrowder__ ugexe: ref zef and RESOURCES, did hou say you were going to mod Comp* stuff so an author can get a list of the "path" labels in a Distribution (%?RESOURCES) (or words to that effect)? that would be very cool. along with the App::Mi6 fix, all an author has to so is list a downloadable payload in dir resources (if i understand the whole thing). 11:54
Geth ecosystem: 2colours++ created pull request #629:
Remove old HTML::Tag
12:23 jpn_ left 12:33 Sevalecan left 12:34 Sevalecan joined 12:43 gordonfish left, gordonfish joined 12:47 jpn joined 12:55 jpn left 13:05 Altreus left, Altreus joined 13:35 jpn joined 13:39 jpn left
tbrowder__ or were you going to add access to META6<resources> which would also show valid paths in the distro? 13:41
13:49 ingy left 13:50 ingy joined 14:02 jpn joined 14:12 jpn left
Geth ecosystem/main: 5e45594e94 | (Márton Polgár)++ (committed using GitHub Web editor) | META.list
Remove old HTML::Tag (#629)

I'm inclined to think this can be removed.
I maintain this distribution as my own, for all intents and purposes. It shouldn't be considered still available. It will still on REA from what I understand so nothing breaks but no new code should use it.
examples: heyajulia++ created pull request #97:
Add solution to Project Euler #41
examples: fdae480b01 | Julia++ | categories/euler/prob041-heyajulia.raku
Add solution to Project Euler 41
examples: b55cb6ed05 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | categories/euler/prob041-heyajulia.raku
Merge pull request #97 from heyajulia/heyajulia-euler-41

Add solution to Project Euler #41
14:23 dbonnafo joined 14:27 dbonnafo left, jpn joined 14:29 tailgate left 14:30 tailgate joined 14:43 Xliff_ left
Geth examples: heyajulia++ created pull request #98:
Add alternative solution to Project Euler 41
15:51 kybr left, kybr joined
nemokosch m: 'almafa' ~~ /f./; $/.print 16:27
evalable6 (exit code 1) !cursor_start_cur cannot restart a cursor
in block <unit> at /tmp/Y6mtBN3Qbr line 1
Raku eval Exit code: 1 !cursor_start_cur cannot restart a cursor in block <unit> at main.raku line 1
nemokosch lizmat: this is what it means that the tokenish things and the methods have the same namespace 16:28
it's not remotely as painful as it was when built-ins could trump someone's own tokens but I would say that was a different issue 16:29
16:30 pierrot left, pierrot joined
lizmat m: 'almafa' ~~ /f./; print $/ 16:31
camelia fa
lizmat m: 'almafa' ~~ /f./; $/.Match::print
camelia !cursor_start_cur cannot restart a cursor
in block <unit> at <tmp> line 1
lizmat m: 'almafa' ~~ /f./; $/.say 16:36
camelia 「fa」
nemokosch yes, exactly 16:37
that's the token there, squatting on the name of a built-in method, for no apparent reason 16:38
not because calling .print on a Match instance would make any less sense than calling it on an Int - simply because the way things work currently, if somebody wants a token called print, it will install a method called print 16:39
I think the mere possibility of this conflict is bizarre enough - but this is more than a possibility, the example is right here 16:41
16:49 Sgeo joined 16:54 jpn left 16:59 AntonOks joined
AntonOks Can someone look into github.com/rakudo/rakudo.org/issues/95 please? Thanks! 17:00
tellable6 2021-11-03T21:29:00Z #raku <El_Che> .tell AntonOks I started playing with your ps1 workflow (without knowing much ps) :)
AntonOks tellable6: happy to hear. let me know if I can help with something :) 17:03
tellable6 AntonOks, I haven't seen happy around, did you mean raiph?
17:06 AntonOks57 joined
AntonOks57 Can someone look into github.com/rakudo/rakudo.org/issues/95 please? Thanks! 17:06
17:07 AntonOks57 left 17:08 AntonOks left 17:10 notna joined
nemokosch you sent this 6 minutes earlier 17:12
17:13 notna left 17:14 jpn joined
andinus AntonOks: should be fixed now 17:17
tellable6 andinus, I'll pass your message to AntonOks57
17:24 jpn left 17:45 dakkar left 18:10 hythm joined
hythm thanks ab5tract, I should have checked issues first 18:18
tellable6 2023-11-16T10:04:34Z #raku <ab5tract> hythm: github.com/rakudo/rakudo/issues/5446
ab5tract hythm: some things are missing in RakuAST without a ticket, so it never hurts to mention something! 18:22
Lots more are missing without a ticket than are missing with a ticket, that’s for sure
hythm makes sense
18:24 dbonnafo joined
hythm I'm getting an error trying to create rakuast node that accepts comma separated nodes (I mistakenly assumed I can pass a Seq of nodes), to explain what I'm trying to do, I created a gist where token1 works fine, but token2 gives error ` No such method 'visit-children' for invocant of type 'Seq'` 18:26
my question is how can I make something like token2 in the above gist work?
18:28 dbonnafo left
ab5tract hythm: what happens when you do |<a b>.map: … ? 18:32
hythm `|<a b>.map` works!, thanks. 18:35
its funny because I tried `.Slip` after the map and got the same error, But I did not try `|` because I thought its equivalent to `Slip` 18:37
ab5tract good luck! It’s encouraging to see RakuAST get some use
hythm: that’s usually the case but in function/method args I guess it is special cased 18:38
hythm good to know
ab5tract Otherwise you could never pass a slip as an argument 18:39
hythm makes sense, thanks for help and explaining 18:40
ugexe make sure you dont expect more than 65535 elements 18:45
m: say |(1..1000000)
camelia Flattened array has 1000000 elements, but argument lists are limited to 65535
in block <unit> at <tmp> line 1
ab5tract that’s a lot of arguments :) 18:49
Wonder why I’ve never hit that limit before lol
18:54 gugod left 18:55 gugod joined 19:27 hythm left 19:38 pierrot left 19:42 pierrot joined 19:47 phogg left 19:48 phogg joined 20:26 destroycomputers left 20:28 destroycomputers joined 20:33 dbonnafo joined 20:46 spacekookie left 20:47 spacekookie joined 20:55 dbonnafo left, dbonnafo joined 21:00 melezhik joined
melezhik .tell rf: I am experimenting with executing Raku code examples extracted from a module README page , and this is what I get for Hummingbird - quire interesting 🤨 imho - ci.sparrowhub.io/report/3812 , so if you like the idea I can send you a PR 21:02
tellable6 melezhik, I'll pass your message to rf
melezhik .tell rf: it still needs to be finished but you can get the idea ... 21:03
tellable6 melezhik, I'll pass your message to rf
21:05 thowe left, thowe joined 21:08 melezhik left
ugexe it looks like it describing how one would use their own theoretical backend module 21:19
so naturally it will fail because the ::MyBackend backend is only theoretical 21:20
21:21 greppable6 left
ugexe assuming you are talking about the `Could not find symbol '&MyBackend' in 'Humming-Bird::Backend'` error that is 21:21
21:21 greppable6 joined 21:30 jrjsmrtn left 21:40 jrjsmrtn joined 22:17 bartolin left, bartolin joined 23:41 nativecallable6 left 23:43 sena_kun left, notable6 left 23:44 evalable6 left 23:46 linkable6 left 23:47 bisectable6 left, bisectable6 joined 23:50 coverable6 left