»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
elcaro bisectable6: say (-> Int $n is copy { $n ÷= 1 })(2) 02:57
bisectable6 elcaro, Bisecting by output (old=2015.12 new=e118d4e) because on both starting points the exit code is 1
elcaro, bisect log: gist.github.com/ed13208404dcaceca7...eee53865dd 02:58
elcaro, (2016-02-18) github.com/rakudo/rakudo/commit/99...4283b48d0a
elcaro ok, guess it's always been like that. a little bit WAT but I understand why 02:59
ahh I was confused... it failes on the assigment... not on the binding to parameter. nothing to see here, carry on. 03:01
jmerelo releasable6: status 06:12
releasable6 jmerelo, Next release in ≈17 days and ≈12 hours. 2 blockers. 140 out of 549 commits logged (⚠ 2 warnings)
jmerelo, Details: gist.github.com/7708e5a05fe996ef55...b8348e4600
El_Che lo 06:24
Xliff \oo 06:36
What's the name of the autogenerated USAGE sub?
El_Che USAGE()? 06:38
Maybe a lesson to us all? github.com/ceejbot/economics-of-pa...r/essay.md 06:39
patrickb o/ 06:51
What's the state of the infrastructure rebuild project?
I'm dearly missing the rakudo releases... :( 06:54
noisegul Good morning 07:16
moritz patrickb: the rakudo releases should be available right now 07:17
aren't they?
patrickb rakudo.org/files/rakudo # That's 500
rakudo.org/dl/rakudo/rakudo-2019.03.1.tar.gz # also 500 07:18
Xliff m: (1, 2, 4).^name.say 07:31
camelia List
cpan-p6 New module released to CPAN! Gnome::Gtk3 (0.13.2) by 03MARTIMM 07:36
New module released to CPAN! Gnome::Gdk3 (0.13.3) by 03MARTIMM
New module released to CPAN! Gnome::N (0.13.3) by 03MARTIMM
cpan-p6 New module released to CPAN! Gnome::GObject (0.13.4) by 03MARTIMM 07:36
New module released to CPAN! Gnome::Glib (0.13.3) by 03MARTIMM
lizmat weekly: rage.powered.ninja/2019/06/02/obie...ticam.html 08:18
notable6 lizmat, Noted!
El_Che hi liz 08:19
lizmat El_Che o/ 08:20
Xliff \i lizmat 08:21
\o even... man! My typing is getting worse. ;(
lizmat O kniw what you mean
Xliff lizmat++
lizmat: My perl6 line counts by project for the past almost-year. 08:23
drive.google.com/file/d/12j1Dy6zIc...sp=sharing
Year is up, June 15
lizmat Xliff: not sure what to make of that... could you elaborate (was I supposed to know about your project?) 08:25
Xliff No. It's just the amount of work I've put into my perl6 projects.
lizmat ah.. cool... quite a bit :-)
Xliff I am stuck on an aspect of Pango that I can't work out. That's one blocker. 08:26
lizmat :-( is that something the Perl 6 community could help with?
Xliff And the current installation methods used by zef are another. p6-GtkPlus can take over an hour on some machines. That's a long time to wait for zef.
^^ Would prefer help with this.
lizmat have you upgraded zef ?
Xliff Ues.
Yes, even.
The big issue is that it's a LARGE compile, and I want to see if there are ways to speed it up. 08:27
Also...want regular output so that users installing it know that something is going on.
I have to rewrite the build instructions. I had to go to a custom set of scripts to compile and run everything. 08:28
Would like to release something before winter.
lizmat perhaps installing with RAKUDO_MODULE_DEBUG=1 could be helpful... 08:29
OTH, that might be too much
OTH, I've often wanted to have something like that less debuggy, more informational 08:30
Xliff Yes. I've tried that. It's a good idea to do that once and let it spit out to a log file for later observation.
lizmat: Well, to build p6-GtkPlus is simple enough. Clone it, cd to the directory and then run ./build.sh 08:32
Would love it if you could build it and let me know the total time it takes.
lizmat Xliff: should it work on a Mac out of the box?
Xliff (Yes, also keeping regular stats of compile times vs perl6 version for those folks who like numbers)
lizmat: If GTK is there, then yes.
GLib and GTK 08:33
lizmat how can I check if GLib and GTK are there?
or will it tell me
Xliff I am not sure with Mac
pkgutil --pkgs? 08:34
lizmat tried "brew install GLib" 08:37
dies on trying to install python 3.7 08:38
Xliff :(
lizmat anyways... P6W time now...
Xliff OK. Maybe I will grab a VM that has X11 and see if I can set it up there.
Maybe another small AWS install so folks can test it. 08:39
At any rate... nn! o7
dakkar p6: use experimental :macros;macro x { quasi { LEAVE { say "bye" } } }; sub y { x(); say "here" }; y; 08:52
camelia here
dakkar are macros supposed to be able to install phasers in the calling block? 08:53
lizmat I think masak is still figuring that one out 08:56
fwiw, being able to install phasers with a -use- command, is definitely on many people's wish list :-) 08:57
dakkar so I'm going to count it as "not implemented yet", instead of "don't do that" ☺ 09:03
lizmat dakkar: that would be a safe assumption :-) 09:04
and: patches welcome :-)
dakkar patches would require more time&effort than I feel I can give at the moment, but it's in my queue 09:05
lizmat ++dakkar
elcaro m: my $p = '+'; say &infix:«$p»(1, 2); 09:20
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in code at <tmp> line 1
5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:…
elcaro how can i refer to functions dynamically at runtime
ie. how can i make the above work
without makeing $p a constant :D 09:22
dakkar p6: my $f='&infix:<+>'; say ::($f).(1,2); # ☜ elcaro 09:29
camelia 3
tobs m: my $s:<42> = "hello"; my $x = 42; say $s:«$x» 09:42
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in code at <tmp> line 1
5===SORRY!5=== Error while compiling <tmp>
Variable '$s:<>' is …
tobs but that seems to work when done on multiple lines in the REPL… 09:44
and if it works here, I don't know why it shouldn't work with &infix
dakkar uh? what does «my $s:<42>» mean? 09:50
timotimo that's just a silly variable name 09:51
yoleaux 2 Jun 2019 01:41Z <MasterDuke> timotimo: what i have now, but it doesn't seem to make a huge difference in profiles. gist.github.com/MasterDuke17/2dac1...b58151f8b0
tobs dakkar: docs.perl6.org/syntax/identifiers#...dentifiers 09:52
m: say &infix:('+') 09:54
camelia 5===SORRY!5=== Error while compiling <tmp>
You can't adverb &infix
at <tmp>:1
------> 3say &infix:('+')7⏏5<EOL>
tobs seems like rakudo and the docs are out of sync there. 09:55
dakkar ISTR there's some special cases for operator names 09:55
lizmat tobs: where's the doc saying that's valid syntax ? 09:56
tobs lizmat: Ctr+f for "infix:('+')" 09:57
tobs on the extended identifiers page 09:57
m: my $foo:bar<2> = 5; say $foo:bar(1+1) 09:58
camelia 5
tobs hmm so this does work
timotimo m: my $foo:bar<3> = 5; say $foo:bar(1+1)
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$foo:bar<2>' is not declared. Did you mean '$foo:bar<3>'?
at <tmp>:1
------> 3my $foo:bar<3> = 5; say 7⏏5$foo:bar(1+1)
timotimo mhm
lizmat seems like an issue (either "doc" or "rakudo") seems to be in order 09:59
tobs I'm on it, unless someone else already is 10:02
tobs bisectable6: say &infix:('+') 10:03
bisectable6 tobs, Bisecting by output (old=2015.12 new=e118d4e) because on both starting points the exit code is 1
tobs, bisect log: gist.github.com/730c06b623c9893d32...7a7dbfaea9
tobs, (2018-02-07) github.com/rakudo/rakudo/commit/de...b5665360d8
tobs R#2948 10:11
synopsebot R#2948 [open]: github.com/rakudo/rakudo/issues/2948 Extended identifiers without keys raise "You can't adverb" error
patrickb .tell sergot Have you seen github.com/sergot/datetime-parse/pull/13 12:03
yoleaux patrickb: I'll pass your message to sergot.
lizmat and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2019/06/03/...e-a-given/ 15:20
jmerelo squashable6: status 2019-06-01 16:24
squashable6 jmerelo, Log and stats: gist.github.com/e88e214452241202c3...62d562e03c
jmerelo And the winner is... 16:57
(and I mean the winner of a lush plush Camelia toy due to work undertaken during the June Squashaton)
... wait for it ...
... (Actually lizmat is the moral winner, but shipping rates of plush toys all around the earth to the person sending it are prohibitive, so she's not eligible) ... 16:58
... uploaded as usual to the squashathon data repository: github.com/JJ/p6-app-squashathons/...e-2019.csv ...
... but the person is ...
.tell vrurg you're the winner of the plush camelia for your contributions to the squashaton! Congratulations! Contact lizmat for shipping address. 16:59
yoleaux jmerelo: I'll pass your message to vrurg.
vrurg jmerelo: wow... ;) 17:00
yoleaux 16:59Z <jmerelo> vrurg: you're the winner of the plush camelia for your contributions to the squashaton! Congratulations! Contact lizmat for shipping address.
vrurg Thanks!
jmerelo vrurg++
vrurg Hope liz comes to Pitsburg this year. We'll meet there in person, I think. 17:01
El_Che lizmat? She's a legend :) 17:01
vrurg El_Che: but not a myth... ;) 17:03
El_Che vrurg: she's what myths are made of, on the otherh and
hand
vrurg El_Che: no doubt. 17:05
vrurg recalls Manowar's "Riding horses made of steel" line for no reason...
El_Che manowar, that's a while 17:06
vrurg That was one of my first HMR groups I managed to get hold of back in late 80s USSR reality... ;) 17:11
El_Che hmr? 17:14
home made recording?
jmerelo vrurg: did you get hold of one of those cardboard-pressed records that apparently were used in the USSR in the early 80s? 17:15
vrurg It was a cassete. 3-5-many re-recordings, horrible sound quality. And a bit of real stuff in the trashy atmosphere of SU music. ;) 17:16
Ah, no, sorry. Manowar was presented to my by a Bulgaridan frined and his copy was ok. But Accept and Iron Maiden were... special, to say. 17:17
El_Che vrurg: I remeber reading somewhere that there was a lively punk scene in the ussr 17:18
(crappy connection == extra typos)
vrurg El_Che: there was many underground things. I didn't know they existed until around 88-89. 17:20
I would put the whole thing this way: I'm not the kind of person who misses his childhood. 17:21
El_Che jmerelo: does your university has a good digital humanities project/policy/group? 17:37
jmerelo El_Che: not as a single thing. There's some people doing interesting stuff, and a yearly conference. 17:51
El_Che I had a pretty negative view on how it's done here, and was pretty surprised that the university president (rector) pretty much said the same thing today at a talk i attended 17:54
(I wondered how it's done elsewhere)
jmerelo El_Che: Well, there's no bridge or collaboration between actual computer scientists and humanities people, far as I know 17:55
El_Che that's sad
jmerelo El_Che: it's mostly journalists or people from fine arts who do a bit of Python
El_Che here there is a joint master of Digital Humanities between CompSci and Lit/Linguistics but it's a joke 17:56
im -not so humble- o :) 17:57
train arrived, bbl 17:58
jmerelo have a nice trip :-) 18:01
sena_kun a very lively weekly this time, it was a pleasure to read it. \o/ 18:23
Geth problem-solving: AlexDaniel self-assigned Editor modes for Perl 6 github.com/perl6/problem-solving/issues/37
297baac3cd | (Aleks-Daniel Jakimenko-Aleksejev)++ | README.md

