🦋 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.
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
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
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
evalable6 Xliff, Full output: gist.github.com/a0f90cf651e0a33abd...9b9bc703a8 02:42
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
jmerelo New NativeCall question in StackOverflow: stackoverflow.com/q/59209789/891440 08:54
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
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
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
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
El_Che monky typing? 10:08
El_Che stackoverflow.com/questions/535443...1&lq=1 10:25
mm
FH, it works 10:26
\o/
thx stackoverflow for raku :)
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++
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
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
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
AlexDaniel SmokeMachine: why do you think it is removed? 12:26
m: 42 . say
evalable6 42
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
SmokeMachine AlexDaniel: and shouldn’t? if it shouldn’t, maybe the error message should explain it a little better... 13:02
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: ↑
chloekek p6: sub prefix:</>($x) { 1 / $x }; say /2; 14:45
evalable6 0.5
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.
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
squashable6 🍕 AlexDaniel++ wrote a comment on “Raku FAQ Squashathon Guide”: github.com/Raku/doc/issues/3109#is...-562633496 16:06
🍕🍕🍕 First contribution by AlexDaniel++! ♥
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
moon-child is there any reshape function? 17:15
squashable6 🍕 uzluisf++ opened issue “Provide more concrete ex…”: github.com/Raku/doc/issues/3111 17:29
🍕🍕🍕 First contribution by uzluisf++! ♥
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
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
japhb moon-child: Ah, understood. Is the WIP in an openly accessible repo? 17:50
tony-o tbrowder: are you looking for me to commit this to the rakudo repo? 17:51
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
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
moon-child also, ran into a moar bug I should report at some point 17:53
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!
tony-o looks decent, it's already running spectest here: travis-ci.org/rakudo/rakudo/jobs/6...2775#L1284 18:17
tony-o there's likely a way to report a bisect from that build mechanism 18:17
Geth doc: 84adbbc108 | (JJ Merelo)++ | META6.json
Add the substitute of Pod::Convenience to start moving it out

Refs #2696
18:21
tony-o that might end up pushing out of 90' though 18:29
tbrowder tony-o: problem, log length exceeded, any solution under your control? 19:05
causes early exit from the build
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
tony-o oh excellent, no output in 10 minutes also kills the job 19:52
TIL
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....
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..,
nine tbrowder: something like: perl6 -e 'loop { sleep 60; say 0 }' & 20:56
And this to get rid of it: kill $!
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