🦋 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.
00:08 patrickz joined 00:10 patrickz left 00:12 patrickb left
Xliff m: my @a = <a b c>; .say while @choices 00:16
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/T7_zTizwtL
Variable '@choices' is not declared
at /tmp/T7_zTizwtL:1
------> 03my @a = <a b c>; .say while 08⏏04@choices
Xliff m: my @a = <a b c>; .say while @a
m: my @a = <a b c>; while @a { .say } 00:17
m: my @a = <a b c>; while @a { @a.pop.say }
Oops.
evalable6 (signal SIGHUP) (Any)
(Any)
(Any)
(Any)
(Any)
(…
00:18
Xliff m: my $a = "test"; say $a.substr(0); 00:20
I think I killed eet.
evalable6 (signal SIGHUP) (Any)
(Any)
(Any)
(Any)
(Any)
(…
00:21
c
b
a
test
Xliff m: my @a = <a b c>; while @a { @a.unshift.say } 00:22
evalable6 (signal SIGHUP) [a b c]
[a b c]
[a b c]
[a b c]…
Xliff, Full output: gist.github.com/4a5dbf5bd487ce95df...43cafb6808
Xliff m: my @a = <a b c>; while @a { @a.shift.say } 00:23
evalable6 a
b
c
00:50 mid_home joined 00:54 pmurias left 01:03 lucasb left 01:09 wildtrees left
elcaro If I upload a module to CPAN (Perl6 dir), does that mean I _don't_ need to add it to the ecosystem list? Will that prevent my modules from appearing twice on the modules page? 01:20
Xliff m: my $a = 1 +< 31; $a.say; 01:36
evalable6 2147483648
Xliff m: my $a = 1 +< 31; $a.say; my $buf = Buf.allocate(4); $buf.write-uint32(0, $a); say $buf.read-int32(0); 01:37
evalable6 2147483648
-2147483648
cpan-raku New module released to CPAN! Point (1.0.1) by 03ELCARO 01:42
02:05 hkdtam left
cpan-raku New module released to CPAN! Point (1.0.2) by 03ELCARO 02:13
evalable6 Xliff, Full output: gist.github.com/578c5c0c6fff4a14d6...1b76338f45 02:21
02:32 Doc_Holliwould left
evalable6 Xliff, Full output: gist.github.com/a0f90cf651e0a33abd...9b9bc703a8 02:42
03:42 quotable6 left, benchable6 left, bloatable6 left, sourceable6 left, statisfiable6 left, greppable6 left, shareable6 left, releasable6 left, nativecallable6 left, coverable6 left, notable6 left, committable6 left, unicodable6 left, reportable6 left, squashable6 left, bisectable6 left, coverable6 joined, releasable6 joined, benchable6 joined, notable6 joined, reportable6 joined, bisectable6 joined 03:43 sourceable6 joined, squashable6 joined 03:44 committable6 joined, quotable6 joined, greppable6 joined, nativecallable6 joined, statisfiable6 joined 03:45 bloatable6 joined, shareable6 joined, unicodable6 joined 04:45 releasable6 left, bisectable6 left, sourceable6 left, shareable6 left, coverable6 left, bloatable6 left, benchable6 left, unicodable6 left, evalable6 left, nativecallable6 left, reportable6 left, tellable6 left, committable6 left, squashable6 left, notable6 left, greppable6 left, quotable6 left, statisfiable6 left 04:46 releasable6 joined, benchable6 joined, coverable6 joined, shareable6 joined, tellable6 joined, nativecallable6 joined, evalable6 joined, unicodable6 joined, quotable6 joined 04:47 greppable6 joined, sourceable6 joined, bloatable6 joined, notable6 joined, reportable6 joined, squashable6 joined, bisectable6 joined 04:48 statisfiable6 joined, committable6 joined 04:51 cpan-raku left 04:52 cpan-raku joined, cpan-raku left, cpan-raku joined 05:44 Kaiepi left, Kaiepi joined 05:54 RobRaku joined 05:55 rindolf left 06:05 rindolf joined 06:35 RobRaku left 06:36 RobRaku joined 06:39 Kaiepi left 06:44 wamba joined 06:57 stoned75 joined 07:20 xinming_ left 07:22 xinming_ joined 07:38 jmerelo joined 07:40 stoned75 left 08:04 wamba left
Xliff m: class T { has @!a = <a b c d>; method a { @!a.List }; }; T.a[1].say 08:12
evalable6 (exit code 1) Cannot look up attributes in a T type object
in method a at /tmp/xUYFkjNASS line 1
in block <unit> at /tmp/xUYFkjNASS line 1
Xliff m: class T { has @!a = <a b c d>; method a { @!a.List }; }; T.new.a[1].say
evalable6 b
Xliff m: class T { has @!a = <a b c d>; method a { @!a.List }; }; T.new.a[1] = 2
evalable6 (exit code 1) Cannot modify an immutable List ((a b c d))
in block <unit> at /tmp/bcOWc8RPDc line 1
08:14 abraxxa left, abraxxa joined 08:34 xinming joined 08:38 xinming_ left, benjif left 08:43 wamba joined
jmerelo New NativeCall question in StackOverflow: stackoverflow.com/q/59209789/891440 08:54
08:58 scimon joined 09:07 llfourn joined 09:14 llfourn left, llfourn joined 09:18 Manifest0 left
El_Che Does the latest rakudo release and zef understand module names with the rakumod extension 09:19
?
scimon Doesn't look like it. I just did a test locally and couldn't get it to work. 09:22
El_Che mm
09:28 wamba left
ZzZombo Is there an equivalent of Lua `setfenv`? 09:40
jmerelo ZzZombo: being what? 09:48
scimon Why would you need it? I make sense in Lua where everything is global but I;m
I'm not sure I see the point in Raku
ZzZombo To `eval` a piece of code with dynamically determined scope. 09:50
09:51 llfourn left 09:52 llfourn joined 09:53 llfourn left, llfourn joined
jmerelo ZzZombo: when you eval in Raku you so it in the current scope. You can add a new, internal one by wrapping it in {} 09:54
09:54 llfourn left, llfourn joined 09:55 llfourn left 09:56 Doc_Holliwould joined, llfourn joined, llfourn left
El_Che Can I make a dynamic variable global? E.g.: "my %*SUB-MAIN-OPTS = :named-anywere" set in a module would be picked up by the script using the module 09:57
Had a look at EXPORT and our and don't seem to do that
09:57 llfourn joined 09:59 wamba joined 10:00 sena_kun joined 10:02 llfourn left, llfourn joined 10:03 veesh_ joined 10:05 veesh left 10:06 veesh_ is now known as veesh, llfourn left, llfourn joined
El_Che monky typing? 10:08
10:23 wamba left
El_Che stackoverflow.com/questions/535443...1&lq=1 10:25
mm
FH, it works 10:26
\o/
thx stackoverflow for raku :)
10:26 SysPete joined
El_Che and lizmat who answered the question :) 10:27
I need to login to give her gold :)
Oh, and I have enough reputation to edit the tag and add raku! 10:28
scimon Considering my post in the Raku Advent calender I've deleted my answer to that question... ;) 10:35
Geth doc: 39c5858686 | (JJ Merelo)++ | doc/Language/nativecall.pod6
Adds clarification about versioned shared libraries

