🦋 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.
jdv79 where is any sort of real timeout functionality done in terms of networking or such? 02:16
i don't see anything in IO::Socket, for example 02:17
also, where and/or how could/would that sort of thing be done, say, in cro or another random network client/server? 02:18
and i imagine a "timeout" may or may not involve cancellation(s)? 02:19
Geth doc: af09828b71 | (Wenzel P. P. Peppmeyer)++ (committed using GitHub Web editor) | doc/Type/Block.pod6
sometimes one needs an empty block
07:24
doc: e27764192f | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Block.pod6
Merge pull request #3474 from gfldex/patch-16

sometimes one needs an empty block
linkable6 Link: docs.raku.org/type/Block
grondilu One javascript feature I wish was in raku is the way variables declarations can be chained. Like 'let x = 13, y = x + 1, z = 2*x;' It's not possible to do anything like that in raku with just one line, is it ? 08:33
grondilu (or 'let x = 13, y = x + 1, z = 2*y' 08:34
)
I would have to write 'my $x = 14; my $y = $x + 1; my $z = 2*$y', wouldn't I? 08:35
m: my ($x,$y,$z) = 13, $x + 1, 2*$y; 08:37
camelia Use of uninitialized value of type Any in numeric context
in block <unit> at <tmp> line 1
Use of uninitialized value of type Any in numeric context
in block <unit> at <tmp> line 1
JJMerelo m: my $z = 2*( my $y = (my $x = 13) +1 ) 08:57
camelia ( no output )
JJMerelo m: my $z = 2*( my $y = (my $x = 13) +1 ); say $z
camelia 28
JJMerelo grondilu ^^
grondilu JJMerelo: nice. cumbersome, though. 09:08
grondilu you probably can do without the parens 09:08
grondilu m: my $z = 2* my $y = 1 + my $x = 14; 09:08
camelia ( no output ) 09:09
grondilu m: my $z = 2* my $y = 1 + my $x = 14; say "$x $y $z"
camelia 14 15 30
grondilu This is actually usable, even if the order of the declarations is reversed. 09:10
though it won't work if variable is used twice. 09:11
patrickb How would I write a test for a "Use of uninitialized value of type Any in numeric context" warning? 09:46
MasterDuke there's a `warns-like` used in roast 09:47
also `doesn't-warn` 09:48
patrickb That's not documented :-(
ah. It's part of roast Test/Util 09:50
MasterDuke github.com/Raku/roast/blob/master/...l.pm6#L643
patrickb I just had some email back and forth with supernovus. He supports the idea of pulling most of his modules to raku-community-modules. I have a list of which ones make sense to pull. The list has 21 repos to pull. How would one go about this? 10:17
patrickb Can someone invite supernovus to the raku-community-modules project? 10:23
JJMerelo patrickb on it 10:41
patrickb well, no, I can't 10:42
Try AlexDani` or Altai-man_. And while they're at it, maybe they can add me too? 10:43
AlexDaniel` lizmat: ↑ 10:44
lizmat invite sent 10:45
also made sure that JJMerelo can send invites in the future 10:47
JJMerelo Thanks 10:52
JJMerelo lizmat got it 10:58
I see the invitation to supernovus has been already sent.
lizmat yeah, I did that first :-) 11:07
oddp How do I destructure pairs? for <1 2 3>.pairs -> (???) { ... } Or is .key/.value my only option here? 11:38
ShimmerFairy m: say <a b c>.kv.perl 11:42
camelia (0, "a", 1, "b", 2, "c").Seq
oddp Sure, but assume I'm getting pairs back and not :kv. 11:45
lizmat m: for <1 2 3>.pairs -> (:$key,:$value) { dd $key, $value } # ShimmerFairy
camelia 0
IntStr.new(1, "1")
1
IntStr.new(2, "2")
2
IntStr.new(3, "3")
lizmat note that that is just calling the .key / .value method for you 11:46
m: for <1 2 3>.pairs -> (:key($k),:value($v)) { dd $k, $v } # if you want other variable names
camelia 0
IntStr.new(1, "1")
1
IntStr.new(2, "2")
2
IntStr.new(3, "3")
oddp That should do, thanks a lot, lizmat! 11:48
lizmat oops, sorry ShimmerFairy, meant oddp 11:49
Geth p6-sake: patrickbkr++ created pull request #28:
Renames
12:45
p6-sake: 047849c49b | (Patrick Böker)++ | 2 files
Perl 6 -> Raku
12:46
p6-sake: e7fe20b177 | (Patrick Böker)++ | README.md
Rakudobrew -> rakubrew
p6-sake: cf45815323 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | 2 files
Merge pull request #28 from patrickbkr/renames
AlexDani` patrickb: are you trying to use sake for anything? 12:48
patrickb AlexDaniel: Yes. 12:50
I'm working on a tool to generate native exec runner programs
Needs to do some C compiling.
AlexDaniel patrickb: can you rename it to `ake`? `maku` is a funny alternative but tab-completion works so much better with ake
patrickb And as I'm an outspoken make hater, I thought I'd give sake a try. 12:51
what's wrong with 'sake'?
AlexDaniel patrickb: see github.com/perl6/p6-sake/issues/19
patrickb AlexDaniel: I can have a look. We don't want to start bikeshedding again, do we? Just go for 'ake'? 12:55
AlexDaniel patrickb: yeah, in this case bikeshedding was already done
patrickb Is using '.rakumod' encouraged by now? I think I remember it being discouraged to still work on older compilers... 12:58
AlexDaniel patrickb: there are a bunch of upvotes, it was proposed by audrey herself, it's not taken by any binary, it should autocomplete from akTAB on most systems unlike maku which requires to write it fully, Makufile looks too similar to Makefile while Akefile is positively distinct
patrickb: you can use .rakumod or .my-lovely-modules, it makes no difference for installed modules because META6.json defines your module files 12:59
patrickb I'll go for 'ake'.
fine then :-)
AlexDaniel thank you :) 13:00
patrickb Does the 'not discouraged' bit also apply to '.rakutest'? 13:01
AlexDaniel patrickb: if you use .t and include a raku shebang in your files then `make` will work by default without requiring any extra options 13:04
sorry not make but `prove`
soooo… I don't see any point in .rakutest :S
patrickb So we should stick with '.t' until prove6 is the thing everyone uses.
AlexDaniel maybe? 13:05
patrickb AlexDaniel: I'll create a new repo github.com/Raku/raku-ake and push the rename there. Then put a rename notice on perl6/p6-sake. Right? 13:20
AlexDaniel patrickb: no, let's just move it 13:21
patrickb What about current users of sake?
Moving it will kill sake from the ecosystem. 13:22
AlexDaniel moved! 13:23
patrickb: the repo placement doesn't have much to do with the rename. Github will set up redirects and it'll work
patrickb Then we need to set up a new release on p6c to reference the last sake commit to keep it working. 13:24
AlexDaniel patrickb: I think as long as you have "provides" : { "Sake" : "…" } it will be installable
patrickb Ah! So you want it to provide an alias. 13:25
AlexDaniel yea
Geth ecosystem: pmqs++ created pull request #506:
Moved to CPAN
AlexDaniel this way we only have one repo, and people will get the newest version, and everything will be clean and nice :)
patrickb: as for ake itself as a tool, feel free to modify it to suit your needs. When I first touched it, it was in a somewhat weird state. I think I made it more usable, and I wrote a lot of tests, but because there were no tests before I might have broken it in some ways… I'm not sure 13:26
patrickb: this thing: github.com/Raku/ake/commit/8d54732...1d72ab25f1 13:29
patrickb AlexDaniel: I have now renamed the entire thing. How do I go about creating an alias? Duplicating the lib/Ake.pm6 file to lib/Sake.pm6 feels wrong. 13:32
AlexDaniel patrickb: that's the tricky part :) I think it should `use Sake` and also do the same `EXPORT` 13:33
Geth ecosystem: c3c200a113 | (Paul Marquess)++ (committed using GitHub Web editor) | META.list
Moved to CPAN
13:37
ecosystem: 0e108f8bcc | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | META.list
Merge pull request #506 from pmqs/master

Moved to CPAN
AlexDaniel patrickb: there are not that many users, so don't worry about it too much 13:38
just make it work more or less :)
Geth ake: patrickbkr++ created pull request #29:
Rename sake to ake
13:56
AlexDaniel patrickb: maybe *do* provide `sake` executable for now? 14:05
patrickb: there might not be automated calls but documentation and other stuff can refer to “sake”
patrickb: like here: github.com/Raku/whateverable/wiki/...the-server
patrickb But it won't be installable via `zef install sake` anyways, right? 14:06
(notice the lowercase 's')
AlexDaniel patrickb: zef used to understand that (e.g. maybe try installing json::fast, it should work) 14:06
pmurias hi, I moved to Warsaw last Wednesday, any Raku folk living in the city? 14:07
AlexDaniel patrickb: also can you hack a backcompat fix here? github.com/Raku/ake/pull/29/files#...56a8dafR11 14:08
patrickb: so that things keep working if you have “Sakefile” file 14:09
patrickb: if it didn't find a file, a if $file was ‘Akefile’, try ‘Sakefile’ too
and*
patrickb AlexDaniel: Is there a point in making `ake` look for a `Sakefile` given there is a `sake` executable that will do so?
AlexDaniel patrickb: oooooooooh 14:10
AlexDaniel patrickb: yeah just make `ake` look for Akefile and `sake` look for Sakefile, even simpler, yeah! 14:10
if that's what you mean
patrickb Yes. That has already happened. Look at the PR. 14:11
AlexDaniel patrickb: ah. Yea, sorry 14:12
patrickb: maybe throw in a deprecation `note` in `sake` :)
otherwise looks fine!
patrickb AlexDaniel: Done. 14:17
AlexDaniel heh that's massive, but will do!
thank you!
Geth ake: 47682d5516 | (Patrick Böker)++ | 32 files
Rename sake to ake

As the files move anyways we also change .pm6 to .rakumod. Provide a back-compat `Sake` module to keep current users working.
14:18
ake: a598347011 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | 32 files
Merge pull request #29 from patrickbkr/rename-to-ake

Rename sake to ake
AlexDaniel soursBot? 14:20
:)
AlexDaniel soursBot: help 14:21
.oO( asking a bot for help, dumb humans! )
14:22
MasterDuke soursBot: say "whiskey" > "lemon" 14:23
AlexDaniel sourceable6: "whiskey" > "lemon"
sourceable6 AlexDaniel, github.com/rakudo/rakudo/blob/8be2...c.pm6#L329
AlexDaniel thank you, sourceable6
sourceable6 AlexDaniel, \o/
AlexDaniel I'm always surprised how well it works 14:24
patrickb releasable6 status 14:42
releasable6: status 14:43
releasable6 patrickb, Next release in ≈7 days and ≈4 hours. There are no known blockers. 143 out of 282 commits logged (⚠ 4 warnings)
patrickb, Details: gist.github.com/028d229409e67a2ae9...79871f20b5
poohman hello all 18:04
in Raku regexes must : be escaped with a \? 18:05
if yes, what else could it mean in the regex?
timotimo : is for backtracking control i think? 18:06
but in general, all non-letters have to be backslashed or quoted to match literally
even if they don't have an assigned meaning without a backslash
poohman ok 18:08
Thanks timotimo 18:09
CIAvash How many days does it take to receive a response from PAUSE admins/maintainers for registration? 18:12
lizmat CIAvash: good question, how many days have you been waiting ? 18:48
CIAvash lizmat: 3 days so far, I think 18:49
lizmat hmmm... lemme see if I can ping someone
Geth ake: melezhik++ created pull request #30:
Black box testing for acke runs as RakuDist
18:53
lizmat CIAvash: what login name did you request ? 19:02
CIAvash lizmat: CIAVASH 19:03
lizmat CIAvash: I've pinged a PAUSE admin, hope that will help 19:06
CIAvash lizmat: thanks 19:07
softmoth CIAvash, it took ~3 weeks for me about 2 months ago.... 19:53
but scheduling of everything was pear-shaped at that time, so I didn't bother to ping anyone. But it *did* get handled! 19:57
[Coke] huh, all my CPAN stuff aged out.