🦋 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.
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
infix stopper
postfix…
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
infix stopper
sta…
hythm m: say q[grammar G { token TOP { "top" } }].AST.statements.head.expression.DEPARSE 03:38
camelia grammar G {
token TOP { top }
}
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
ugauga I'm not Gay 08:56
antononcube Duly noted. 08:57
Geth advent/main: 7c48926ca1 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | raku-advent-2023/authors.md
Add presentation
10:03
ab5tract hythm: github.com/rakudo/rakudo/issues/5446 10:04
tellable6 ab5tract, I'll pass your message to hythm
nemokosch zverok.space/blog/2018-01-24-yield_self.html 10:52
from what I understand, this is really just .& in Raku 10:53
maybe we could test our luck with Ruby folks 10:54
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
11:57
tbrowder__ or were you going to add access to META6<resources> which would also show valid paths in the distro? 13:41
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.
  github.com/adaptiveoptics/HTML-Tag/issues/3
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.
14:13
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
14:16
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
Geth examples: heyajulia++ created pull request #98:
Add alternative solution to Project Euler 41
14:56
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
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
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?
AntonOks57 Can someone look into github.com/rakudo/rakudo.org/issues/95 please? Thanks! 17:06
nemokosch you sent this 6 minutes earlier 17:12
andinus AntonOks: should be fixed now 17:17
tellable6 andinus, I'll pass your message to AntonOks57
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
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
gist.github.com/hythm7/e47e868bc4b...5679b935cd
my question is how can I make something like token2 in the above gist work?
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
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
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
ugexe assuming you are talking about the `Could not find symbol '&MyBackend' in 'Humming-Bird::Backend'` error that is 21:21