🦋 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.
Xliff Hi. I'm getting a lot of seg faults with g4d43bbf95 08:09
Also getting a lot of these: [DOM::Tiny] No such method 'protect' for invocant of type 'NQPArray' 08:10
This should trigger it: 'zef install DOM::Tiny'
patrickb o/ 08:42
lizmat Xliff: but that's a revert? of basically the commit before that? 08:44
patrickb nine: I'm a bit puzzled by failures in my OBS build setup. The builds now routinely fail with a compile error in the rakudo build. (But I did see them succeed.) My OBS setup is basically clone of yours.
nine: If you can spare a minute, could you have a look if something rings a bell? build.opensuse.org/package/show/ho...udo-moarvm 08:46
lizmat Xliff: DOM::Tiny installs for me without issue with g4d43bbf95
nine patrickb: [ 42s] ===/usr/bin/nqp-m version 2022.06 is outdated, 2022.07-9-gd397598a1 expected. 08:47
patrickb nine: Thanks! 08:48
Xliff lizmat: I'm puzzled myself. I am trying to find the root cause. 10:17
I think I might need to nuke my rakudo dir. 10:18
But I am in the middle of $dayJob, atm. Might be a while.
lizmat ok
Xliff How can I trigger case insensitive mode inside a regex?
i:?
lizmat :i rather 10:19
m: say "FOO".match( / :i foo / )
camelia 「FOO」
lizmat m: say "FOO".match( rx:i/ foo / ) 10:20
Xliff Ah, thankee.
camelia 「FOO」
lizmat inside or outside :-)
think of it as an adverb
moritz fun fact: there are adverbs that change how a regex is used (like :g/:global, :pos etc) and others that affect how a regex is compiled (:i, :ignoremark, :ratchet come to mind) 10:38
if you call a .match method with an existing regex, you cannot modify it with :i, you can only pass things like :global in 10:39
lizmat TIL :-) 10:50
thundergnat I had to find unique values from a large list of numeric and string values loaded from a file (as strings), with the constraints that numerics were unique by magnitude and strings case insensitive. Took a while fiddling with it, but Raku came through \o/. 12:12
m: say '2 7 5 -7 2 3 3 3 A9 a9 A4 b1 5 7 7 7.0 +7 0.7e1 -7 B1'.words.unique: :as({ .Numeric ?? (+$_).narrow !! .lc }); 12:13
camelia (2 7 5 -7 3 A9 A4 b1)
thundergnat Fist time I ever used the :as parameter to unique in the real world. 12:14
equinox guifa: thank you very much.
thundergnat err... First 12:15
El_Che building and uploading rakudo-pkg for newly released ubuntu 22.10 13:14
lizmat El_Che++ 13:15
El_Che the update also bundles the latest zef 13:54
for all distros
Newbie21 I was able to get Raku to running using the Linux / MacOS instructions. 14:04
I still think the WSL instructions on rakudo.org/star/source look out of date wrt directory structure.  The step "cd nqp" fails (no such directory), but I was able to find another nqp directory. 14:05
The step "git checkout $(cat ../tools/build/MOAR_REVISION)" also failed, and I couldn't find a MOAR_REVISION file anywhere. 14:06
Newbie21 I was working with rakudo-star-2022.07-01.tar.gz 14:07
El_Che Newbie21: you can install rakudo-pkg on the WSL 14:10
patrickb nine: Thanks for your hint. Just like that the tests start to succeed: cibot.rakudo.org/testset/72 14:59
Nemokosch what is the purpose of this? 15:02
Rog Bringing this over from raku-beginner: is it a bug or undocumented intentional behavior that `*{*}` does not parse the same as `{ $^a{$^b} }` 15:35
The Whatever-currying docs entry does not mention hash indexing as a special case
Nemokosch if I were to propose an answer to my own(-ish) question: maybe it all boils down to what handles Whatever as a distinct case and what does not? 15:39
if that's true, it would be hard to argue against (other than "maybe providing two distinct functionalities under the same symbol wasn't a good idea in the first place") 15:47
leont IME whatever star DWIMs if you think of it in context of operator overloading 15:50
Rog I think it does actually come down to what the signature is on the hash access operator, but I think if it’s behaving the way it’s meant to that ought to get a mention in the docs 16:00
Associative indexing operator, rather, just to be pedantic:^) 16:02
tbrowder hi, has anyone here ever use 'zef fetch Some::Module" 17:04
i just tried it on an ininstalled module and the same module after it was installed and don't the module contents in my working dir. should i see it there? 17:06
s/ininstalled/uninstalled/ 17:07
i got no msgs from zef either way 17:08
tbrowder *don't see the module contents... 17:08
oops, trying "zef look" now... 17:10
ugexe `zef fetch Some::Module` just downloads the module to zefs cache 18:13
mostly pointless now that the cache itself isn't the most preferred ecosystem anymore 18:14
johnjaye i don't know if what i'm doing is moral. but i am making a cloud debian image just to run raku on my tablet. 19:36
we'll see if it works!