🦋 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:02 reportable6 left 00:03 reportable6 joined 00:36 lichtkind left 00:54 Skarsnik_ left 01:57 discord-raku-bot joined 02:36 frost joined 03:36 releasable6 left, evalable6 left, linkable6 left 03:37 releasable6 joined 03:53 Guest86 joined 03:54 Guest86 left 04:04 squashable6 left 05:04 quotable6 left, shareable6 left, bisectable6 left, nativecallable6 left, greppable6 left, releasable6 left, tellable6 left, unicodable6 left, reportable6 left, statisfiable6 left, sourceable6 left, bloatable6 left, notable6 left, committable6 left, coverable6 left, benchable6 left 05:05 bloatable6 joined 05:06 benchable6 joined, nativecallable6 joined, statisfiable6 joined 05:07 tellable6 joined, coverable6 joined, greppable6 joined 05:56 frost left 06:00 frost joined 06:05 unicodable6 joined, squashable6 joined, shareable6 joined, committable6 joined 06:06 sourceable6 joined 06:39 evalable6 joined 07:04 reportable6 joined 07:05 bisectable6 joined 07:07 quotable6 joined 07:23 seednode left 07:24 seednode joined 07:38 linkable6 joined 08:07 releasable6 joined, notable6 joined 08:23 frost left 09:20 MasterDuke joined 09:25 DocHolliwould joined 09:27 DocHolliwould left 09:28 jjido joined 09:31 DocHolliwould joined, HrBollermann joined
HrBollermann i need advice. how could i remove the wetness in the grammar? 09:33
www.reddit.com/r/adventofcode/comm...?context=3
i mean the 5 lines that are basically the same, I feel I should be able to abtract those 09:34
09:36 Colt left
MasterDuke moritz_ is the person to ask 09:36
HrBollermann summons the arcane underscore devourer 09:42
moritz_ wetness? 10:19
all I can say is that the grammar engine isn't doing a lot of work there, so going without it might be easier :D 10:34
one could try to generalize the various parens matchers, something like token paired($open, $close) { $open { $*rep.push: $close } ~ $close <balanced> { $*rep.pop } } 10:35
dunno if that works
10:36 linkable6 left, evalable6 left, mscha joined
mscha m: my @foo = 0,0,0,0,0; say all @foo == 0 ?? 'OK' !! 'Huh?'; 10:37
camelia all(Huh?)
mscha m: my @foo = 0,0,0,0,0; say all(@foo) == 0 ?? 'OK' !! 'Huh?'; 10:38
camelia OK
mscha Ah.
HrBollermann @moritz_ wetness, as in repeated patterns in code. as in not being DRY 10:42
10:47 DocHolliwould left 10:51 Geth left, Geth joined 10:52 lichtkind joined 11:01 Sgeo left
moritz_ yeah, what I said, either try a parameterized token, or get rid of the grammar 11:13
HrBollermann i seem to be too daft to figure out how to call the token 11:19
11:37 linkable6 joined 11:41 mscha left
dpk m: "\u0300" ~~ /:ignoremark ^ $/ 11:50
camelia 5===SORRY!5=== Error while compiling <tmp>
Unrecognized backslash sequence: '\u'
at <tmp>:1
------> 3"\7⏏5u0300" ~~ /:ignoremark ^ $/
expecting any of:
double quotes
statement list
term
dpk m: "́" ~~ /:ignoremark ^ $/ 11:52
camelia 5===SORRY!5=== Error while compiling <tmp>
Bogus statement
at <tmp>:1
------> 3<BOL>7⏏5"́" ~~ /:ignoremark ^ $/
expecting any of:
prefix
statement list
term
dpk m: say "́" ~~ /:ignoremark ^ $/
camelia 5===SORRY!5===
Argument to "say" seems to be malformed
at <tmp>:1
------> 3say7⏏5 "́" ~~ /:ignoremark ^ $/
Bogus postfix
at <tmp>:1
------> 3say 7⏏5"́" ~~ /:ignoremark ^ $/
expecting any of:
infix
dpk m: say "" ~~ /:ignoremark ^ $/
camelia 「」
dpk m: say "\x301" ~~ /:ignoremark ^ $/ 11:54
camelia Nil
dpk m: say "\x301" ~~ /:ignoremark ./ 11:55
camelia 「́」
dpk m: say "\x301" ~~ /:ignoremark ''/
camelia 「」
dpk m: say "\x301" ~~ /:ignoremark ^ '' $/
camelia Nil
11:59 patrickb joined 12:02 reportable6 left 12:03 reportable6 joined 12:13 jjido left 12:24 a_friend joined
a_friend quick question: how do i forward declare a class? 12:24
El_Che I would use roles 12:30
lizmat a_friend: to answer the question: 12:33
m: class A { ... }; class A { has $.foo = 42 }; dd A.new 12:34
camelia A.new(foo => 42)
lizmat but as El_Che said: you should probably think about using roles if you can
a_friend i see, thanks for the help 12:38
i had seen the stackoverflow answer to this question and assumed that "..." was some pseudocode
it appears that "..." is some actual syntax
12:38 tejr left
lizmat no, it's the "yada yada yada" operator :-) 12:38
12:38 evalable6 joined
El_Che docs.raku.org/language/glossary#Stub 12:39
docs.raku.org/language/glossary#Abstract_class
12:39 tejr joined 13:03 HrBollermann left 13:24 a_friend left 14:08 Colt joined 14:26 Colt left 14:27 Colt joined 14:30 Colt left 14:31 Colt joined 14:32 Colt left 14:34 Colt joined, Colt left, Colt joined 14:35 Colt left 15:00 monkey_ joined 15:11 monkey_ left 15:14 monkey_ joined 15:20 getimiskon joined 15:21 dextercd joined 16:04 monkey_ left 16:30 monkey_ joined 17:30 linkable6 left, reportable6 left, notable6 left, evalable6 left, unicodable6 left, bisectable6 left, sourceable6 left, shareable6 left, quotable6 left, releasable6 left, statisfiable6 left, tellable6 left, benchable6 left, coverable6 left, squashable6 left, bloatable6 left, nativecallable6 left, greppable6 left, committable6 left, unicodable6 joined, xinming left 17:31 benchable6 joined 17:32 coverable6 joined, nativecallable6 joined, evalable6 joined 17:33 tellable6 joined, reportable6 joined, releasable6 joined 18:02 reportable6 left 18:05 reportable6 joined 18:06 xinming joined
Xliff Does anyone here have a link to a talk by someone who was positioning Raku as a language for Quantum Computing? 18:16
Was it Randal?
Ah! Damian! 18:17
18:18 zacts joined
Xliff Here's one: www.youtube.com/watch?v=ORjyXcLDd9M&loop=0 18:22
18:25 getimiskon left 18:31 bloatable6 joined 18:32 greppable6 joined, sourceable6 joined, statisfiable6 joined 18:33 linkable6 joined, committable6 joined 18:44 jjido joined 19:31 notable6 joined 19:33 shareable6 joined, bisectable6 joined, squashable6 joined 20:09 Sgeo joined 20:10 vrurg left 20:13 vrurg joined 20:18 Geth left, Geth joined 20:19 [Coke] left 20:22 [Coke] joined 20:41 Geth joined 20:53 Geth left, Geth joined 21:30 tejr left 21:33 quotable6 joined 21:40 Guest66 joined, Guest66 left 21:41 tejr joined 21:46 jjido left 21:58 monkey_ left 22:07 jjido joined 22:27 monkey_ joined 22:45 jjido left 23:20 patrickb left 23:30 wanko left 23:41 HrBollermann joined
HrBollermann yo 23:42
23:44 djerius left, djerius joined