🦋 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.
lizmat weekly: blogs.perl.org/users/damian_conway/...rland.html 00:13
notable6 lizmat, Noted! (weekly)
tony-o so many META6.json's missing "auth" 00:15
Xliff And that's for? 00:23
brisby I'm having trouble installing rakudo star on openbsd 6.6 00:25
MoarVM panic: Unable to allocate memory for callback closure
Any tips?
lizmat how much RAM do you have? 00:29
you generally need ~1.5G to be able to build Rakudo
brisby 8 gib
lizmat then that's not the reason :-) 00:30
is that amount free ?
brisby It built fine when I used gcc instead of clang, but calling perl6 results in the error
jnthn brisby: is it just if you run `perl6` to get the REPL? Does `perl6 -e 'say 42'` work? 00:32
lizmat you should probably make an issue for that with OS info + whatever stack traces you have
lizmat is too tired to stay at the keyboard 00:33
so goes off to sleep&
jnthn I think github.com/rakudo/star/issues/127 is related (summary: building MoarVM with dyncall on OpenBSD results in this error, but doing it with libffi works)
brisby yes, it just when I try to get the repl 00:34
`perl6 -e 'say 42'` works
jnthn Yeah, then probably it's the dyncall dependency having an issue on OpenBSD 00:36
brisby okay, thanks 00:42
Doc_Holliwood What's the nicest way to split a string in two (or more) substrings based on positions? 01:44
I mean, just chain substr calls doesn't seem to be the raku way 01:45
something like my ($as, $bs, $cs) = "aaabbcccc".split( :at(3, 5) ); would be nice 01:48
I realize this example could be solved by comb, that's not the point 01:49
Xliff m: sub @a(*@pos) { @pos.shift.say }; @a(3, 5) 02:54
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3sub7⏏5 @a(*@pos) { @pos.shift.say }; @a(3, 5)
expecting any of:
new name to be defined
Xliff m: sub @a (*@pos) { @pos.shift.say }; a(3, 5)
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3sub7⏏5 @a (*@pos) { @pos.shift.say }; a(3, 5)
expecting any of:
new name to be defined
Xliff m: sub a (*@pos) { @pos.shift.say }; a(3, 5)
camelia 3
Xliff m: sub a (*@pos) { gather while @pos { @pos.unshift.say }; }; a(3, 5) 02:56
camelia (timeout)[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3 5]
[3…
cpan-raku New module released to CPAN! Trait::Traced (0.1.2) by 03KAIEPI 03:05
Xliff Doc_Holliwood: It's not pretty, but... gist.github.com/Xliff/e1a0e93da6c0...215378e8ea 03:06
sisar just submitted a new bug report: github.com/rakudo/rakudo/issues/3439 05:29
Geth doc: 927f033a39 | (Peter du Marchie van Voorthuysen)++ | doc/Type/X/Cannot/Lazy.pod6
Document X::Cannot::Lazy
05:50
doc: 07916b8d83 | (Peter du Marchie van Voorthuysen)++ (committed using GitHub Web editor) | doc/Type/X/Cannot/Lazy.pod6
Merge pull request #3181 from dumarchie/#3163

Document X::Cannot::Lazy
Geth doc: ea0b00f14d | (JJ Merelo)++ | type-graph.txt
Adds to type-graph missing type
06:57
scimon Morning 09:05
cpan-raku New module released to CPAN! Test::Deeply::Relaxed (0.1.3) by 03ROAM 10:38
Doc_Holliwood Xliff: Thanks, but that's not what I meant. 10:42
tellable6 Doc_Holliwood, I'll pass your message to Xliff
Geth doc: 26500693c0 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md
Change locations
11:35
doc: 4e19170565 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md
Correct address
11:37
doc: ccac96a0f0 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
Remove file which is available elsewhere
11:39
cpan-raku New module released to CPAN! Getopt::Std (1.0.2) by 03ROAM 12:41
cpan-raku New module released to CPAN! Shell::Capture (0.2.4) by 03ROAM 13:43
pheix Hello, friends! Are there any news about new Rakudo Star release? 2019.03 seems to be so old ((( 13:48
tellable6 2019-12-26T00:39:52Z #raku <tbrowder> pheix: thnx, that's my vote also 13:49
rypervenche pheix: There will be a new rakudo release probably in the next few days, and I believe there will also be a rakudo star release for it as well. 13:59
cpan-raku New module released to CPAN! Gnome::Glib (0.15.5.2) by 03MARTIMM 14:07
Kaiepi releasable6, status 14:09
releasable6 Kaiepi, Next release will happen when it's ready. 1 blocker. 0 out of 511 commits logged
Kaiepi, Details: gist.github.com/576c2d0cc150980c45...ea1c68e4a8
[Coke] team++
pheix rypervenche: thank you! 14:10
rypervenche: good news 14:11
cpan-raku New module released to CPAN! Gnome::GObject (0.15.11.5) by 03MARTIMM 14:15
New module released to CPAN! Gnome::Gdk3 (0.15.1.2) by 03MARTIMM 14:17
rba Downtime expected this saturday for hosting of raku/rakudo websites due to VM migration. 14:29
mcmillhj Is there something built-in I can use for benchmarking? Or a module that anyone would recommend for this use? 14:48
rypervenche mcmillhj: Check out: docs.raku.org/language/performance 15:02
mdmkolbe I'm not sure if this is the right place to ask, but I'm having trouble with `zef`. Running `zef install PrettyDump` produces `===> Fetching [FAIL]: PrettyDump:ver<1.1.7> from [email@hidden.address] due to fetch failure: PrettyDump:ver<1.1.7> (use --force-fetch to override)`. Is the package setup wrong or something? 15:06
[Coke] seeing the same issue here, guessing it's a problem with the repo def added to the ecosystem list. 15:11
looks like maybe he renamed the git repo 15:13
try this:
rypervenche Not sure if this is related, but it's got build failures on its Github page.
[Coke] zef install github.com/briandfoy/perl6-PrettyDump.git 15:14
it's missing the "perl6-" in the ecosystem
e.g. raw.githubusercontent.com/ugexe/Pe.../p6c1.json
Weird, looks like it's updated here: github.com/Raku/ecosystem/blob/master/META.list 15:17
wonder if the mirrors need a kick
mdmkolbe [Coke]: Thank you for the `zef` command to use the repository directly. That solved my immediate problem. (Though of course it sounds like something wider in the ecosystem is off.) 15:18
[Coke] wonder if the rename from perl6/ to Raku/ in our ecosystem repo wasn't tracked on the mirror. 15:20
[Coke] opens github.com/ugexe/Perl6-App--ecogen/issues/6 15:23
Doc_Holliwood what soes "reified" mean? 16:14
jnthn Typically it's used in the context of a lazy list, and elements that have been reified are those that have been produced and stored in the list so far 16:16
Doc_Holliwood so a reified sequence is one which has been completely exhausted 16:18
jnthn, remember the parallel sorting issue I put on SO the other day? 16:19
jnthn I think it was more than some days... :) 16:20
Long enough my memory is hazy... :)
Doc_Holliwood I played around with it and found, while it's faster for unsorted things, it is slower for already sorted things
and so i poked around, ended up in nqp and the sort used already is a mergesort, right? 16:21
so why not make it parallel in the first place?
jnthn Well, on a HyperSeq or RaceSeq it can be 16:22
It's just not implemented that way yet
Doc_Holliwood stackoverflow.com/questions/583862...fficiently
man, nqp is hard to read 16:31
cpan-raku New module released to CPAN! Gnome::Gtk3 (0.21.3.1) by 03MARTIMM 17:43
ToddAndMargo Hi Guys! Where would I Place a request for Enhancement to Raku? Git something? 17:53
tellable6 hey ToddAndMargo, you have a message: gist.github.com/9e0f849c02a565481e...c0be05accc
El_Che it depends what you want to enhance :) 17:54
[Coke] probably github.com/Raku/problem-solving
ToddAndMargo Do you mind if I run it past you guys first? 17:55
[Coke] but yah, feel free to bounce it here and see if you get a different answer.
heh
El_Che (it may be an implementaton isue -> rakudo)
ToddAndMargo I am double checking my spelling and typoes 17:59
Okay, I live and die by top down. I have subs and modules out the nose. On the declaration line of a sub, I love to use the "returns" or the "-->" syntax. This give a good idea at a glance what the sub does and helps with maintainability and readability. Well, me at least. So when I return two of more values `return($a, $b, $c)` from a sub, I would 18:01
like you guys to add to the declaration line a way to do a “returns” for that situation. Something like `-->$a, $b, $c` or `returns $a, $b, $c`. Do you think this RFE would be accepted?
oops. Sorry. `returns Int,UInt,Str`, not the variable names 18:04
[Coke] I think this is doable. one sec. 18:07
ToddAndMargo :-)
lucasb m: subset Tuple where * ~~ (Int, UInt, Str); sub f($a,$b,$c --> Tuple) { ($a,$b,$c) }; say f(-1, 5, 'x') 18:09
camelia (-1 5 x)
lucasb m: subset Tuple where * ~~ (Int, UInt, Str); sub f($a,$b,$c --> Tuple) { ($a,$b,$c) }; say f(-1, 5, 0) 18:10
camelia Type check failed for return value; expected Tuple but got List ($(-1, 5, 0))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
[Coke] trying subsignature, capture...
ToddAndMargo I would like it to give the order of the returned types as well. A subset would mix them up. 18:12
[Coke] Not the way lucasb is doing it. subset showing an order, not a set of types. 18:13
I don't see a way to do it inline. 18:14
m: m: subset Tuple where * ~~ (Int, UInt, Str); sub f($a,$b,$c --> Tuple) { ($a,$b,$c) }; say f(-1, 'x', 5)
camelia Type check failed for return value; expected Tuple but got List ($(-1, "x", 5))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
[Coke] ^^ see, the order matters.
jmerelo ToddAndMargo: you can simply return a list. Every element will have a different type. You'll have to check types individually on the receiving end. No biggie. 18:15
ToddAndMargo May I impose on you for an example?
[Coke] yes, manually checking things that can be caught by the returns syntax is a biggie.
jmerelo ToddAndMargo: also, subsets do not mix stuff up. What a subset does is exactly that: create a type-checked aggregate and give it a name. 18:16
[Coke]: you are also returning them; you can check them before returning. It's either that or use a pre-defined subset that does that for you. 18:17
[Coke] I think if there's an ask here, it'd be to be able to do this without explicitly declaring the subset, with a sub-signature.
ToddAndMargo I meant the if you are sending back two different types in a particular order, a subset would not give you that information
jmerelo [Coke]: well, having a "where" clause on the return type would be nice. 18:18
[Coke] ToddAndMargo: yes, it does.
we showed you an example that cared about the order.
ToddAndMargo May I impose on you for an example?
[Coke] m: subset Tuple where * ~~ (Int, UInt, Str); sub f($a,$b,$c --> Tuple) { ($a,$b,$c) }; say f(-1, 5, 'x') # in order, works.
camelia (-1 5 x)
[Coke] m: subset Tuple where * ~~ (Int, UInt, Str); sub f($a,$b,$c --> Tuple) { ($a,$b,$c) }; say f(-1, 'x', 5) # out of order, fails.
camelia Type check failed for return value; expected Tuple but got List ($(-1, "x", 5))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
[Coke] ToddAndMargo: ^^
those are the same examples from above but with trailing comments. 18:19
ToddAndMargo crossed in the ether. I like it. Thank you. 18:20
[Coke] lucasb++ 18:20
ToddAndMargo Since there is a workaround, would it be still be reasonable to add a returns for this in the sub declaration. I would be easier to maintain and to read at a glance. 18:22
MasterDuke i think there's been some talk about doing that before, but i don't remember if the result was that it just wasn't implemented yet, or if it couldn't/shouldn't be done 18:24
MasterDuke jnthn, lizmat: ^^^? 18:24
ToddAndMargo Is there a link you can give me to make an RFE? 18:25
rypervenche Aside from maybe being less readable, is there a good reason to (or not to) replace this for loop with a single line? I finally figured out how to use the X operator to get the same result. gist.github.com/rypervenche/d15053.../revisions 18:27
MasterDuke github.com/Raku/problem-solving/is...new/choose
rypervenche Just trying to create some best practices for myself.
cpan-raku New module released to CPAN! Date::Calendar::Strftime (0.0.3) by 03JFORGET 18:29
Geth ¦ problem-solving: ToddAndMargo assigned to jnthn Issue RFE: returns for multiple variables github.com/Raku/problem-solving/issues/152 18:33
El_Che ToddAndMargo: I like the typed multivalued return as well. Not for data (there are enough datastructures for that), but for errors that don't warrant an exception 18:58
Poohman hello all 18:59
ToddAndMargo I like it!
Poohman m: grammar test{ regex TOP {.*<a>.*<b>.*}, regex a {.*}, regex b {check}};my $x = test.parse("kljsdlkjwalksjdkls csadcsadc jkchecksdc");say $x 19:01
camelia 「kljsdlkjwalksjdkls csadcsadc jkchecksdc」
a => 「」
b => 「check」
Poohman m: grammar test{ regex TOP {.*<a>.*<b>.*}, regex a {.*}, regex b {check}};my $x = test.parse("kljsdlkjwalksjdkls csadcsadc jkchecksdc");say $x;say $x<b>; 19:02
camelia 「kljsdlkjwalksjdkls csadcsadc jkchecksdc」
a => 「」
b => 「check」
「check」
Poohman in my code I dont get the value is see for <b> during "say $x" when I type "say $x<b>" 19:04
it say Nil 19:05
it says Nil for "say $x<b> even though I can see it detected some stuff and showed it during "say $x" 19:06
m: grammar test{ regex TOP {.*jwal<a>dkls.*<b>.*}, regex a {.*}, regex b {check}};my $x = test.parse("kljsdlkjwalksjdkls csadcsadc jkchecksdc");say $x;say $x<a>; 19:07
camelia 「kljsdlkjwalksjdkls csadcsadc jkchecksdc」
a => 「ksj」
b => 「check」
「ksj」
Poohman strange Im able to see ksj here 19:08
but in my computer something similar gives Nil 19:11
[Coke] So if it works here and not locally: are you running the *same* code in both places? same data? if so, small chance it could be a version difference in rakudo versions.
Poohman I just copied this code and pasted it in Comma and it worked there as well 19:13
something similar seems to work differently
let me poke around a bit more 19:15
[Coke] Some folks have a very old rakudo installed locally. 19:16
(installed from a system package manager, perhaps)
Geth ¦ problem-solving: ToddAndMargo assigned to jnthn Issue RFE: REPL dependency check for Readline github.com/Raku/problem-solving/issues/153 19:19
rypervenche I thought the REPL already told you to install Readline or Linenoise, no? 19:44
ToddAndMargo Didn't on Fedora 31 19:45
rypervenche Interesting. I'm on 2019.11 as well and I get the following line when I type "raku": You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor 19:50
tobs ToddAndMargo: the problem-solving repo is probably not the best venue for this issue. Your problem concerns strictly the REPL shipped with Rakudo and it seems to be quite minor at that. Have you read the Readme of that repository? 19:51
[Coke] tobs: which issue? 19:52
the one he most recently opened is a language issue, not a REPL one.
ToddAndMargo Did not know where it existed. Do you have a link to that repo?
[Coke] also, he was pointed there by at least one person in chat here.
... ah. my just was the *previous* one! 19:53
tobs [Coke]: this one github.com/Raku/problem-solving/issues/153
[Coke] yup, tobs++
ToddAndMargo: github.com/rakudo/rakudo/issues
don't think we can transfer the issue.
ToddAndMargo I will cancel and report. Thank you!
tobs I agree the signature return list type issue was well placed :) 19:54
[Coke] Pretty sure it does offer those as suggestions when you start ./perl6's REPL and don't have those installed.
[Coke] apologizes for not reading the backlog entirely when complaining a bit about someone not reading the backlog! 19:55
rypervenche Perhaps it's a Fedora thing?
tobs no sweat, [Coke] 19:56
[Coke] tobs++ 19:57
rypervenche Hmm, it's in REPL.pm6 though in v2019.11.
ToddAndMargo github.com/rakudo/rakudo/issues/3440
I am running Fedora 31github.com/nxadm/rakudo-pkg/releases$ rpm -qa *rakudo*rakudo-pkg-2019.07.1-03.x86_64 19:58
[Coke] ToddAndMargo: You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor
rypervenche ToddAndMargo: Oh, you're on an old version.
[Coke] that's what I get with a rakudo from about a month ago installed locally with no linenoise or readline installed.
rypervenche Fedora 31 already has 2019.11 in its repos: apps.fedoraproject.org/packages/rakudo 19:59
[Coke] Pretty sure the readline message is older than ToddAndMargo's version.
ToddAndMargo Ah poop! And there it is! github.com/nxadm/rakudo-pkg/releases
[Coke] (the one I had lying about is This is Rakudo version 2019.11-378-g262b6fc7a built on JVM)
ToddAndMargo odd as I am running the same version on two different Fedora 31 computers. one had the problem, the other did not. 20:02
[Coke] maybe you have an borked install of one of the modules. 20:03
ToddAndMargo I have a module that imports use Term::termios;use Terminal::Print::RawInput; 20:26
maybe one of them has a dependency?
veesh hey todd, nice to see you on irc 20:36
ToddAndMargo irc is a wonderful tool. And the guys on it are total mensches. No I am not sucking up. Well maybe a little. It is nice to be sucked up to every so often. :-) 20:40
Geth doc: 9b2123cfa0 | (Stoned Elipot)++ | doc/Language/operators.pod6
sync example's output with its code
21:15
Geth rakudo.org/master: 22 commits pushed by (Patrick Böker)++, (Roman Baumer)++
review: github.com/perl6/rakudo.org/compar...adcd0b9446
21:51
Geth rakudo.org: 2b62e77226 | (Roman Baumer)++ (committed using GitHub Web editor) | nginx.conf
Update prod nginx.conf
22:16
rakudo.org: patrickbkr++ created pull request #33:
Fix news
22:22
rakudo.org: 13e3c00450 | (Patrick Böker)++ | templates/news.html.ep
Fix news
rakudo.org: 3b4eea2c7e | (Roman Baumer)++ (committed using GitHub Web editor) | templates/news.html.ep
Merge pull request #33 from patrickbkr/master