Helps #3094
jmerelo El_Che: I've been deleting and swapping tags in StackOverflow for some time now. lizmat also, AFAIK, maybe some other 10:36
El_Che: but there's still a long way to go if we want to define a synonym. We still need to change ~500 posts if we want to do that. Any help is welcome.
El_Che jmerelo: I'll try to help when possible now that I know I can 10:40
(last time I checked I couldn't)
jmerelo El_Che: karma has been recomputed and now we all get a lot of more of it 10:41
El_Che I looks like it 10:42
no api to do it in batch I imagine? 10:43
jmerelo El_Che: APIs in StackOverflow don't have write permission. You need to create an "application", and ask for permission. And get burned in the process.
El_Che it sounds painful 10:44
jmerelo I think the question was eventually deleted. I can't find it now. 10:45
El_Che is there a negative tag lookup? 10:47
like [perl6] (![raku])
jmerelo stackoverflow.com/questions/tagged/perl6+-raku
scimon Just did a bunch... Should probably get on with some work now ;) 10:50
jmerelo scimon++
10:51 BlackChaosNL[m] joined 10:52 sena_kun left 11:03 MasterDuke left 11:07 sena_kun joined 11:11 jmerelo left
ZzZombo Is it possible to make methods automatically bound to an instance of object, so it's possible to invoke the method w/o an explicit `self`? 11:18
That is, like `bar()` instead of `foo.bar()`? 11:19
Xliff m: 1».(Int, Num) 11:20
evalable6 (exit code 1) No such method 'CALL-ME' for invocant of type 'Int'
in block <unit> at /tmp/CVN7pHp1WR line 1
Xliff m: 1».('Int', 'Num')()
evalable6 (exit code 1) ===SORRY!===
Cannot find method 'name' on object of type QAST::Want
Xliff m: 1».&('Int', 'Num')()
evalable6 (exit code 1) Invocant of method 'CALL-ME' must be a type object of type 'List', not an object instance of type 'List'. Did you forget a 'multi'?
in block <unit> at /tmp/QoWerzCb8k line 1
Xliff m: (1)».&('Int', 'Num')()
evalable6 (exit code 1) Invocant of method 'CALL-ME' must be a type object of type 'List', not an object instance of type 'List'. Did you forget a 'multi'?
in block <unit> at /tmp/0rpkiq6KXn line 1
11:20 wamba joined
Xliff m: (1, 2)».&('Int', 'Num')() 11:21
evalable6 (exit code 1) Invocant of method 'CALL-ME' must be a type object of type 'List', not an object instance of type 'List'. Did you forget a 'multi'?
in block <unit> at /tmp/fxhjr1uQqt line 1
sena_kun m: (1, 2) z (*.Int, *.Num) 11:29
evalable6 (exit code 1) 04===SORRY!04=== Er…
sena_kun, Full output: gist.github.com/c9bc5c6e3ee05fda52...2c49577f40
sena_kun m: say (1, 2) Z (*.Int, *.Num ) 11:30
evalable6 ((1 { ... }) (2 { ... }))
sena_kun hmm, ok
sena_kun runs away to do lots of Comma bugfixes 11:31
SmokeMachine m: sub infix:<bla>($a, &b) { b($a) }; say (1, 2) Z[bla] (*.Int, *.Num ) # :P 11:46
evalable6 (1 2)
SmokeMachine m: say (1, 2) Z[&infix:<.>] (*.Int, *.Num ) # LTA error? 11:50
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/_CTFnLJqA7
Malformed postfix call
at /tmp/_CTFnLJqA7:1
------> 03.08⏏04<EOL>
SmokeMachine m: say 1.&(*.Int) 11:51
evalable6 1
SmokeMachine M: say infix:<.>(1, *.Int) 11:54
m: say infix:<.>(1, *.Int)
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/IsJ5vkAcqM
Malformed postfix call
at /tmp/IsJ5vkAcqM:1
------> 03.08⏏04<EOL>
sena_kun SmokeMachine: are you sure dot is an operator and not a language builtin? 11:56
I mean, the very deep special builtin compared to ops like `+`
lizmat m: dd &infix:<.>
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/_N80QCTshq
Malformed postfix call
at /tmp/_N80QCTshq:1
------> 03.08⏏04<EOL>
SmokeMachine sena_kun: if I’m not wrong it’s both...
lizmat m: dd &infix:<*>
evalable6 Sub+{is-pure}+{Precedence} infix:<*> = proto sub infix:<*> ($?, $?, *%) {*}
lizmat m: dd &infix:<.>
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/rUiPkJTRa3
Malformed postfix call
at /tmp/rUiPkJTRa3:1
------> 03.08⏏04<EOL>
lizmat hmmm
SmokeMachine I remember of reading that on code long time ago… but I could misread that... 11:58
11:59 benjif joined
lizmat yeah, must be a grammar construct 11:59
just like && and || btw
sena_kun m: say (.Int, .Num) for 1, 2; 12:01
evalable6 (1 1)
(2 2)
sena_kun is a simple and clean and working way to do what Xliff tried, no?
SmokeMachine ```There is now an infix:<.> operator that does method calls with slightly looser precedence than the postfix unary method call.``` 12:02
github.com/rakudo/rakudo/blob/mast...2015.10.md
Did I miss understood that or was that removed? 12:08
12:13 joule joined 12:21 llfourn left 12:22 wamba left
AlexDaniel SmokeMachine: why do you think it is removed? 12:26
m: 42 . say
evalable6 42
12:32 lucasb joined
SmokeMachine AlexDaniel: but why can’t I use that the way I was trying to use that? 12:35
AlexDaniel m: say &infix:<.>(1, *.Int) 12:36
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/4X6NI8eAFe
Malformed postfix call
at /tmp/4X6NI8eAFe:1
------> 03.08⏏04<EOL>
SmokeMachine m: say &infix:<.>
evalable6 (exit code 1) 04===SORRY!04=== Error while compiling /tmp/jY41nitTX9
Malformed postfix call
at /tmp/jY41nitTX9:1
------> 03.08⏏04<EOL>
AlexDaniel yeah, interesting, it doesn't work this way for . 12:41
12:51 llfourn joined 12:52 sena_kun left 12:56 llfourn left 12:59 abraxxa left
SmokeMachine AlexDaniel: and shouldn’t? if it shouldn’t, maybe the error message should explain it a little better... 13:02
13:04 llfourn joined
SmokeMachine sourceable6: 1 . is-prime 13:04
sourceable6 SmokeMachine, No idea, boss. Can you give me a Code object?
SmokeMachine sourceable6: &[.] 13:05
sourceable6 SmokeMachine, No idea, boss. Can you give me a Code object? Output: 04===SORRY!04=== Error while compiling /tmp/x_pq7o0jNK␤Malformed postfix call␤at /tmp/x_pq7o0jNK:1␤------> 03&[.08⏏04]␤
AlexDaniel bisect: old=2015.01 42 .say
bisectable6 AlexDaniel, Bisecting by exit code (old=2015.01 new=382d18b). Old exit code: 1
AlexDaniel, bisect log: gist.github.com/6d11563ebb64f275ee...98e4736f5f 13:06
AlexDaniel, (2015-09-26) github.com/rakudo/rakudo/commit/cb...ceec2c74de
AlexDaniel SmokeMachine: ↑
13:07 sena_kun joined 13:08 llfourn left 13:14 llfourn joined 13:15 wamba joined 13:20 llfourn left 13:21 llfourn joined 13:22 benjif left 13:25 llfourn left, llfourn joined 13:26 wamba left 13:28 llfourn` joined 13:32 llfourn left 13:34 llfourn` left, llfourn` joined 13:39 llfourn` left 13:46 llfourn` joined, eater joined 13:51 llfourn` left 13:53 llfourn` joined 13:54 nosqrt joined 13:55 benjif1 joined 14:00 llfourn` left 14:03 llfourn` joined 14:08 llfourn` left, llfourn` joined 14:12 llfourn` left 14:20 llfourn` joined 14:21 nosqrt left 14:25 llfourn` left 14:27 benjif1 left 14:31 llfourn` joined 14:37 llfourn` left 14:39 llfourn` joined 14:42 llfourn` left, llfourn` joined 14:45 chloekek joined
chloekek p6: sub prefix:</>($x) { 1 / $x }; say /2; 14:45
evalable6 0.5
14:47 llfourn` left 14:49 llfourn` joined 14:53 sena_kun left 14:54 llfourn` left 14:55 llfourn` joined 14:56 vrurg_ left 14:57 SysPete left 15:00 llfourn` left 15:01 vrurg joined 15:03 llfourn` joined 15:07 sena_kun joined 15:08 llfourn` left 15:11 Kaiepi joined 15:13 Kaiepi left, Kaiepi joined 15:14 llfourn` joined
Kaiepi . 15:16
tellable6 2019-12-05T15:55:56Z #raku <jmerelo> Kaiepi please send me in some effective way your email address or ID in wordpress.com for the Advent calendar articles.
15:20 llfourn` left, llfourn` joined 15:28 llfourn` left, llfourn` joined 15:29 wamba joined 15:32 llfourn` left, llfourn` joined 15:36 llfourn` left 15:37 llfourn` joined 15:41 llfourn` left 15:48 llfourn` joined 15:53 llfourn` left 15:55 llfourn` joined 16:00 llfourn` left
AlexDaniel squashable6: status 16:03
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈19 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel oh it started
16:03 llfourn` joined
squashable6 🍕 AlexDaniel++ wrote a comment on “Raku FAQ Squashathon Guide”: github.com/Raku/doc/issues/3109#is...-562633496 16:06
🍕🍕🍕 First contribution by AlexDaniel++! ♥
16:08 llfourn` left 16:10 llfourn` joined 16:15 llfourn` left 16:22 llfourn` joined 16:23 Kaiepi left 16:24 Kaiepi joined, llfourn` left
moon-child japhb: I was working on raku support in my game engine. But that's on hold atm because my graphics card is fried 16:27
16:29 llfourn` joined 16:31 Kaeipi joined, Kaiepi left 16:32 llfourn` left 16:33 llfourn` joined 16:36 Kaiepi joined 16:38 Kaeipi left, llfourn` left 16:39 Kaiepi left 16:43 llfourn` joined 16:47 veesh left 16:48 llfourn` left 16:52 sena_kun left 16:53 llfourn` joined 16:57 llfourn` left 16:59 veesh joined 17:00 scimon left 17:02 Kaiepi joined, llfourn` joined 17:07 sena_kun joined 17:08 llfourn` left 17:10 llfourn` joined 17:13 llfourn` left, llfourn` joined
moon-child is there any reshape function? 17:15
17:15 wamba left 17:18 llfourn` left, wamba joined 17:27 wamba left
squashable6 🍕 uzluisf++ opened issue “Provide more concrete ex…”: github.com/Raku/doc/issues/3111 17:29
🍕🍕🍕 First contribution by uzluisf++! ♥
17:31 chloekek left
Geth doc: JJ self-assigned FAQ gives wrong advice about NativeCall github.com/Raku/doc/issues/3094
2914172477 | (JJ Merelo)++ | doc/Language/faq.pod6

