🦋 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:02 librasteve left 00:21 yewscion joined 00:25 yewscion left 00:31 librasteve joined 00:36 librasteve left 00:48 librasteve joined 00:53 librasteve left 00:59 librasteve joined 01:03 librasteve left 01:16 librasteve joined 01:21 librasteve left 01:35 hulk joined 01:36 kylese left 01:47 librasteve joined 01:52 librasteve left 02:15 hulk left, kylese joined 02:20 librasteve joined 02:23 maylay left 02:27 librasteve left 02:29 maylay joined 02:54 librasteve joined 02:59 librasteve left 03:13 Aedil joined 03:16 librasteve joined 03:21 librasteve left 03:33 librasteve joined 03:37 librasteve left 03:45 kylese left 03:47 kylese joined 03:50 librasteve joined 03:57 librasteve left 04:08 librasteve joined 04:17 librasteve left 04:30 librasteve joined 04:35 librasteve left 04:48 librasteve joined 04:52 librasteve left 05:05 librasteve joined 05:10 librasteve left 05:39 librasteve joined 05:44 librasteve left 05:56 librasteve joined 06:08 librasteve left 06:24 librasteve joined 07:31 Sgeo left 07:34 librasteve left 08:04 wayland joined 08:08 dakkar joined 09:05 jjido joined 09:14 yewscion joined 09:16 yewscion left 09:44 soverysour joined 09:46 jjido left 09:55 yewscion joined 09:59 yewscion left 10:06 soverysour left 10:37 soverysour joined, soverysour left, soverysour joined 10:39 yewscion joined 10:42 jjido joined 10:43 yewscion left 10:55 lichtkind joined 11:20 jjido left 12:05 soverysour left 12:06 soverysour joined, soverysour left, soverysour joined
soverysour what's the idiomatic way for removing newlines (and other whitespaces) from a raku (.WHAT) Str? Can't seem to be able to remove anything using $the-string ~~ s/\s//; 12:18
oops sorry let me ask on the beginner channel :D 12:19
12:30 soverysour left 12:38 thundergnat joined 12:45 yewscion joined 12:49 thundergnat left 13:51 thundergnat joined 13:52 thundergnat left 14:25 human-blip left 14:26 human-blip joined 14:32 yewscion left
tbrowder m: sub f($a) { $a}; my $a = "hi"; my $res = f $a; say $res; 14:33
camelia hi
tbrowder in a sub in a module i'm working on i can't get that ^^^ form to work. my raku says i have two terms in a row. i've never had a prob with using that for before. when i enclose the args inside () it works!!! my raku version is 2025.03. 14:40
i'm leaving it as is for now, but any hints welcome. source is on github: 14:41
lucs tbrowder: Is the sub defined before its first use? 14:43
tbrowder hm, good point: it's in a module under lib, so it should be, but i'll check again with a rerun... 14:44
yes, apparently, lots of stuff in lib/.precomp 14:52
15:01 yewscion joined
tbrowder bin source is at <github.com/tbrowder/FinanceAPI/blo...ceapi>; lib file is <github.com/tbrowder/FinanceAPI/blo...akumod> 15:03
lucs Which sub shows the problem? 15:07
tbrowder if anyone needs data on publcly traded securities in many world markets and languages, check out <finananceapi.com>
sub v11*
^^^ 15:08
lucs Yep, gotcha.
tbrowder and using Cro fine....so far 15:09
[Coke] tbrowder: that URL looks suspicious 15:12
typo?
the obvious typo fix just hangs 15:14
tbrowder hm, i don't see typo...in my entry here or in code? 15:16
[Coke] <finananceapi.com>
tbrowder oops financeapi.com 15:18
sorry, bad eyesight..
disbot2 <nahita3882> v11* is parsed as a Version literal when called without a paranthesis, hence the compile-time error 15:19
<nahita3882> m: say (v11yes).WHAT
evalable6 (Version)
disbot2 <Raku eval> (Version)
[Coke] flowingdata.com/2025/06/12/apple-i...framework/ 15:20
disbot2 <nahita3882> web.archive.org/web/20230114101631...pe/Version
<antononcube> I am / have been repeatedly asked to install a program called ActivTrak on my computer by employers. Anyone dealt with it? I am curious / interested in making a Raku program that "cheats" ActivTrak.
tbrowder nahita3882: good call, sounds like a raku bug to me 15:21
[Coke]: does that website have financial data? 15:23
[Coke] who is nurturethevibe.com/blog/teach-llm-...-language/ ?
flowingdata? nope, unrelated 15:24
disbot2 <antononcube> @Coke We just recently discussed LLMs and Raku with '@ntv' in the "#general" Discord channel. 15:25
[Coke] ok. I ask because there's no author information 15:26
disbot2 <antononcube> @ntv outlined an impressive amount of LLM-Raku work, making LLM-aware LLMs (almost) from scratch in C.
tbrowder re my problem: i can chg sub name, but isn't the problem it a valid raku bug?
disbot2 <antononcube> *"Raku-aware LLMs" not "LLM-aware LLMs"... 15:27
[Coke] * isn't a valid char to end a sub name with, no
lucs tbrowder: I tested, and changing the name appears not to help: still "Two terms in a row"
15:28 librasteve joined
[Coke] ah, that's not a literal. unclear without looking at source 15:28
zef test doesn't complain, raku -c doesn't complain (with a fresh checkout of FinanceAPI) 15:32
tbrowder hm, gotta go for a bit..,bye 15:35
15:36 librasteve left
[Coke] RAKULIB=. raku bin/query-financeapi daily sy=GIB # hangs here. 15:40
15:53 librasteve joined 15:58 librasteve left
refactus m: sub v0 { say $^a }; v0 "foo" 16:24
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> sub v0 { say $^a }; v0<HERE> "foo"
expecting any of:
infix
infix stopper
statement end
statement modifier
stat…
16:27 librasteve joined 16:31 sjn left 16:32 sjn joined
refactus m: sub v0foo { say $^a }; v0foo "foo" 16:32
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> sub v0foo { say $^a }; v0foo<HERE> "foo"
expecting any of:
infix
infix stopper
statement end
statement modifier
…
refactus m: say v0foo 16:33
camelia v0.foo
16:34 librasteve left 16:36 dakkar left
refactus m: say Version.new: "0foo" 16:39
camelia v0.foo
refactus m: say Version.new: "foo0bar"
camelia vfoo.0.bar
refactus m: say Version.new: "foo"
camelia vfoo
16:47 soverysour joined
tbrowder i think i see prob, will try to fix in after i get some free time… 16:49
16:51 librasteve joined
refactus was just playing with it, and reminding myself about all the details of version strings. pretty sure the problem is around the is_lexical check in the version token, but seems there are some things I don't remember clearly enough to be immediately helpful 17:01
tbrowder ok, renaming the "v11*" sub to "path-v11*" solved the immediate problem. 17:23
it still sounds like a raku problem to me, though. thanks for allm 17:24
*all the look-see helpers
afk&
17:32 melezhik joined
melezhik . 17:32
17:47 abraxxa-home joined 17:57 abraxxa-home left, abraxxa-home joined
refactus m: sub foo () {}; BEGIN { say $*W.is_lexical("foo"); say $*W.is_lexical("&foo") } # pretty sure this is why github.com/rakudo/rakudo/blob/6a2b...r.nqp#L740 fails to see subs in scope 18:10
camelia 0
1
refactus I don't use microsoft products including github but if anyone wants to file an issue or PR, there it is 18:12
18:12 abraxxa-home left
lizmat refactus: $*W doesn't exist in RakuAST, so that code is pretty dead now: could you confirm the problem exists in RakuAST ? 18:13
refactus what's the easiest way to do that? 18:14
istr there being some env var or command line switch or something 18:16
[Coke] RAKUDO_RAKUAST=1
lizmat RAKUDO_RAKUAST=1
refactus seems to, but I'm just using the precompiled binary from april. not confirmed on a current version 18:19
18:26 abraxxa-home joined
refactus sub foo () {}; BEGIN { say $*R.resolve-lexical("foo"); say $*R.resolve-lexical("&foo"); } acts the same, that'll be at github.com/rakudo/rakudo/blob/6a2b....nqp#L4502 18:29
unless there's an entirely better way to do the check, it seems like we'd need to check for both with and without the ampersand, because of no-sigil things like my \foo = -> {} 18:38
18:47 abraxxa-home left 18:53 jjido joined 18:57 stanrifkin joined 19:01 abraxxa-home joined 19:25 librasteve left 19:27 soverysour left 19:34 librasteve joined 19:42 melezhik left
refactus when I tried to use rakubrew with RAKUDO_RAKUAST still set, it failed compiling blib/CORE.c.setting.moarvm a split second after stage start with Class X::Redeclaration+{X::Comp} cannot inherit from X::Redeclaration because the parent is not composed yet at src/Perl6/Metamodel/Configuration.nqp:53 20:18
don't know if that's already known, or if it's something we might stumble into when rakuast is enabled by default 20:19
20:22 librasteve left 20:34 wayland76 joined, yewscion left 20:35 wayland left 20:39 yewscion joined 20:40 librasteve joined 20:47 librasteve left 20:56 librasteve joined 21:00 jjido left, librasteve left 21:06 jjido joined 21:13 librasteve joined 21:19 yewscion left
ab5tract refactus: currently RakuAST cannot compile the core setting 21:40
21:40 abraxxa-home left
ab5tract So it is known. It’s the current blocker on enabling as default (by which I mean there may be other blockers that appear after we fix that) 21:42
21:42 librasteve left 21:50 librasteve joined 21:56 Sgeo joined 21:59 librasteve left 22:26 yewscion joined 22:29 librasteve joined 22:30 yewscion left 22:49 librasteve left
tonyo ab5tract: been a while since i looked at any of that. what is the blocker with ast & core ? 22:55
22:58 lichtkind left
ab5tract ISTR 3 outstanding issues noted by nine++ when he finished the grant work 23:02
One moment
R#5855 R#5854 23:05
linkable6 R#5855 [open]: github.com/rakudo/rakudo/issues/5855 [RAKUDO_RAKUAST=1] Could not find a compile-time-value for lexical $=finish
R#5854 [open]: github.com/rakudo/rakudo/issues/5854 [RAKUDO_RAKUAST=1] Confusion when declaring nested multi-part-name packages with similar names to the outer package
ab5tract tonyo ^^
23:10 Aedil left 23:17 librasteve joined, wayland76 left
ab5tract I guess the third ticket was already resolved, I guess? 23:29
[Coke] i thought rakuast could compile the setting but couldn't install 23:30
ab5tract Ah yes indeed, thanks for clarifying [Coke] 23:31
I would also expect R#5623 to be a blocker, but I can’t recall it being discussed as such recently 23:33
linkable6 R#5623 [open]: github.com/rakudo/rakudo/issues/5623 [RAKUDO_RAKUAST=1] Uses of `$*W` that will need to be fixed in the setting for RakuAST
23:51 jjido left