Fix news
rakudo.org: c3ed408289 | (Roman Baumer)++ (committed using GitHub Web editor) | nginx.conf
more generic /files -> /downloads redirect
22:26
Geth doc: dumarchie++ created pull request #3183:
Improve some method definitions
22:43
Geth ¦ raku.org: rba self-assigned Raku examples link returns 502 from home page and resources page github.com/Raku/raku.org/issues/140 22:51
doc: a2295e44dc | (Peter du Marchie van Voorthuysen)++ | doc/Type/Seq.pod6
Improve some method definitions
22:52
doc: b8192afabd | (Peter du Marchie van Voorthuysen)++ (committed using GitHub Web editor) | doc/Type/Seq.pod6
Merge pull request #3183 from dumarchie/#3163

Improve some Seq method definitions
ergergrdf hi 23:21
is it true someone is developping "Raku on Rails" ? 23:22
lizmat I guess cro.services is the closest that I know about 23:23
especially the cro.services/docs/reference/cro-webapp-template part I guess
afk&
ergergrdf lizmat hi. Which is better for text report, Perl or Raku ? 23:24
lizmat I'm the wrong person to ask :-)
really afk&
ergergrdf why ?
MasterDuke ergergrdf: i think maybe Xliff was interested in working on a web framework, but i don't believe work has been started 23:27
ergergrdf MasterDuke hi ! 23:29
masterduke Which is better for text report, Perl or Raku ?
I have heard Raku is slowest than Perl
but not sure
Please forgive my engish 23:30
english
MasterDuke without knowing any details of what kind of report, raku is more powerful, but likely slower. also not installed everywhere by default like perl is
ergergrdf Ok thanks. Why does Github as not replace "Perl6" by "Raku" 23:39
MasterDuke we're in the process of changing the name everywhere, but it's going to take a while. lots of places, lots of manual work, etc 23:40
ergergrdf MasterDuke What if GitHub refuse to replace "Perl 6" by "Raku" ? 23:58
MasterDuke don't think there's any reason they would refuse
but either way, for me that's a problem for tomorrow. i'm off to sleep 23:59