🦋 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:05 Altai-man_ joined 00:06 sena_kun left 00:12 captain-adequate left
stoned75 oops doc build is broken 00:16
00:17 finanalyst left
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
00:31 pmurias left 00:36 colomon joined 00:38 lucasb left 00:39 rbt left 00:40 Altai-man_ left 00:52 wamba left 01:23 MasterDuke left 01:41 colomon left
Geth doc: 1912269890 | (Stoned Elipot)++ | type-graph.txt
Add missing type
01:42
01:43 colomon joined
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
03:18 colomon left 03:43 skyl4rk joined 03:49 rindolf joined 04:08 mid_laptop left 05:08 quotable6 left, statisfiable6 left, coverable6 left, shareable6 left, reportable6 left, greppable6 left, releasable6 left, squashable6 left, nativecallable6 left, benchable6 left, bisectable6 left, unicodable6 left, bloatable6 left, notable6 left, committable6 left, coverable6 joined, reportable6 joined 05:09 shareable6 joined, greppable6 joined, squashable6 joined, bisectable6 joined, benchable6 joined, notable6 joined 05:10 quotable6 joined, nativecallable6 joined, bloatable6 joined, statisfiable6 joined, committable6 joined 05:11 Guest91 joined, unicodable6 joined, releasable6 joined 05:29 Guest91 left 05:43 abraxxa left 06:00 abraxxa joined 07:00 greppable6 left, benchable6 left, shareable6 left, reportable6 left, bisectable6 left, notable6 left, bloatable6 left, releasable6 left, committable6 left, coverable6 left, statisfiable6 left, squashable6 left, quotable6 left, unicodable6 left, nativecallable6 left, squashable6 joined, shareable6 joined, statisfiable6 joined, greppable6 joined, nativecallable6 joined 07:01 reportable6 joined, bisectable6 joined 07:02 coverable6 joined, benchable6 joined, committable6 joined, bloatable6 joined, unicodable6 joined 07:03 notable6 joined, releasable6 joined, quotable6 joined 07:11 Doc_Holliwould joined 07:14 holli joined, Doc_Holliwood left 07:17 Doc_Holliwould left 07:18 Doc_Holliwould joined 07:21 holli left, Doc_Holliwood joined 07:24 Doc_Holliwould left 07:25 Doc_Holliwould joined 07:28 Doc_Holliwood left 07:29 holli joined 07:30 wamba joined 07:32 Doc_Holliwould left, Doc_Holliwood joined 07:35 holli left 07:36 Doc_Holliwould joined 07:38 Doc_Holliwood left 07:39 Doc_Holliwood joined 07:42 Doc_Holliwould left 07:43 Doc_Holliwould joined 07:46 Doc_Holliwood left, holli joined 07:49 Doc_Holliwould left 07:50 Doc_Holliwood joined 07:52 holli left 07:53 Doc_Holliwould joined 07:54 ufobat joined 07:56 Doc_Holliwood left 07:57 holli joined
ufobat does anyone run the comma-ide as a plugin in the current intellij IDEA? 07:59
08:00 Doc_Holliwould left 08:01 Doc_Holliwood joined 08:04 holli left, Doc_Holliwould joined, stoned75 left 08:07 Doc_Holliwood left 08:08 Doc_Holliwood joined 08:10 Doc_Holliwould left 08:11 Doc_Holliwould joined 08:14 Doc_Holliwood left 08:15 Doc_Holliwood joined 08:18 Doc_Holliwould left, Doc_Holliwould joined
Geth doc: e25bfefd85 | (JJ Merelo)++ | 2 files
Revise for doc generation refs #3046
08:20
08:21 Doc_Holliwood left, jmerelo joined 08:22 abraxxa left, abraxxa joined, Xliff joined
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?
08:23 wamba left, holli joined
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
08:26 Doc_Holliwould left
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.
08:27 Doc_Holliwood joined
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.
08:29 holli left
Xliff You can work from master. 08:30
08:30 Doc_Holliwould joined
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
08:32 Doc_Holliwood left
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
08:59 wamba joined
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
09:42 AlexDaniel left
jmerelo OK, the advent calendar repo is now github.com/Raku/advent 09:45
09:49 abraxxa left 09:50 abraxxa1 joined 09:52 abraxxa1 left 09:53 abraxxa joined 10:22 jmerelo left 10:54 mid_home joined 10:55 veesh_ joined 10:57 veesh left 10:58 veesh_ is now known as veesh 11:08 abraxxa left, abraxxa joined 11:15 sena_kun joined 11:30 atroxaper joined
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
11:50 abraxxa left, abraxxa joined 11:59 joule joined 12:04 AlexDaniel joined, AlexDaniel left, AlexDaniel joined, Altai-man_ joined 12:06 sena_kun left 12:10 cpan-raku left 12:11 cpan-raku joined, cpan-raku left, cpan-raku joined
cpan-raku New module released to CPAN! Inline::Perl5 (0.43) by 03NINE 12:15
12:21 wamba left
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
12:41 atroxaper left
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, ^
12:45 colomon joined, abraxxa left 12:46 abraxxa joined
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
12:58 pmurias joined 13:04 abraxxa left, atroxaper joined 13:17 wamba joined 13:30 MasterDuke joined 13:37 pmurias left 13:38 pmurias joined 13:48 veesh_ joined 13:50 chloekek joined, veesh left 13:51 veesh_ is now known as veesh 13:54 wamba left 14:05 sena_kun joined 14:06 Altai-man_ left 14:18 colomon left 14:24 pmurias left
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?
14:27 caterfxo left
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
14:33 Ven_de_Thiel joined 14:43 pmurias joined 15:05 robertle joined
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
16:04 Altai-man_ joined 16:06 sena_kun left
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
16:18 Guest38485 left 16:19 Xliff left
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
16:39 Xliff joined 16:40 hythm joined 16:47 rbt joined 16:58 caterfxo joined 17:01 vrurg left 17:02 vrurg joined 17:05 wildtrees joined 17:06 vrurg left 17:08 wamba joined 17:13 vrurg joined, Ven_de_Thiel left 17:14 Kaiepi left 17:15 Kaiepi joined 17:17 vrurg left 17:18 hythm left 17:24 Xliff left 17:34 atroxaper left 17:38 Xliff joined
Xliff Getting this from OO::Monitors 17:39
Could not find Test::Counter at line 2 in:
Cannot find Test::Counter in zef
17:40 lucasb joined 17:47 Kaiepi left 17:49 Kaiepi joined 18:05 sena_kun joined 18:06 Altai-man_ left 18:20 shinobicl joined
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
18:27 AlexDaniel left
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.
18:27 AlexDaniel joined 18:28 AlexDaniel left, AlexDaniel joined 18:29 ufobat left 18:32 wamba left
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.
18:51 pmurias left 18:56 MasterDuke left 19:05 vrurg joined 19:18 pmurias joined 19:45 wildtrees left 19:46 pmurias left 19:52 pmurias joined 19:53 vrurg left, vrurg joined 19:58 vrurg left 20:04 Altai-man_ joined 20:06 sena_kun left 20:12 Kaiepi left 20:17 Kaiepi joined 20:24 cpan-raku left 20:25 cpan-raku joined, cpan-raku left, cpan-raku joined
El_Che so, we have a release? 20:28
lizmat yes, we haz a release 20:29
El_Che nize
20:40 rindolf left 20:42 joule left
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
21:53 hythm joined
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
21:59 finanalyst joined 22:05 sena_kun joined 22:07 Altai-man_ left 22:10 pmurias left 22:12 AlexDani` joined 22:13 AlexDaniel left
El_Che jnthn: thx 22:20
22:22 wildtrees joined
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
22:28 hythm left 22:31 wamba joined
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
22:37 vrurg joined
sena_kun in a regex, do I write `/<-[. .. z]>/` or `/<-[\. .. z]>/`? inb4: use codes 22:39
m: say 'a' ~~ /<-[. .. z]>/; 22:40
camelia Nil
22:42 vrurg left
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
23:03 stoned75 joined 23:07 stoned75_ joined
AlexDani` El_Che: before or after it was moved? :D 23:16
23:17 AlexDani` is now known as AlexDaniel, AlexDaniel left, AlexDaniel joined
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
23:43 chloekek left 23:44 sena_kun left
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