🦋 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.
guifa ugexe: does Build.pm6 have to be pm6 or can it be raku nowadays? 02:17
ugexe it can be rakumod, pm6, or pm 02:50
Nemokosch . 10:14
tellable6 2022-10-06T11:51:46Z #raku <lizmat> Nemokosch: fwiw, with static optimization enabled, a -1 will be codegenned as a WVal of -1
Nemokosch m: my @test = <1 2 3> X[&slip] <a b c>; dd @test; 10:15
camelia Array @test = [slip(IntStr.new(1, "1"), "a"), slip(IntStr.new(1, "1"), "b"), slip(IntStr.new(1, "1"), "c"), slip(IntStr.new(2, "2"), "a"), slip(IntStr.new(2, "2"), "b"), slip(IntStr.new(2, "2"), "c"), slip(IntStr.new(3, "3"), "a"), slip(IntStr.new(3, …
Nemokosch why can't it unroll the slips?
if I copy the output as a literal, that will unroll
using <== instead of = also doesn't help 10:17
lizmat I think the X metaop doesn't honor the special functionality of slip :-( 10:18
perhaps something we forgot in the GLR
this off the top of my hat 10:19
Nemokosch is there maybe a way to command a list to unwrap the slips inside? 10:20
lizmat mm: my @test = <1 2 3> X[&slip] <a b c>; dd @test.flat; 10:21
m: my @test = <1 2 3> X[&slip] <a b c>; dd @test.flat;
camelia ($(slip(IntStr.new(1, "1"), "a")), $(slip(IntStr.new(1, "1"), "b")), $(slip(IntStr.new(1, "1"), "c")), $(slip(IntStr.new(2, "2"), "a")), $(slip(IntStr.new(2, "2"), "b")), $(slip(IntStr.new(2, "2"), "c")), $(slip(IntStr.new(3, "3"), "a")), $(slip(IntSt…
lizmat m: my @test = <1 2 3> X[&slip] <a b c>; dd @test.Slip
camelia slip($(slip(IntStr.new(1, "1"), "a")), $(slip(IntStr.new(1, "1"), "b")), $(slip(IntStr.new(1, "1"), "c")), $(slip(IntStr.new(2, "2"), "a")), $(slip(IntStr.new(2, "2"), "b")), $(slip(IntStr.new(2, "2"), "c")), $(slip(IntStr.new(3, "3"), "a")), $(slip(I…
lizmat eh
meh
Nemokosch from what I see, the Scalar container shouldn't be a problem with slips 10:30
lizmat a Slip in a scalar container won't slip 10:33
m: my $a = (1,2,3).Slip; .say for $a
camelia 1
2
3
lizmat hmmm
Nemokosch m: dd [$(slip(1, 2)), $(slip(3, 4))] 10:34
camelia [1, 2, 3, 4]
lizmat hmmmmm
Nemokosch I don't know if that's two wrongs or one wrong but the behavior of X still seems magic 10:37
lizmat agree 10:41
Nemokosch it must be a data structure, though, because it can be copied/fed into other variables and it preserves the same format 10:47
it's stable in this regard
lizmat clickbaits rakudoweekly.blog/2022/10/10/2022-...our-phone/ 12:50
tonyo new doc site++ 13:05
El_Che no irc in community on new site? 13:57
Nemokosch it's just like the current site 14:09
except the link was wrong, I already opened a PR for that
Rog ugexe: I’m on zef 0.13.8 14:22
Are you sure zef uses TMPDIR? I set that but it’s still downloading to the default location 14:26
Changed it in the config file, but still getting the same error. Maybe it’s not a path length thing? 14:34
[Coke] src\jit\x64\emit.c(8): warning C4129: 'j': unrecognized character escape sequence 14:51
src\jit\x64\emit.c(8): warning C4129: 'e': unrecognized character escape sequence
^^ seeing this on windows, btw.
btw, I was able to do my windows install with no errors (tried again today) 14:52
no change to tmpdir or anything.
Nemokosch so the path isn't read properly 14:57
tbrowder .tell tonyo FYI i've been beating my head about the formatter unique class issue and no matter what i do, the symbols leak into the scope of any using program. i am now using a random class name based on a modified uuid from module UUID::V4 since the class name doesn't actually show in user output. that seems to work well so far. 16:01
tellable6 tbrowder, I'll pass your message to tonyo
tonyo you mean trying to make them unique each time the generator is run?
tbrowder yes
tonyo Okay, in a meeting so give me a few 16:04
tbrowder you or lizmat or other guifa (or other expert person) may be able to short cut my hack somehow, but it's good enough i think for me to finish the using module. 16:05
s/other guifa/guifa/ 16:06
perryprog there's multiple guifas?!
tbrowder not afaik, hence the attempted correction 16:08
away for a while...
tonyo m: gist.github.com/tonyo-tatari/40d72...18079159f6 #tbrowder 16:23
camelia ===SORRY!=== Error while compiling <tmp>
Confused
at <tmp>:1
------> https:⏏//gist.github.com/tonyo-tatari/40d726ec4
expecting any of:
colon pair
tonyo oops, how do you run a gist?
oh, i thought that used to work. 16:26
.tell tbrowder gist.github.com/tonyo-tatari/40d72...18079159f6
tellable6 tonyo, I'll pass your message to tbrowder
tbrowder well, if it does, i don’t want to use nqp 16:27
melezhik .tell lizmat I've added more details to rak/docker bug , you might be interested in, I think I've golfed it - github.com/lizmat/App-Rak/issues/1...1271724267 16:48
tellable6 melezhik, I'll pass your message to lizmat
ugexe Rog: i think the TMPDIR= thing is gonna require a more recent version of zef 17:05
but yeah it might not be a path length thing. i'd probably try to run that synposis code example for Zef::Extract and maybe print out the command being used so you can run i by hand 17:06
tonyo .tell tbrowder you can remove the `use nqp;` and the `nqp::clone` call and it will still work fine 17:30
tellable6 tonyo, I'll pass your message to tbrowder
tbrowder ok, i;; 17:31
erg, i'll try it...
tonyo just updated the gist so you can see it without 17:33
tbrowder ok, just 18:16
...i'll try to use it, thnks, tonyo
Nemokosch1 I wonder how I proceeded to be Nemokosch1 now, lol 18:51
first reincarnation?
lizmat do a /nick Nemokosch ? 18:54
tellable6 2022-10-11T16:48:46Z #raku <melezhik> lizmat I've added more details to rak/docker bug , you might be interested in, I think I've golfed it - github.com/lizmat/App-Rak/issues/1...1271724267
El_Che ha 18:55
irc?
that's handy for mentions
N+tab
tbrowder tonyo: it looks promising!
tonyo tbrowder: if that's working for you and you want a little different way of structuring it (eg with named roles), checkout the comment i just left on the gist 20:27
tbrowder ok, will do
guifa tbrowder trust me I understand that. I do so much rewriting, at a certain point I need to just settle for good enough lol 21:54
hythm is there a rakuish way to delete a file at the exit of a program (the file should be deleted in all cases, if the program ended normally or due to unhand-led exception)? 21:55
tbrowder 👍🏻
guifa: ^^^ 21:56
melezhik o/ 21:56
tbrowder \o
hythm m: my $file will end { .unlink } = '/tmp/file'.IO ## doesn't work but I mean something like this 21:57
camelia Some exceptions were thrown in END blocks:
X::Method::NotFound: No such method 'unlink' for invocant of type 'Any'
in block at <tmp> line 1
in any <main> at /home/camelia/rakudo-m-inst-1/share/perl6/runtime/perl6.moarvm line 1
melezhik I am reconsidering all my previous experience with Sparrow and creating a design draft for SparrowCI - completely new CI system built on top of Sparrow/Sparky - ideas, comments are welcome - github.com/melezhik/SparrowCI
all low level building blocks are already in place , so it'll be relatively easy to build a new system, however I want to spend to more time on end user API 21:58
melezhik this is where I'd need help from community 21:58
the main idea this is going to be completely language agnostic system with many languages support, built however with Raku. ... 21:59
tbrowder melezhik: i wish i had time to set up and use yr stuff because it would help ease the burden of multi remote servers for sure. good luck. i’m still going thru recent raku con video stuff. did you do one on sparky and friends? 22:01
melezhik I did one on Tomtit, not Sparky/Sparrow however, Tomtit would give one a sense of Sparrow 22:02
lizmat hythm: END $file.unlink 22:04
hythm: END (ENTER my $file = $*TMPDIR.add("foo")).unlink 22:05
tbrowder melezhik: thnx 22:06
hythm lizmat thanks, that worked. 22:12
 I tried that before and it wasn't working for me. but I have explicit `exit 1` inside the CATCH block, that is probably the reason why the file wasn't deleted when an exception occur 22:14
after removing the explicit `exit` the file got deleted 22:15
lizmat m: END say "goodbye"; CATCH { say "caught"; exit }; die 22:17
camelia caught
goodbye
lizmat hythm: that's strange, that should have worked
hythm will try to do a gist and if confirmed will create an issue 22:18
lizmat ++hythm
hythm sorry for the confusion, I was using `LEAVE` not `END` 22:22
m: LEAVE say "goodbye"; CATCH { say "caught"; exit}; die
camelia caught
lizmat yeah, exit does bypass LEAVE, not END 22:26
hythm got it, thanks 22:27
lizmat m: LEAVE say "goodbye"; CATCH { say "caught"}; die # just don't do exit
camelia caught
Died
in block <unit> at <tmp> line 1

goodbye
hythm another question, when I use something like `END self.some-method()` I get an error for the first run only, and no error for subsequent runs `X::Method::NotFound: No such method 'some-method' for invocant of type 'VMNull'`. is there a way to avoid that error? 22:33
lizmat: unfortunately I need to use exit to specify the exit code 22:35