🦋 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:07 reportable6 left, reportable6 joined 00:23 derpydoo joined 00:42 derpydoo left 01:12 jgaz left 01:32 frost joined 01:37 rypervenche joined
guifa ugexe: does Build.pm6 have to be pm6 or can it be raku nowadays? 02:17
02:37 linkable6 left, evalable6 left 02:38 evalable6 joined 02:39 linkable6 joined
ugexe it can be rakumod, pm6, or pm 02:50
03:01 Guest82 joined 03:02 Guest82 left, frost left 03:15 razetime joined 03:21 jetchisel joined 04:21 sourceable6 left, linkable6 left, notable6 left, quotable6 left, bisectable6 left, shareable6 left, coverable6 left, bloatable6 left, reportable6 left, squashable6 left, tellable6 left, statisfiable6 left, benchable6 left, committable6 left, releasable6 left, unicodable6 left, squashable6 joined, quotable6 joined, tellable6 joined, linkable6 joined 04:22 statisfiable6 joined, benchable6 joined, unicodable6 joined 04:23 reportable6 joined, bisectable6 joined, sourceable6 joined, notable6 joined, releasable6 joined, shareable6 joined, committable6 joined 04:24 coverable6 joined, bloatable6 joined 04:37 labster left 05:36 labster joined 06:06 reportable6 left 06:07 reportable6 joined 06:57 Sgeo left 07:03 dogbert11 joined 07:05 dogbert17 left 07:18 lichtkind joined 07:26 MasterDuke left 07:45 habere-et-disper joined 07:59 dakkar joined 08:00 frost joined 08:34 sena_kun joined 08:42 razetime left 08:58 razetime joined 09:26 discord-raku-bot left, discord-raku-bot joined 09:29 frost left 10:14 Nemokosch joined
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
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
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
11:10 labster left 11:15 synthmeat left 11:16 synthmeat joined 11:19 holyghost joined 11:29 razetime left 11:32 timo left 11:38 timo joined 11:40 razetime joined 12:08 reportable6 left 12:11 reportable6 joined 12:50 habere-et-disper left, frost joined
lizmat clickbaits rakudoweekly.blog/2022/10/10/2022-...our-phone/ 12:50
12:51 jetchisel left 12:54 jetchisel joined
tonyo new doc site++ 13:05
13:07 lichtkind left 13:08 jgaz joined 13:10 razetime left 13:23 frost left
El_Che no irc in community on new site? 13:57
14:05 habere-et-disper joined
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
14:28 dakkar left 14:29 Sgeo joined 14:34 habere-et-disper left
Changed it in the config file, but still getting the same error. Maybe it’s not a path length thing? 14:34
14:42 dakkar joined
[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.
14:54 razetime joined
Nemokosch so the path isn't read properly 14:57
15:15 Nemokosch1 joined 15:16 Nemokosch left 15:38 squashable6 left 15:40 squashable6 joined
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
16:02 Kernspin left
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>
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
16:37 dakkar left 16:48 melezhik joined
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
16:48 Kernspin joined 16:56 melezhik left
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
17:41 razetime left 18:07 reportable6 left 18:08 reportable6 joined
tbrowder ok, just 18:16
...i'll try to use it, thnks, tonyo
18:31 derpydoo joined 18:45 sena_kun left 18:46 sena_kun joined
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
that's handy for mentions
tbrowder tonyo: it looks promising!
19:28 lichtkind joined 19:41 sena_kun left 19:42 sena_kun joined 19:53 Sauvin left 19:58 Colere joined 20:23 lizmat left
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
20:53 sena_kun left 21:05 Nemokosch1 is now known as Nemokosch 21:23 habere-et-disper joined 21:38 labster joined, lizmat joined 21:41 jgaz left 21:42 lichtkind left 21:51 hythm joined
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
21:56 melezhik joined
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
21:58 labster left
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
22:16 habere-et-disper left
lizmat m: END say "goodbye"; CATCH { say "caught"; exit }; die 22:17
camelia caught
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
22:19 melezhik left
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
in block <unit> at <tmp> line 1

22:29 MasterDuke joined 22:30 habere-et-disper joined
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
22:47 derpydoo left 22:54 derpydoo joined 22:58 labster joined, Nemokosch left 23:01 Nemokosch joined 23:32 Nemokosch left 23:50 hythm left 23:56 derpydoo left