It seems that in some cases it is hard to find an appropriate label, especially if an SME for a specific field was not found yet. Tickets with `fallback` label are supposed to be relabeled later once a new label is defined.
18:42
¦ problem-solving: AlexDaniel self-assigned Ecosystem: should we strive for integration with MetaCPAN github.com/perl6/problem-solving/issues/26 18:55
lizmat vrurg: alas, will not make it to the States for at least 1.5 years 19:28
vrurg lizmat: Nah... I hoped to have another round of beer this year again. :( 19:29
ugexe who knows who might get impeached before 1.5 years 19:38
Xliff lizmat: I know how you feel. :( 19:39
lizmat ugexe: one can hope 19:40
vrurg ugexe: I'm afraid impeachment wouldn't affect what they already have in their databases. 19:55
ugexe you are not safe from our databases in europe 19:57
ugexe it doesn't much matter if you physically come here or not 19:58
tadzik impeachment aside, hostility towards visitors was there long before anyone in particular became president 20:03
Xliff Which disappoints me greatly. We are a nation made of visitors.
Xliff What's the best way to get a Seq into an Array if the Seq has already been assigned? 20:04
lizmat what do you mean with "assigned" ? 20:05
my $s := Seq
or my @a = Seq
jdv79 just updated and got "No active backends found. Please, report this bug!" 20:05
Xliff m: my %h; %h<key> = (1, 2, 3); %h<key>.^name.say
camelia List
Xliff m: my %h; %h<key> = 1, 2, 3; %h<key>.^name.say 20:06
camelia List
Xliff I'm making assignment like that and sometimes what I expect to be List is Seq
Or more like....
m: my %h; %h = (key => (1, 2, 3__; %h<key>.^name.say
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3my %h; %h = (key => (1, 2, 37⏏5__; %h<key>.^name.say
expecting any of:
whitespace
20:07
Xliff m: my %h; %h = (key => (1, 2, 3)); %h<key>.^name.say
camelia List
ugexe i'd wager the U.S. is more likely to let someone in than Canada
Xliff m: my %h; %h = (key => 128 xx 2); %h<key>.^name.say 20:09
camelia Seq
Xliff THERE it is.
jdv79 nopaste.xyz/?d5bf8791e1bf1a41#7S+x...MmOUIATqk= 20:10
jdv79 anyone else see that? 20:10
lizmat vrurg: ^^ 20:10
Xliff m: my %h; %h = (key => 128 xx 2); %h<key> = @( %h<key> ); %h<key>.^name.say 20:11
camelia List
Xliff m: my %h; %h = (key => 128 xx 2); %h<key> = @( %h<key> ); %h<key>.^name.say 20:19
camelia List
Xliff m: my %h; %h = (key => 128 xx 2); %h<key>.^name.say
camelia Seq
Xliff m: my %h; %h = (key => 128 xx 2); %h<key>.^name.say; %h<key>.elems.say 20:20
camelia Seq
2
timotimo m: my %h; @%h = (key => 128 xx 2); %h<key>.^name.say; %h<key>.elems.say
camelia Any
1
timotimo haha, no
m: my %h; @%h<key> = (128 xx 2); %h<key>.^name.say; %h<key>.elems.say
camelia Type List does not support associative indexing.
in block <unit> at <tmp> line 1
timotimo m: my %h; @(%h<key>) = (128 xx 2); %h<key>.^name.say; %h<key>.elems.say
camelia Cannot modify an immutable 'Any' type object
in block <unit> at <tmp> line 1
timotimo mhh 20:21
Xliff Yeah. That. :(
I think I've found a workaround though, timotimo.
timotimo m: my %h; %h<key> = @(128 xx 2); %h<key>.^name.say; %h<key>.elems.say 20:22
camelia List
2
timotimo that's the most obvious way
antoniogamiz let's say I have this rule: rule sth { "str" <anotherregex> } 20:35
is there a way to avoid the "str" part gets captured?
Xliff timotimo: Yeah. I wasn't doing that because I usually assigned directly to an array. 20:36
Then I added another interface and it stopped working, so I had to find a work-around for that situation.
antoniogamiz ah with $/<anotherregex>.Str I get what I want, nice :D 20:39
skids m: my %h; @(%h<key> = []) = (128 xx 2); %h.perl.say; %h<key>.^name.say; %h<key>.elems.say 20:44
camelia {:key($[128, 128])}
Array
2
ni291187 hi i'm New ! 21:12
antoniogamiz ni291187: hi :D 21:12
welcome!
ni291187 can I speck in Italian? 21:13
ni291187 ciao c'è nessuno? 21:14
Juerd You can try but your chances of a useful answer are higher with English :) 21:15
antoniogamiz eeemm you can but I dont anybody will understand you
ni291187 I stai try the mirc chat! I sue it 20 years ago! 21:16
because in the 2019 there is this chat Type? 21:18
antoniogamiz it's comfortable and light weight
ni291187 confortabile ? 21:19
vrurg .telex jdv79 Configure.pl needs explicit --gen-nqp 21:29
.tell jdv79 Configure.pl needs explicit --gen-nqp
ugexe vrurg: Whats wrong with e.g. `--gen-moar / --gen-moar=HEAD` *generating* an appropriate moarvm? It seems like if I wanted to choose a specific local moarvm I would use `--with-moar=...`, and if I wanted it to use whatever it can find I would just pass `--backends=moarvm` 21:45
patrickb vrurg, ugexe: The moarvm appveyor builds currently fail with: No backends specified on the command line. Please use --backends or --gen-moar 21:50
ugexe github.com/rakudo/rakudo/blob/3ff0...ml#L31-L33 21:52
appveyor is sending all that 21:53
vrurg ugexe: there were uncertainties in the older version of Configire. So, I tried following the old behavior. Not always successfully.
Working on this now. Just need to settle down a few things first. 21:54
ugexe i mean what am i missing? is there some scenario im not thinking of where this doesn't work? re: github.com/rakudo/rakudo/issues/29...-498435414
patrickb Latest rakudo travis failure looks like being caused by the build not pulling the latest nqp-configure. 21:56
ugexe you can bump nqp revision along with the submodule 21:57
vrurg patrickb: did you merge you nq-configure PR? 22:02
patrickb I did.
I'd suspect it's the old NQP. 22:03
I never did a bump... I'll see what I can do.
ugexe cd nqp|moarvm && git describe 22:04
ugexe the submodule i just change into its directory, git pull, return to original dir, git add its-directory 22:05
there is probably some git command for it i haven't bothered to learn
patrickb OK. I think I got it right now. 22:18
vrurg is testing. 22:19
So, if I get it right, --gen-moar would implicitly suggest --gen-nqp too. Both options will rebuild upon old versions detected. 22:20
Xliff Perl6 equivalent of lcfirst? ;) 22:21
vrurg patrickb: builds fine.
Xliff m: "HELLO".substr-rw(0,1).lc.say 22:23
camelia h
Xliff Damn. Was hoping to do it in a nice chain.
timotimo substr-rw depends on an assignment 22:25
m: say ("HELLO".substr-rw(0,1).=lc)
camelia Cannot modify an immutable Str (HELLO)
in block <unit> at <tmp> line 1
timotimo mhhh
Xliff Yeah. I know. I got it though. 22:26
m: $a = 'HELLO'; $a.substr-rw(0,1).lc ~ $a.substr(1)
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3<BOL>7⏏5$a = 'HELLO'; $a.substr-rw(0,1).lc ~ $a.
Xliff m: $a = 'HELLO'; say $a.substr-rw(0,1).lc ~ $a.substr(1)
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3<BOL>7⏏5$a = 'HELLO'; say $a.substr-rw(0,1).lc ~
Xliff m: my $a = 'HELLO'; say $a.substr-rw(0,1).lc ~ $a.substr(1)
camelia hELLO
timotimo there's no need for the -rw there, though 22:27
m: my $a = "HELLO"; say do given $a { .substr(0,1).lc ~ .substr(1) }
camelia hELLO
timotimo m: my $a = "HELLO"; say .substr(0,1).lc ~ .substr(1) given $a
camelia hELLO
timotimo m: my $a = "HELLO"; say "$_.substr(0,1).lc()$_.substr(1)" given $a 22:28
camelia hELLO
timotimo no clue what you're going for, exactly :)
Xliff m: my $a = "%s, %d, %f"; $a."&sprint"('Hi', 1, 2e-1).say 22:53
camelia No such method '&sprint' for invocant of type 'Str'. Did you mean any of these?
print
sprintf

in block <unit> at <tmp> line 1
Xliff m: my $a = "%s, %d, %f"; $a."&sprintf"('Hi', 1, 2e-1).say
camelia No such method '&sprintf' for invocant of type 'Str'. Did you mean any of these?
printf
sprintf

in block <unit> at <tmp> line 1
Xliff m: my $a = "%s, %d, %f"; $a."&printf"('Hi', 1, 2e-1).say
camelia No such method '&printf' for invocant of type 'Str'. Did you mean any of these?
print
printf
sprintf

in block <unit> at <tmp> line 1
Xliff m: my $a = "%s, %d, %f"; $a."sprintf"('Hi', 1, 2e-1).say 22:54
camelia Hi, 1, 0.200000
Xliff m: my $a = "%s, %d, %f"; $a."sprintf"('Hi', 1, 2e-1).say
camelia Hi, 1, 0.200000
Xliff m: my $a = "%s, %d, %f"; $a.sprintf('Hi', 1, 2e-1).say
camelia Hi, 1, 0.200000
Xliff m: "REPLACE_CHECKING_INVOCATION".subst('_', '-').say 23:55
camelia REPLACE-CHECKING_INVOCATION
Xliff m: "REPLACE_CHECKING_INVOCATION".subst('_', '-', :g).say
camelia REPLACE-CHECKING-INVOCATION