🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm
Set by lizmat on 8 June 2022.
Geth rakudo/main: 42c2f5a75b | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: reorganize variable stub logic a bit

  MasterDuke++ for the nudge
11:13
lizmat ab5tract: if looking for stuff, I was going through my notes and found this one: 11:19
m: dd gather for 1..20 { .take if $_ == 9 ff $_ == 13 }
camelia (9, 10, 11, 12, 13).Seq
lizmat m: Q|dd gather for 1..20 { .take if $_ == 9 ff $_ == 13 }.AST.EVAL
camelia ===SORRY!=== Error while compiling <tmp>
Couldn't find terminator | (corresponding | was at line 1)
at <tmp>:1
------> take if $_ == 9 ff $_ == 13 }.AST.EVAL⏏<EOL>
expecting any of:
|
lizmat m: Q|dd gather for 1..20 { .take if $_ == 9 ff $_ == 13 }|.AST.EVAL
camelia This element has not been resolved. Type: RakuAST::Infix
in any resolution at src/Raku/ast/scoping.rakumod line 690
in any IMPL-INFIX-QAST at src/Raku/ast/expressions.rakumod line 311
in any IMPL-INFIX-COMPILE at src/Raku/ast/expressions.r…
lizmat I wonder how we should fix this for RakuAST: 11:38
github.com/rakudo/rakudo/blob/main...od#L69-L73
it doesn't look like fixed, so maybe the reason for some precomp issues with RakuAST
ab5tract lizmat: maybe a good idea to file it as an issue so that it doesn't get lost? 12:03
the `ff` problem, I mean
lizmat yeah, probably should :-)
ab5tract I'm going to move on from the remaining once issue. I think the real fix is like I mentioned before, we need to propagate p6stateinit for the compunit. I don't know how they manage to attach the declaration properly in the old frontend 12:06
lizmat understood... there's plenty of other, bigger fish to fry 12:07
Geth rakudo/main: 5ed482e0f7 | (Elizabeth Mattijsen)++ | src/core.c/Routine.rakumod
Streamline Routine.gist
12:57
lizmat Question of the day: what does this display? 14:20
class A { has @.a = 1,2,3; method b() { "$.a" } }; dd A.new.b
evalable6 "1 2 3"
lizmat evalable6 you spoilsport
TIL
ugexe that is what i expected, but i'm not the right person to ask :P 14:23
$. is like self. 14:24
lizmat m: class A { has @.a = 1,2,3; method b() { "@.a" } }; dd A.new.b
camelia "\@.a"
nemokosch yes, $.foobar is actually $(self.foobar)... 14:25
ugexe i also expect that lol
m: my @a = 1,2,3; say "@a"
camelia @a
nemokosch : class A { has @.a = 1,2,3; method b() { "@.a()" } }; dd A.new.b 14:26
oops
m: class A { has @.a = 1,2,3; method b() { "@.a()" } }; dd A.new.b
Raku eval "\@.a()" 14:27
nemokosch okay, now this is kinda bizarre
m: my @demo = <a b c>; say [email@hidden.address]
m: my @demo = <a b c>; say "@demo.join()"
Raku eval abc
nemokosch that should have interpolated by all reasonings available 14:28
didn't we collect some issue of similar spirit with Rob Ransbottom? 14:29
ugexe m: my @a = 1,2,3; say "@a"; say "@a<>"; # this is unexpected to me though 14:31
camelia @a
1 2 3
nemokosch github.com/rakudo/rakudo/issues/5249 not the same thing but on the same topic
@.a() doesn't interpolate even if a is a usual method 14:37
moreover, it's still an error in RakuAST land, it tries to do (@.a)() 14:38
again, even if a happens to be a method
Geth rakudo/main: 50c2f86e82 | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: streamline variable access codegen

  - some more helper subs
  - some more documentation
14:39
rakudo/main: 8d82622a5c | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: remove (now) dead code
14:44
Geth rakudo/main: 7004c56350 | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: replace ?? 1 !! 0 by ?

Aka an nqp::istrue() internally
15:10
Geth rakudo/main: 2671792ae1 | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: streamline variious declaration logic

  - fewer repeated hash and dyn var lookups
  - attachments at one place, instead of many
16:37
lizmat spectest down from 3:16 to 3:15 for me
Geth rakudo/main: ebd4c00e8a | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: seperate rare "is repr" handling

As its handling is very different and the number of occurrences of
  "is repr" in the ecosystem is *very* low.
17:21
Geth rakudo/main: a39765a689 | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: streamline a lot of numeric value logic
18:21
lizmat spectest 3:15 -> 3:14 18:22
Geth rakudo/main: 1504fc2f65 | (Elizabeth Mattijsen)++ | src/Raku/Actions.nqp
RakuAST: streamline version/parameter handling a bit
18:41