🦋 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.
stoned75 oops doc build is broken 00:16
Altai-man_ I knew something like this is possible, but... 00:21
hmm, why so?
stoned75, is says the build passed at github.com/Raku/doc/runs/325368693 no? 00:22
stoned75 ah yes indeed. well it's broken for me at least :) 00:23
Altai-man_ stoned75, what do you mean by it?
stoned75 the new PrecompilationRepository type pod processing by documentable is broken. lemme check if my working copy is dirty or not 00:24
ah but the travis build does not run documentable, right ? 00:29
Geth doc: 1912269890 | (Stoned Elipot)++ | type-graph.txt
Add missing type
01:42
Geth doc: 353daae206 | (Stoned Elipot)++ | doc/Language/regexes.pod6
Align examples' output

  ... not necessarily in the source but at least in the rendered document
02:04
cpan-raku New module released to CPAN! LibXML (0.2.2) by 03WARRINGD 03:02
ufobat does anyone run the comma-ide as a plugin in the current intellij IDEA? 07:59
Geth doc: e25bfefd85 | (JJ Merelo)++ | 2 files
Revise for doc generation refs #3046
08:20
Xliff \o 08:23
.seen vrurg
tellable6 Xliff, I saw vrurg 2019-11-28T20:43:23Z in #raku-dev: <vrurg> I wonder how we gonna handle this when 6.e becomes the default. Shall 6.c core be compileable with 6.e?
Xliff .tell vrurg I've got some Amazon-AWS-EC2 issues I'm having problems with. Are you going to be around, today with time to help?! Pleeease? 08:23
tellable6 Xliff, I'll pass your message to vrurg
Xliff
.oO( I h8 to whine, but I wanna keep my hair. :P )
08:24
jmerelo Xliff is that strictly platform related? 08:26
tellable6 2019-11-28T19:27:54Z #raku <tbrowder> jmerelo my raku advent post is scheduled to publish on time
jmerelo .tell tbrowder great job!
tellable6 jmerelo, I'll pass your message to tbrowder
Xliff jmerelo: Yes. It's much to do with dynamic loading.
I can't explain why I can do everything I want from the command line, but the script that does it throws errors.
Xliff If you want to pick around, you can take a look... 08:27
jmerelo If I can be of help...
Xliff github.com/Xliff/p6-Amazon-AWS-EC2...-actions.t
Better yet... download the project. It's fairly stand alone. (IE -- it's no GTK) 08:28
Then try and run "perl6 -Ilib t/04-actions --unit=CreateKeyPair"
You will see errors.
However this invocation works....
perl6 -Ilib -e 'my \c := (try require ::($ = "Amazon::AWS::EC2::Action::CreateKeyPair")); c.^name.say'
ALL of these classes were working back when I stopped on Amazon and went back to GTK, this summer. 08:29
jmerelo You are showing me a branch.
Xliff You can work from master. 08:30
Xliff JulyActionRefactor is for another (hopefully not related) bug 08:30
I'm pretty sure something has changed internally, and I just need to update the code... but I can't figure out where. 08:31
jmerelo still installing dependencies...
Xliff One that still works: perl6 -Ilib t/04-actions.t --unit=CopySnapshot 08:32
jmerelo tests take some time, but they seem to be working 08:40
the test you indicated above says it can't find scripts/dependencies.pl6 08:42
And then test 2 fails, it can't create a key pair 08:43
Maybe I need to be logged on to Amazon?
Xliff :(
Yeah,.
jmerelo Ah, sorry...
Xliff Crap. You need to get the scripts from p6-GtkPlus. I keep meaning to turn those into their own project.
jmerelo I don't think I have credits now... 08:44
Xliff No worries. I will continue to pull hair until I talk to vrurg.
jmerelo Ah, scripts is a symbolic link...
Good luck...
Xliff Yeah 08:47
*snarl* 08:55
Found it.
:D
Geth doc: 0b35dda966 | (JJ Merelo)++ | 10 files
Replaces repo name #3101
09:12
jmerelo Just deployed this new version to docs-stage.raku.org/ to check for possible errors. 09:30
Main change here is simply that now the footer points directly to the new repository, instead of pointing to the old and being redirected to the new
If everything is OK, I'll generate it again and deploy it to docs.raku.org 09:31
sarna works for me 09:37
jmerelo sarna thanks 09:40
Also, I'm moving perl6/advent to Raku/advent if no one objects
Also, happily, seems like Google is starting to find the new documentation pages www.google.com/search?client=ubunt...p;oe=utf-8 09:41
It's also getting much better on the generic search area: www.google.com/search?safe=off&.......0i203j 09:42
0i30j0i5i30j0i8i30j0i22i30j0j0i10i203.7w6V0VKC3l0&ved=0ahUKEwjy3rjOkI_mAhWvDWMBHZHbCmQQ4dUDCAo&uact=5
jmerelo OK, the advent calendar repo is now github.com/Raku/advent 09:45
atroxaper Hi, #raku 11:30
tellable6 2019-09-04T05:10:19Z #perl6 <jmerelo> atroxaper thanks
atroxaper It there a way to access to Perl6::Grammar from my script? I wanted to use it with my own Actions. 11:31
lizmat atroxaper o/ 11:32
atroxaper lizmat: \o
lizmat moritz jnthn might have that info handy
cpan-raku New module released to CPAN! Inline::Perl5 (0.43) by 03NINE 12:15
abraxxa I want to check if a value in a given/when statement is one of three possible ones, can I use smartmatch with a List/Array for that? 12:36
Altai-man_ abraxxa, you can just junction 12:37
m: given 4 { when 1|2|4 { say "Matched!" } }
camelia Matched!
Altai-man_ abraxxa, if you don't know values beforehand and they are in an array, then...
abraxxa when 'reject', 'deny', 'drop' { is accepted by the compiler as well
Altai-man_ m: my @a = 1, 2, 4; given 4 { when $_ (elem) @a { 42.say } } 12:38
camelia 42
Altai-man_ m: my @a = 1, 2, 4; given 10 { when $_ (elem) @a { 42.say } }
camelia ( no output )
Altai-man_ abraxxa, that's another option
abraxxa Altai-man_: but it doesn't match. I guess its generating a List because of the , and compares to the list 12:42
Altai-man_ m: my $a = 'a'; given $a { when 'a', 'b' { 42.say } }
camelia ( no output )
Altai-man_ m: my $a = 'a'; given $a { when 'a'|'b' { 42.say } }
camelia 42
Altai-man_ abraxxa, ^
m: my $a = 'a'; given $a { when $_ (elem> 'a', 'b' { 42.say } }
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3my $a = 'a'; given $a { when $_7⏏5 (elem> 'a', 'b' { 42.say } }
expecting any of:
block or pointy block
infix
infix stoppe…
Altai-man_ m: my $a = 'a'; given $a { when $_ (elem) 'a', 'b' { 42.say } }
camelia ( no output )
Altai-man_ m: my $a = 'a'; given $a { when $_ (elem) ('a', 'b') { 42.say } } 12:43
camelia 42
Altai-man_ abraxxa, ^
tobs yes, it probably smartmatches against the list. I'd use junctions. Syntactically they look like a list and do what you meant 12:56
m: for <apply reject fire drop> { when any <reject deny drop> { say "matched" }; say "didn't match" } 12:57
camelia didn't match
matched
didn't match
matched
vrurg . 14:26
tellable6 2019-11-29T08:23:55Z #raku <Xliff> vrurg I've got some Amazon-AWS-EC2 issues I'm having problems with. Are you going to be around, today with time to help?! Pleeease?
vrurg .tell Xliff I'll be afk most of the day today. But hope to be available tonight. 14:27
tellable6 vrurg, I'll pass your message to Xliff
chloekek p6: .say for 1..10 X 1..10 X 1..10 15:05
camelia (1 1 1)
(1 1 2)
(1 1 3)
(1 1 4)
(1 1 5)
(1 1 6)
(1 1 7)
(1 1 8)
(1 1 9)
(1 1 10)
(1 2 1)
(1 2 2)
(1 2 3)
(1 2 4)
(1 2 5)
(1 2 6)
(1 2 7)
(1 2 8)
(1 2 9)
(1 2 10)
(1 3 1)
(1 3 2)
(1 3 3)
(1 3 4)
(1 3 5)…
chloekek Is it possible to modify this example to produce (1 1 1) (2 1 1) (3 1 1) …?
I tried RX instead of X but it gives a syntax error. :’) 15:06
jnthn p6: .reverse.say for 1..10 X 1..10 X 1..10 # ? :) 15:07
camelia (1 1 1)
(2 1 1)
(3 1 1)
(4 1 1)
(5 1 1)
(6 1 1)
(7 1 1)
(8 1 1)
(9 1 1)
(10 1 1)
(1 2 1)
(2 2 1)
(3 2 1)
(4 2 1)
(5 2 1)
(6 2 1)
(7 2 1)
(8 2 1)
(9 2 1)
(10 2 1)
(1 3 1)
(2 3 1)
(3 3 1)
(4 3 1)
(5 3 1)…
lizmat m: .say for (1..3 X 1..3 X 1..3)>>.reverse 15:08
camelia (1 1 1)
(2 1 1)
(3 1 1)
(1 2 1)
(2 2 1)
(3 2 1)
(1 3 1)
(2 3 1)
(3 3 1)
(1 1 2)
(2 1 2)
(3 1 2)
(1 2 2)
(2 2 2)
(3 2 2)
(1 3 2)
(2 3 2)
(3 3 2)
(1 1 3)
(2 1 3)
(3 1 3)
(1 2 3)
(2 2 3)
(3 2 3)
(1 3 3)
(…
chloekek jnthn: haha of course, thanks :) 15:10
atroxaper jnthn: Is there a way to access to Perl6::Grammar from a script? I wanted to use it with my own Actions. 16:16
moritz I don't think so, except through EVAL 16:19
atroxaper moritz: what do you mean "through EVAL"? 16:21
jnthn atroxaper: You may well find that it depends on some side-effects performed by the actions to work in general, though nothing stops you subclassing them and calling up to them. 16:22
And also doing your own thing.
m: use Perl6::Grammar:from<NQP>; use Perl6::Actions:from<NQP>; class MyActions is Perl6::Actions { method integer(Mu $/) { $/.Str.say; callsame; } }; Perl6::Grammar.parse("42", actions => MyActions)
camelia 42
jnthn m: use Perl6::Grammar:from<NQP>; use Perl6::Actions:from<NQP>; class MyActions is Perl6::Actions { method integer(Mu $/) { say "actions says " ~ $/.Str; callsame; } }; Perl6::Grammar.parse("42", actions => MyActions)
camelia actions says 42
jnthn Just to show it's really there :)
Note that you'll be dealing with NQP match objects, however. 16:23
lizmat
.oO( computer says "yes" )
atroxaper jnthn: wow! I didn't know about :from<NQP> way. Thank you. 16:24
Xliff Getting this from OO::Monitors 17:39
Could not find Test::Counter at line 2 in:
Cannot find Test::Counter in zef
shinobicl hello!!!!I am happily accepting the #raku name :) (I would also happily accepting the removal of ":D" declarations hehe)So my first question is.. how this affects the syntax and naming for modules? .rak and .ram instead of .p6 and .p6m? 18:20
lizmat .pm6 you mean ? 18:22
.raku for scripts, and .rakumod for modules
but don't worry, the old extensions will continue to work for quite a long time in the future 18:23
shinobicl i need to ask this: Is there a schism about the name change?
sena_kun not really 18:26
lizmat well, about a year ago I very much against it, and in August I suggested it, and now I'm getting used to it
*wqas
*was
grrr
tadzik I didn't like it at first, now I'm fond of it :) 18:27
but I also haven't adjusted to it myself in any way: my software works just as it did before
shinobicl i like it the new name. I will start using #raku from now on. I was thinking on creating a Raku api for coinbase and i will start with the naming. Probably i will convert my 2 modules to the new naming. 18:27
tadzik nice :)
shinobicl 2 public modules i mean.
shinobicl so, there is a "requests" module for python. Which one would be "the" REST request modules for Raku today? 18:36
tadzik probably something from Cro 18:37
lizmat not sure what "requests" does, but REST means Cro to me
cro.services
tadzik cro.services/docs/reference/cro-http-client
lizmat: requests is basically a highlevel LWP
shinobicl 2.python-requests.org/en/master/
tadzik but not quite WWW::Mechanize
shinobicl How far the name change goes? The package is still perl6? the compiler? 18:42
Xliff The compiler is, and always has been, "rakudo" 18:45
There will be a "raku" and a "perl6" alias, moving forward.
El_Che so, we have a release? 20:28
lizmat yes, we haz a release 20:29
El_Che nize
chloekek shinobicl: could you elaborate on the removal of :D? Is a proposal for this written down somewhere? 21:14
El_Che I am creating pkgs, including relocatable ones 21:16
question, I see now bin/rakudo is created
is it also the case for raku?
so I can remove that 21:17
(the aliases I created manually)
+ Added `raku` and `rakudo` executables [5090206d][ab0a6d61] 21:20
never mind :)
\o/
Altai-man_ El_Che++ 21:23
shinobicl Lol... no... i just found it looks ugly :) I understand the need for it though 21:32
El_Che shinobicl: I am also confused by it, even if I understand what it is 21:34
shinobicl i would prefer an "is value-object" or something similar 21:35
or whatever terms applies better or raku 21:36
Xliff shinobicl: Where is this discussion stemming from?! 21:37
I also think the type smileys are a little off-putting.
Doesn't stop me from using them, tho.
jnthn wonders why, when colonpairs are essentially *everywhere* in the language, this particular use of them attracts attention 21:44
shinobicl Ahh from nowhere in particular. I just mentioned that the smileys looked confusing. I mean.. people hop from language to language very frequently these days, and in general is very simple to read a program written in another language without too much effort, and this looks too strange, even for perl6 standards. Particularly because it is
everywhere! But this is just my opinion.
jnthn I guess it's the only common case where the letter after the : is capitalized 21:45
El_Che 1 bin/ script [zef] installed to: 21:55
/opt/rakudo-pkg/share/perl6/core/bin
zef installs to share/perl6?
is that not changed or it's self that decides that?
jnthn Probably not changed, and probably will need some careful thought on how to do. 21:56
hythm likes the type smileys :D 21:57
El_Che jnthn: thx 22:20
xkr47 weeh added readline support to my calculator 22:25
El_Che jnthn: it is sane/difficult/get-out-of-here to add readline in core compared to a module? 22:27
people seem to strugle sometimes with the C deps
certainly when distros upgrade de lib versions
El_Che AlexDaniel`: just did a 32-bit relocatable build and it passed all the tests from the 1st time. This is what I call progress :) 22:33
sena_kun in a regex, do I write `/<-[. .. z]>/` or `/<-[\. .. z]>/`? inb4: use codes 22:39
m: say 'a' ~~ /<-[. .. z]>/; 22:40
camelia Nil
sena_kun just `.` is enough... 22:47
xkr47 what do you want? 22:56
a character range?
is <-[ ]> a negative range? like everything except? 22:57
AlexDani` El_Che: before or after it was moved? :D 23:16
cpan-raku New module released to CPAN! Method::Also (0.0.4) by 03ELIZABETH 23:17
jnthn xkr47: Yes; and <+[ ]> is a positive one (the same as <[ ]> on its own, but then you can add and subtract, like <[\w]-[aeiou]> 23:34
)
El_Che: We did once have linenoise in MoarVM, and that wasn't really ideal in that then every backend was expected to provide it, plus we only provided a "read interactive" op, which meant we only gave a fraction of the functionality. So really a NativeCall binding is the easiest way. 23:35
El_Che: The reliable but frowned upon thing is to ship the source with the binding and compile it at install time and load *that*, ignoring any system version. ;) 23:36
El_Che mm 23:37
jnthn El_Che: Actually originally in MoarVM I decided that I'd just submodule + static link every C-level dependency into the VM. It was lovely...until we got to Debian packaging. :)
El_Che Is it correct that rakudo is a binary and raku a syslink? 23:38
it seems to be broken on relocatable builds
jnthn: lol, debian :)
jnthn I think nine++ discovered a problem with the symlink + packaging today also. 23:39
El_Che I'll work around it
funny thing is that I added the raku systemlink myself
and it broke because rakudo provided
so I removed it :)
jnthn El_Che: Well, I can understand/respect debian's position on this, I guess. Mostly mentioning it because a "bundle the thing and build it" is probably package-hostile. 23:40
El_Che yeah, I mostly meant the functionality, eg link to it. What does python do for their repl? 23:41
El_Che besides the link, relocatable builds look fine 23:45
alls my build pass 23:46
will release tomorrow after running some extra tests
making sure the broken link is not in the non relocatable builds 23:49