Closes #3094
17:33
squashable6 🍕🍕🍕 First contribution by JJ++! ♥
🍕 JJ++ labeled issue “Provide more concrete ex…” (RFE): github.com/Raku/doc/issues/3111
17:34 hkdtam joined 17:36 wamba joined
tbrowder tony-o: hear from Jan Schulte, the Travis Engineer, he said he had increased our build time to 90 minutes, so maybe we can roast on Rakudo builds 17:38
tellable6 2019-12-05T09:12:44Z #raku-dev <lizmat> tbrowder metacpan.org/pod/Inline::Perl6
tbrowder *heard 17:39
17:43 wamba left 17:46 wamba joined, llfourn` joined
japhb moon-child: Ah, understood. Is the WIP in an openly accessible repo? 17:50
17:51 wildtrees joined
tony-o tbrowder: are you looking for me to commit this to the rakudo repo? 17:51
17:51 llfourn` left
tellable6 2019-12-06T17:40:04Z #raku-dev <tbrowder> tony-o I heard from Jan Schulte, the Travis Engineer, he said he had increased our build time to 90 minutes, so maybe we can roast on Rakudo builds. 17:51
17:52 wamba left
moon-child japhb: the embedding layer is, engine itself is not 17:52
also embedding layer is also WIP, and I probably won't work on it again until I get a gpu
github.com/moon-chilled/libport 17:53
17:53 wamba joined
moon-child also, ran into a moar bug I should report at some point 17:53
17:54 mid_home left
tbrowder tony-o: Some days ago (26 nov) you said you would try to find a way to add capability to roast on a rakudo build, and would contact Jan Schulte: "ah, danke - i'll whatsapp him once i figure out what i'd like to ask". He just e-mailed me and said our build time has been increased to 90 minutes, so I'm just informing you--they have been very helpful, and I'm sure Jan would be glad to hear from you. 17:58
tony-o ah okay, sorry i got sick and haven't been awake much or looking at this - i was curious if you were envisioning this happening on travis directly when a MR is accepted 18:02
japhb moon-child: Ah, interesting. Thank you for the link! 18:08
tony-o tbrowder: testing adding roast here 18:10
: travis-ci.org/rakudo/rakudo/jobs/621722775
tbrowder tony-o: hope you feel better, lots of crud around where i am! it would be nice to be able for rakudo admins to push a button on selected builds to run roast, but that may not be possible.
tony-o oops, fingers are fat tbrowder, see ^
squashable6 🍕 JJ++ closed issue “FAQ gives wrong advice about NativeCall”: github.com/Raku/doc/issues/3094
tbrowder ok, tony-o++, fingers crossed!
18:16 hkdtam left
tony-o looks decent, it's already running spectest here: travis-ci.org/rakudo/rakudo/jobs/6...2775#L1284 18:17
18:17 sena_kun left, sena_kun joined
tony-o there's likely a way to report a bisect from that build mechanism 18:17
18:19 cpan-raku left 18:20 wamba left
Geth doc: 84adbbc108 | (JJ Merelo)++ | META6.json
Add the substitute of Pod::Convenience to start moving it out

