🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
pilne raku isn't really a bit-fiddling language (yet), not sure how "good" of a feature it would be honestly for a language like raku? 01:33
a bitarray/matrix module might be a fun thing to take a stab at
nevermind... nativecall makes it silly easy.... 01:35
bless this language
hythm m: multi trait_mod:<is>( Variable:D \v, :$what ) { say v.var }; my @a is what; my @b[1] is what; 02:03
evalable6 []
(Array)
hythm Can someone explain why .var for the shaped array is a type object (Array) ? 02:09
SmokeMachine vrurg: merged! Thanks! 05:10
summerisle I'm looking at modifying the raku-mode SMIE rules - is there a complete grammar for raku that's readily available? I could swear I saw one at some point 05:16
(for emacs)
not a grammar _for_ emacs, but just the language
ah github.com/rakudo/rakudo/blob/mast...rammar.nqp 05:17
jmerelo releasable6: status 07:28
releasable6 jmerelo, Next release will happen when it's ready. 1 blocker. 22 out of 101 commits logged
jmerelo, Details: gist.github.com/96f1696881922e92fb...5d469d6b59
patrickb o/ 09:18
El_Che patrickb: if you have the time can you have a look at these build fails: github.com/nxadm/rakudo-pkg/runs/1...focus=true and github.com/nxadm/rakudo-pkg/runs/1...step:5:308 09:20
patrickb: in short: rakud builds fine everywhere except on alpine edge and fedora rawhide 09:21
patrickb: I suspect some binutils bug
patrickb those are strange errors indeed... 09:22
did you try contacting upstream? 09:23
El_Che patrickb: all the other dev OSes like debian testing. unstable, experimental and ubunt dev build fine
patrickb: not yet, trying to figure out where it breaks
I posted the links on #moarvm
El_Che patrickb: documented as github.com/MoarVM/MoarVM/issues/1424 and github.com/MoarVM/MoarVM/issues/1425 10:03
patrickb El_Che++ 10:05
jmerelo El_Che: it's a missing file. Is that compiled only in Alpine? 10:49
El_Che jmerelo: the file is there
jmerelo: it's werid as hell. The same tar compiles fine on other alpine releases
with the same pkgs 10:50
jmerelo El_Che: it's literally missing, because it cannot find it. It's difficult to argue with an error message.
El_Che I'll add an ls to the podman cmds so it's clear the file is there 10:51
El_Che I habe been bitten by binutils with similar errors 10:52
v
that a good thing of containers, easy to reproduce :)
jmerelo El_Che: you can try and convince me, but it's difficult to convince that command. I'd rather try and find why it's not finding it, and why it happens only there.
El_Che jmerelo: you're saying the same as I do :) 10:53
I believe the build scripts think the file is not there
El_Che I looked at the obvious and the binutils in rawhide and fedora 33 are the same version 10:54
jmerelo El_Che: maybe you could create a workflow that tests github.com/MoarVM/libatomic_ops before packaging it? That library has not changed for almost 3 years... 10:55
El_Che jmerelo: that's not very different from what I do? The builds of moarvm/nqp/rakudo on fedora 31, 32 and 33 are fine. Do you mean to debug libatomic in isolation? 10:57
jmerelo El_Che: That's what I meant, yes. The thing is I'm not sure it's using _that_ version of the library. Looking at Configure.pl, it looks like it's checking for the library and using that one if it's not present. 10:58
El_Che: It's also doing a lot of copying...
github.com/MoarVM/MoarVM/blob/78f4...#L592-L596
El_Che I am pretty sure it's not the library itself, but something in the moarvm build process or OS tool chain 10:59
jmerelo El_Che: that's what I'm saying.
El_Che: Fedora has a libatomic_ops all by itself src.fedoraproject.org/rpms/libatomic_ops It shouldn't need to compile it, I think... 11:00
El_Che I can build the lib in isolation to be sure
but idd
indeed
jmerelo El_Che:it does need headers, anyway 11:02
El_Che the fedora fails happens later but is similarily weird 11:04
jmerelo El_Che: my money would be on debugging Configure.pl.
El_Che: Also, there's this PR github.com/MoarVM/MoarVM/pull/1254 that I created precisely for test-compiling Alpine
El_Che I am working on something to compile and package on all supported distros/versions 11:05
as a refactoring of rakudo-pkg
with the addition that you can specify commits of all components, next to releases
jmerelo El_Che: great
El_Che fork the repo, change a version file if necessary and see the results 11:06
El_Che it looks like github actions will kil travis 12:01
lizmat agree, although it feels like mostly suicide to me 12:02
Travis made it harder and harder to use for open source
El_Che yeah, I missed that because I had a pro account 12:03
but it became very slow
lizmat yeah, unusably so
lizmat spent an hour or so yesterday to remove Travis from all raku-community-modules 12:04
El_Che I think I will be able to buid packages for 25 distro/version under the 10 minutes where it tooks hours in travs
lizmat is a hero 12:05
tbrowder hi, gang 12:34
lizmat tbrowder o/
tbrowder speaking of testing, is there a way to set an env var for the workflow tests? 12:35
lizmat: howdy! \o/
i guess you're in a shell so you could just "export METRICS=/usr/share/afm" 12:38
lizmat yup
tbrowder thnx, off to the races... 12:40
guifa2 m: my int \foo = 8; 15:22
evalable6 (exit code 1) Type check failed in binding; expected int but got Int (8)
in block <unit> at /tmp/1gr4VouIPP line 1
guifa2 m: my int \foo = my int $ = 8;
evalable6 (exit code 1) Type check failed in binding; expected int but got Int (8)
in block <unit> at /tmp/hH4mjgo6Rb line 1
guifa2 Any way to get a sigil-less to work with natives? 15:23
[Coke] yawns 16:06
Xliff \o 16:48
Is Str.comb the recommended way for getting the occurrences of a substring in string?
[Coke] or tr check the count, maybe? 16:49
timotimo i recommend comb 17:01
Xliff timotimo: 17:09
I was using a regex and using prefix + on them resulting match object.
raku-bridge <ionsolo> there is an anchor for search inside a word also 17:10
moritz Xliff: comb already looks for all non-overlapping occurrences 17:12
Xliff moritz: Got it. Glad I asked! :) 17:14
ens i use raku btw 18:38
[Coke] anyone using rakubrew on OS X ? (the OS won't let you run it.) 18:39
ens: glad to hear it!
configure.pl completes, make dies immediately with: src/moar.h:31:10: fatal error: 'atomic_ops.h' file not found 18:42
ww 18:43
ens i am still a newbie but i would like to consider the possibility of doing something with raku and FUSE but i am having trouble finding what to do in order to use fuse things from raku 19:02
perhaps someone has a suggestion?
moritz ens: I'm not aware of any FUSE bindings for raku, so you'd likely need use the C API through Nativecall 19:10
docs.raku.org/language/nativecall 19:11
neshpion is there a CLI repl for raku? alike to `irb` for ruby
moritz if you start raku without arguments, you're dropped into the REPL 19:14
Xliff ens: What are you trying to do?
moritz not as fancy as iypthon, but usable
neshpion oh
i didn't even try
lol
ens moritz: thanks for the nativecall suggestion. i will read up on it 19:26