🦋 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:06 sena_kun left 00:38 WRSomsky joined
WRSomsky I was wondering: Can the current rakudo compiler (2019.11) be dropped into rakudo-star 2019.03? Mostly wondering for getting a jump on the Perl6 -> Raku renaming... 00:42
AlexDaniel WRSomsky: I'm curious, why do you use star? :)
WRSomsky Thought that was the way to get the appropriate libraries/modules/etc. 00:43
vrurg wonders if RakudoStart makes any sense in the light of rakudobrew existance. 00:44
cpan-raku New module released to CPAN! LibXML (0.2.1) by 03WARRINGD
Kaiepi just uploaded a new module that will be of interest of anyone working with the MOP :) 00:49
AlexDaniel WRSomsky: you can just install modules that you need with zef 00:50
Star is probably useful on Windows, but everywhere else you can probably do without 00:51
WRSomsky Ah. I've been using perl5 for years, but only glanced at perl6/6lrep/raku so far. 00:52
Geth ¦ problem-solving: vrurg assigned to jnthn Issue Add Dict/Tuple to the core github.com/perl6/problem-solving/issues/135 00:58
cpan-raku New module released to CPAN! Kind (0.0.1) by 03KAIEPI 01:00
01:15 WRSomsky left
Doc_Holliwould stack-exchange code review doesn't know about raku yet 01:23
i had to post under "perl6" 01:24
i dont have enough rep there to create a new tag
codereview.stackexchange.com/quest...e-knapsack if someone is bored 01:25
Grinnz it says you can ask for a tag to be created at codereview.meta.stackexchange.com/
Doc_Holliwould thanks, i posted there accordingly 01:34
02:04 holli joined 02:08 Doc_Holliwould left 02:39 Kaiepi left, Kaiepi joined 02:50 wildtrees left 03:04 Manifest0 left 03:06 Manifest0 joined 03:17 squashable6 left 03:19 squashable6 joined 04:08 stoned75 left, stoned75_ left 04:29 xinming_ left 04:31 xinming_ joined 04:39 ZzZombo left 04:56 holli left 05:22 xinming_ left, xinming_ joined 05:34 RobRaku joined 05:42 rindolf joined 05:53 xinming_ left 05:55 RobRaku left 05:56 xinming_ joined 06:02 jmerelo joined 06:09 RobRaku joined 06:11 xinming_ left 06:13 xinming_ joined 06:35 ZzZombo joined 07:06 kensanata joined 07:37 jmerelo left 07:45 mid_laptop joined 07:52 xinming_ left, xinming_ joined 08:14 abraxxa left, abraxxa joined, abraxxa left, abraxxa joined 08:43 abraxxa left, abraxxa joined 08:48 abraxxa left, abraxxa joined 08:53 mid_laptop left 09:04 x86 joined
x86 p6: 3 >> 1 09:05
camelia 5===SORRY!5=== Error while compiling <tmp>
Unsupported use of >> to do right shift; in Perl 6 please use +> or ~>
at <tmp>:1
------> 033 >>7⏏5 1
x86 p6: 3 ~>␤at 1
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
at used at line 2
x86 your mom's not declared
09:23 sena_kun joined 09:37 mid_laptop joined 09:45 CIAvash joined 09:48 abraxxa left 09:49 abraxxa joined 09:50 RobRaku left 09:58 scimon joined
Geth ecosystem: e8d299cb99 | (Stefan Seifert)++ | META.list
Fix perl6-encode URL - META.json got changed to META6.json
10:03
10:03 Altai-man_ joined 10:05 RobRaku joined, abraxxa left, abraxxa joined, sena_kun left 10:16 holli joined 10:21 timotimo[m] joined, rba[m] joined, MitarashiDango[m joined, Demos[m] joined, tyil[m] joined, uzl[m] joined, AlexDaniel` joined, aearnus[m] joined, matiaslina joined 10:24 x86 left 10:35 holli is now known as Doc_Holliwood 10:36 RobRaku left 10:37 chloekek joined 10:48 squashable6 left
SmokeMachine should %?RESOURCES work if it’s defined on META6.json and you are using `perl6 -I. …`? 10:50
10:51 squashable6 joined 10:59 mid_laptop left 11:09 scimon left 11:16 abraxxa left, abraxxa joined 11:25 chloekek left 11:33 squashable6 left, mid_laptop joined, squashable6 joined 11:43 cpan-raku left 11:44 cpan-raku joined, cpan-raku left, cpan-raku joined
Doc_Holliwood nobody wants to look after my knapsack :( 11:49
but i managed to incite the tag change to raku on code review 11:50
yay
11:50 RobRaku joined, chloekek joined
tyil .tell jmerelo currently only my 3 posts are scheduled for the raku advent, do we have any updates from the other people's posts? 12:01
tellable6 tyil, I'll pass your message to jmerelo
12:04 sena_kun joined 12:05 Altai-man_ left 12:08 chloekek left 12:20 mid_laptop left 12:32 scimon joined 12:43 mid_laptop joined 12:49 Doc_Holliwood left 12:59 RobRaku left 13:00 RobRaku joined 13:07 joule joined 13:11 Doc_Holliwood joined 13:30 RobRaku left 14:03 Altai-man_ joined 14:06 sena_kun left
Doc_Holliwood I wonder if you could abuse the regex engine to solve knapsack 14:11
14:13 RobRaku joined 14:18 sarna joined 14:40 chloekek joined
tbrowder tyil: mine is in draft on raku advent wp, should be visible, but more edits coming. 14:52
tyil tbrowder: that's a good sign :>
tbrowder but comments welcome...
tyil tbrowder: currently still at work, so I have no time at this very moment 14:53
tbrowder wp is nasty, but i now write in html. found a cpan module for cli posting, etc.
tyil heh, the tab says "Drafts (1)", but clicking on it says "no posts found"
Doc_Holliwood m: my $s = ''; for ^2 { $s .= sprintf('%s', $_ ) }; say $s;
camelia Your printf-style directives specify 0 arguments, but 2 arguments were supplied
in block <unit> at <tmp> line 1
tbrowder that's wp!
Doc_Holliwood why the heck is raku using Str.sprintf here and not the routine sprintf? 14:54
tbrowder maybe i changed visibility...
Doc_Holliwood my $s = ''; for ^2 { $s = $s ~ sprintf('%s', $_ ) }; say $s;
evalable6 01
Doc_Holliwood as admiral ackbar would put it: It's a trap!! 14:55
tbrowder wp draft is still set on "everyone" 14:56
tyil: you are on rakuadvent or perl6advent?
tyil tbrowder: raku 15:00
15:00 RobRaku left
tbrowder my bad. the button i pressed was "everyone" which apparently means see numbers and it shows 3 scheduled, tyil's most likely. 15:00
tyil I have 3 scheduled, yes 15:01
tbrowder i don't know how to make my draft visible
tobs m: my $s = ''; for ^2 { $s ~= sprintf('%s', $_ ) }; say $s;
camelia 01 15:02
tobs Doc_Holliwood: did you mean this ^? Using the method sprintf on $s seems perfectly fine when you use .=
Doc_Holliwood arrgh 15:03
tobs I don't get why "[Your printf-style directives specify] *0* arguments" in the first try though...
Doc_Holliwood i got bitten by a perl5ism
tobs I think there are warnings about it in some cases :) 15:04
m: say "ab"."cd"
camelia 5===SORRY!5=== Error while compiling <tmp>
Quoted method name requires parenthesized arguments. If you meant to concatenate two strings, use '~'.
at <tmp>:1
------> 3say "ab"."cd"7⏏5<EOL>
Doc_Holliwood m: my $s = ''; for ^2 { $s = $s.sprintf('%s', $_ ) }; say $s; 15:14
camelia Your printf-style directives specify 0 arguments, but 2 arguments were supplied
in block <unit> at <tmp> line 1
Doc_Holliwood because its the same as ^ @tobs
15:16 kensanata left
Geth doc: ae63f8fe9a | Coke++ | 2 files
fix typo, learn words
15:18
tobs ahh, then it of course uses $s as the format string! 15:19
15:19 RobRaku joined
Geth doc: a4180ccb79 | Coke++ | doc/Language/grammars.pod6
's isn't plural.

Avoid plural entirely with a slight reword.
15:21
[Coke] fixes his key issue.
15:28 chloekek left
sarna hi, what would be the best way of distributing a raku program? we probably aren’t at self-contained yet, are we 15:31
(let’s say I’d like to send a script to my pal and want them to avoid the pain of installing rakudo n friends) 15:32
[Coke] Docker? 15:33
tyil tbrowder: maybe jj has an idea, I'm not familiar with WordPress at all :< 15:34
tbrowder tyil: i think you said you did your advent articles in raw html? or was that someone else? 15:36
tyil I did some raw html in order to get fixed-width text working correctly 15:39
there was no button in the rich text formatter to get this done
tbrowder thnx 15:41
15:43 abraxxa left, abraxxa joined
sarna [Coke]: well, that seems like the only option :( thanks 15:46
did the gsoc project get anywhere? or was it only to reduce the startup time, I don’t remember 15:48
15:51 chloekek joined
tyil sarna: I believe it had limitations on using multiple modules, but was working when you only used core functionality 15:55
sarna tyil: was it self-contained though? I mean it was able to run without rakudo?
tyil I believe it was, yes 15:56
a single binary file that you could share
sarna would be very nice
sometimes at work I have to run a script on a remote server I can’t install anything on 15:57
tyil sarna: I can't check out the project on the GSoC dashboard as I wasn't the mentor of that mentee 15:58
but I can see her name, let me check if searching the 'net uncovers more 15:59
yakshavingcream.blogspot.com/2019/...o-run.html
that seems to be the blog that was used to post updates
sarna github.com/pamplemoussecache/p6_linker 16:00
16:00 mid_laptop left
sarna found the cose 16:00
code* 16:01
last commit 3 months ago :(
tyil very sad
16:04 sena_kun joined 16:05 Altai-man_ left 16:06 abraxxa left, abraxxa joined
sarna by the way, does raku automatically close files? 16:09
sena_kun sarna, what do you mean? I mean, what way to work with files do you use? 16:13
jnthn sarna: At exit, I think yes, but there's no promise of them being closed in any kind of timely manner otherwise. 16:15
japhb sarna: File handles that *you* open are not autoclosed, but see the discussions at docs.perl6.org/type/IO::Handle#routine_close and docs.perl6.org/language/phasers#in...will_trait for a way to make sure they close at scope exit. 16:26
sarna: In other words, declaring the file handle as e.g. `my $fh will leave(*.close) = ...` 16:27
AlexDaniel japhb: pretty sure they are closed nowadays 16:30
at exit, even if you use `exit` if I'm not mistaken
or at least that was improved fairly recently (like a year ago or so?) 16:31
16:36 jmerelo joined 16:38 abraxxa left, abraxxa joined
japhb AlexDaniel: I didn't mean at exit, I meant when the FH is out of scope. 16:39
AlexDaniel right! yes
but then, they're still closed once GC-ed, no?
japhb Especially people coming from a refcounted language will commonly make the mistake of assuming out of scope --> closed
AlexDaniel which may happen whenever, but still :)
japhb Yes, but GC can happen after your process is out of handles, because out of handles doesn't trigger GC yet. 16:40
AlexDaniel that's correct, yes :)
japhb wonders if we ought to actually fix that (make an out of handles/descriptors error trigger GC) 16:41
AlexDaniel and I wonder if `will leave` actually works 16:42
AlexDaniel tests
japhb: yeah that doesn't work I think 16:45
not that cleanly for sure
you need to check if the filehandle was created at all, it can be Nil 16:46
then it's fine
will leave { .close with $_ } ?
somehow I just tend to write it by hand: github.com/perl6/whateverable/blob...m6#L31-L34 16:47
less magical I guess
greppable6: will leave 16:48
greppable6 AlexDaniel, 83 lines, 15 modules: gist.github.com/3eaadc506c799f1b3a...e9cc870397
AlexDaniel yep most of these are (relatively) wrong, unfortunately 16:49
jmerelo AlexDaniel: are docs wrong, do you think?
tellable6 2019-11-27T12:01:06Z #raku <tyil> jmerelo currently only my 3 posts are scheduled for the raku advent, do we have any updates from the other people's posts?
jmerelo tell .tyil I'll start nudging everyone. 16:50
AlexDaniel jmerelo: yep, they are
or at least that's what I consider wrong
sena_kun will prepare the posts... hopefully, soon 16:51
[Coke] jmerelo: I think you misplaced a . there.
AlexDaniel there are two examples of will leave on this page: docs.perl6.org/type/IO::Handle
jmerelo [Coke]: sorry
tell tyil I'll start nudging everyone
.tell tyil I'll start nudging everyone
tellable6 jmerelo, I'll pass your message to tyil
jmerelo .tell jmerelo you're dumb
tellable6 jmerelo, I'll pass that message to your doctor
jmerelo .tell tellable6 that's lovely, thanks. 16:52
tellable6 jmerelo, Thanks for the message
AlexDaniel and while both these examples are minimal and maybe don't suffer from the issue, they don't explain that in real code you'll face it
jmerelo AlexDaniel: just the "will leave", right? 16:53
AlexDaniel here's an example:
m: sub foo($foo) { return ‘ok’ if $foo == 42; my $fh will leave { say ‘closing’; .close } = ‘foo’.IO.open; }; foo(42)
camelia closing
No such method 'close' for invocant of type 'Any'. Did you mean 'clone'?
in sub foo at <tmp> line 1
in block <unit> at <tmp> line 1
AlexDaniel I don't remember now, but I think there were other examples when LEAVE would fire unexpectedly 16:54
16:54 abraxxa left
AlexDaniel something about multi dispatch maybe? 16:54
16:55 abraxxa joined
AlexDaniel jmerelo: it needs to be `will leave {.close with $_}` 16:55
ah yes 16:56
these two: docs.perl6.org/language/traps#LEAV...r_and_exit
let's try…
m: sub foo(Int $foo) { my $fh will leave { say ‘closing’; .close } = ‘foo’.IO.open; }; foo ‘oops’ 16:57
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling foo(Str) will never work with declared signature (Int $foo)
at <tmp>:1
------> 3‘closing’; .close } = ‘foo’.IO.open; }; 7⏏5foo ‘oops’
AlexDaniel m: sub foo(Int $foo) { my $fh will leave { say ‘closing’; .close } = ‘foo’.IO.open; }; foo rand
camelia closing
No such method 'close' for invocant of type 'Any'. Did you mean 'clone'?
in sub foo at <tmp> line 1
in block <unit> at <tmp> line 1
jnthn Alternatively, .?close 16:58
AlexDaniel jnthn: even though it works, it feels so wrong :D
it checks if the method exists and it just happens that there's no .close in Any 16:59
I remember having this conversation with vrurg recently, and he pointed out that there's `andthen` or one of these weirdly named things 17:00
and in my snippet back then it made things easier, yeah
but here I again wish we had .?-like thingy that'd check for Nil 17:01
jnthn .//close :P 17:05
17:17 wildtrees joined 17:29 scimon left
tyil jnthn: ack :> 17:32
tellable6 2019-11-27T16:51:39Z #raku <jmerelo> tyil I'll start nudging everyone
tyil jmerelo*
sorry jnthn, wrong tab-completion
jmerelo tyil: there's a list of drafts also here www.flickr.com/photos/atalaya/6948...551888481/ 17:37
Sorry, wrong link
tyil: here github.com/perl6/advent/blob/maste...019/drafts
So we've got at least 5
tyil it's a start 17:38
jmerelo tbrowder's is also scheduled 17:39
Day 2 and 4 is Altai-man's. 17:40
sena_kun: we really need these posts soon... in the next 2-3 days, if possible. 17:41
.seen tmtvl 17:42
tellable6 jmerelo, I saw tmtvl 2019-11-04T18:46:26Z in #raku: <tmtvl> Yeah, switching between languages on Monday evening is a recipe for disaster.
17:42 clarjon1 left
jmerelo Dec 9th slot is still free. Anyone want to take it? github.com/perl6/advent/blob/maste...9/schedule 17:43
Also 17:48
Can someone with enough privs help reopen this question in StackOverflow? stackoverflow.com/questions/590352...k-wont-end
I know it's a duplicate-ish, but it's bound to still show up in searches and it's much better to point in the answer to the other answer and explain how this case might (or not) be different. 17:49
jnthn jmerelo: It's exactly the same case. 17:54
And the answer applies equally 17:55
So IMO it's probably right to have it marked as a duplicate
jmerelo jnthn: the question is different. And still. Let's asume they've done their homework and didn't understand the answer, or whatever.
jnthn I looked at it and didn't answr it exactly for that reason. 17:56
*answer
jmerelo I know, but look at the tiny hand that says "New contributor". Let's try to help. Again, the question is different. They're not understanding what's happening. So let's hold their hand to the correct answer, please. 17:58
jnthn Oddly, they even created a thread pool of size 2 in both questions...
Anyway, I can vote for reopening, but won't because I believe the marking as duplicate is correct. Sorry. 17:59
17:59 [Coke]_ joined, [Coke]_ left, [Coke]_ joined 18:00 [Coke] left 18:03 Altai-man_ joined
jmerelo Hey, Altai-man_ 18:03
How are these articles going?
Altai-man_ jmerelo, o/
erm, didn't I just write about that? my new network is crazy with all these disconnects... 18:04
jmerelo Altai-man_: sorry, where?
Altai-man_ ugh, I can't even change the nickname as `sena_kun` is still a zombie...
jmerelo, I have the first one like 70% ready (the code is ready, just need to finish wrapping it up as a tutorial), the second one is still in my mind 18:05
18:05 sena_kun left 18:06 Altai-man_ is now known as sena_kun
jmerelo Wonderful! Did I send you an invitation for the WP site? 18:06
Please send me a private message with the email you want the invitation to be sent to
sena_kun jmerelo, I published an article already, if the site was not changed, then I'm ok
two of them last year
18:09 vrurg_ joined, vrurg left
guifa jmerelo: I promise promise I’m almost done with mine 18:16
18:23 nebuchad` joined
lizmat still has to start on hers 18:28
jmerelo sena_kun: that's the point, it's changed 18:29
guifa: thanks!
sena_kun jmerelo, ooh, ok...
sarna sorry I didn’t respond right away, real life got me. thanks sena_kun, jnthn and japhb :) 18:35
18:37 colomon left 18:44 lucasb joined
[Coke]_ the site may have changed, but old logins still work, I think. 18:48
japhb sarna: You're welcome. And no worries, IRC is expected to be async. We even have a bot for delivering messages to people who had to disconnect and rejoin later.
18:48 [Coke]_ is now known as [Coke]
[Coke] Unless we didn't rename but created a new site. 18:48
18:59 wamba joined
jmerelo [Coke]: we created a new site. I talked to the person that owned the old site and told me that was the best option. 19:28
BTW, I need emails to add you to this new site, msg me with them 19:29
[Coke] Eh. No need to add me. 19:31
jmerelo [Coke]: unless that final slot is really unfilled... 19:32
19:45 jmerelo left 20:00 vrurg_ is now known as vrurg 20:03 Altai-man_ joined 20:05 sena_kun left 20:18 nebuchad` is now known as nebuchadnezzar
[Coke] still trying to avoid writing an article. 20:19
Also, we need to post something on the old calendar pointing to the new one.
I am happy to post it if someone writes it up but doesn't have privs on the old site
20:55 kybr left 21:00 patrickb joined 21:01 kybr joined 21:03 joule left 21:04 RobRaku left 21:06 Nasrudin42 joined 21:08 rindolf left 21:16 pochi joined 22:04 sena_kun joined 22:06 Altai-man_ left 22:11 wamba left 22:39 patrickb left 23:06 cognominal joined 23:09 chloekek left, cognomin_ left 23:10 dpk joined