Refs #2696
18:21
18:23 joule left 18:26 cpan-raku joined, cpan-raku left, cpan-raku joined 18:27 hythm joined 18:28 MasterDuke joined
tony-o that might end up pushing out of 90' though 18:29
18:51 sarna left, sarna joined 18:52 sena_kun left
tbrowder tony-o: problem, log length exceeded, any solution under your control? 19:05
causes early exit from the build
19:07 sena_kun joined
tony-o could just pipe output to file and print the failures 19:08
making the assumption that make spectest exits non zero and that i have some kind of bash skill
tbrowder: travis-ci.org/rakudo/rakudo/jobs/621748397 <- this should do that ^ right now it's just tailing 500 lines if exit nz from make spectest 19:13
19:47 llfourn` joined
tony-o oh excellent, no output in 10 minutes also kills the job 19:52
TIL
19:52 llfourn` left 20:10 rypervenche joined 20:21 Xliff left 20:23 daxim left 20:29 daxim joined 20:32 Kaiepi left, Kaiepi joined 20:33 llfourn` joined
tbrowder need a bash expert! tony-o: try calling Jan, at Travis 20:35
the makefile could output a a 20:36
output a number pe 20:37
fumble fingers....
20:41 Kaiepi left 20:42 Kaiepi joined
tbrowder can the bash script be modified to output a 0 every few minutes? 20:47
or something to fool travis?
i've let Jan know the situation... 20:48
and attempts at solution..,
20:52 sena_kun left
nine tbrowder: something like: perl6 -e 'loop { sleep 60; say 0 }' & 20:56
And this to get rid of it: kill $!
21:00 mid_laptop joined 21:07 sena_kun joined
sena_kun releasable6: status 21:08
releasable6 sena_kun, Next release in ≈14 days and ≈21 hours. There are no known blockers. 0 out of 102 commits logged
sena_kun, Details: gist.github.com/2464bf3ced4353963a...9ae463a144
tony-o tbrowder: yea i'm going to pipe and output is the plan 21:35
pushed a correction as a test, not sure if something more elegant is needed but likely not 21:40
21:46 llfourn` left 22:11 llfourn` joined 22:14 MasterDuke left 22:18 llfourn` left 22:36 kotrcka joined 22:42 hythm left 22:48 llfourn` joined 22:54 sena_kun left 23:08 kotrcka left, sena_kun joined 23:28 wamba joined 23:31 sena_kun left 23:54 Kaiepi left