»ö« 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.
Geth doc: cfa self-assigned Inconsistent index escaping github.com/perl6/doc/issues/2535
005ad89e57 | cfa++ | doc/Language/subscripts.pod6
00:06
buggable New CPAN upload: Red-0.0.1.tar.gz by FCO cpan.metacpan.org/authors/id/F/FC/...0.1.tar.gz 00:45
SmokeMachine lizmat: ^^ :) 00:46
synopsebot Link: doc.perl6.org/language/subscripts
Geth doc: 3d513fbcda | cfa++ | Makefile
typo
01:41
SmokeMachine what should I do on mi6's Changes file? 02:27
buggable New CPAN upload: Red-0.0.2.tar.gz by FCO modules.perl6.org/dist/Red:cpan:FCO 02:45
Geth ecosystem: a975ed5a3e | (Fernando Correa de Oliveira)++ (committed using GitHub Web editor) | META.list
Removing Red from the ecosystem

It's now on CPAN
02:56
Guest44125 hi I am new to perl6 03:35
just wondering is there any plan to get perl6 ready for data science
Guest44125 things like dealing with tabular data in data frame formats 03:36
Guest87230 I am new to perl6 03:39
is to possible to use perl6 for dealing with tabular data 03:40
like dataframes in python
hi 03:45
lookatme_q Guest46388, hi 03:55
yes you can
hythm_ p6: my @a = <a b c d e f g h>; my @b = @a.rotor(2); say @b[*]:k # 04:19
camelia (0 1 2 3)
hythm_ is there a concise way to get the keys of @b as [(0 0) (0 1) (1 0) (1 1) (2 0)]
qzix p6: say now 04:36
camelia Instant:1546576643.108247
qzix How to get only the value 1546576643.108247 in output? 04:37
SmokeMachine p6: say now.Num 04:39
camelia 1546576833.210346
SmokeMachine qzix: ^^ 04:40
qzix Thanks :)
qzix Just my 2c the above behavior seems a little inconsistent to me in this context. 05:01
p6: my $x = now; say $x.WHAT; say $x; say $x.Num; my $y = $x - now; say $y.WHAT; say $y;
camelia (Instant)
Instant:1546578114.378995
1546578114.3789954
(Duration)
-0.0028125
pony m: say (now - now).Num 05:41
camelia -0.001327473350256231
qzix Agree you can get the value of Duration with Num but as oulined above you don’t have to yet with Instant we do. Couple other curiouse things to me which is around nowing the actual granularity of these values I think narrow rather than Num me be more appropriate but doing that also seems inconsistent when comparing the Instant values with Durations results. 05:44
AlexDaniel squashable6: next 05:50
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in ≈4 hours (2019-01-05 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
pony m: 1, 1, { $^a + $^b } ... * > 100 07:19
camelia Potential difficulties:
Useless use of ... in sink context
at <tmp>:1
------> 031, 1, { $^a + $^b } ...7⏏5 * > 100
pony m: say (1, 1, { $^a + $^b } ... * > 100)
camelia (1 1 2 3 5 8 13 21 34 55 89 144)
pony m: say (1, 1, { $^a + $^b } ...^ * > 100) 07:20
camelia (1 1 2 3 5 8 13 21 34 55 89)
daxim does a grammar ever fill in the `list` attribute of the return value of nested `Match`es? 08:24
moritz yes 08:30
m: say 'abc' ~~ /<alpha>+/; say $<alpha>.list.elems 08:31
camelia 「abc」
alpha => 「a」
alpha => 「b」
alpha => 「c」
3
moritz m: 'abc' ~~ /(.).(.)/; say $/.list>>.Str 08:32
camelia (a c)
daxim no, I mean a `grammar Foo {}` grammar
moritz these are the two cases
daxim: a grammar and a regex match produce the same match object structure
moritz m: say (grammar { token TOP { <alpha>+ } }).parse('abc')<alpha>.list.elems 08:33
camelia 3
daxim m: grammar Foo { token TOP { <S> } token S { <alpha>+ } }.parse('abc').perl.say 08:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> 3grammar Foo { token TOP { <S> }7⏏5 token S { <alpha>+ } }.parse('abc').per
expecting any of:
infix
moritz m: say (grammar { token TOP { (.).(.) } }).parse('abc').list.elems 08:34
camelia 2
moritz these are two cases where .list is interesting
daxim can we look at the real output? 08:35
I think the list method call coerces something
m: grammar Foo { token TOP { <alpha>+ }; }.parse('a').perl.say 08:36
camelia Match.new(orig => "a", pos => 1, hash => Map.new((:alpha([Match.new(orig => "a", pos => 1, hash => Map.new(()), list => (), from => 0, made => Any)]))), made => Any, list => (), from => 0)
moritz sure, you can say() the match objects, I just recommend doing it at a real terminal
daxim empty list
daxim ok, once again, with the grammar Foo {} construct, is the list attr ever filled in? 08:36
moritz yes, becaues TOP itself wasn't quantified
alpha is quantified, so $/<alpha>.list makes sense 08:37
moritz the other thing that fills Match.list is positional captures 08:37
m: say (grammar { token TOP { (.).(.) } }).parse('abc').perl 08:38
camelia Match.new(list => (Match.new(from => 0, pos => 1, list => (), orig => "abc", hash => Map.new(()), made => Any), Match.new(hash => Map.new(()), made => Any, orig => "abc", list => (), pos => 3, from => 2)), pos => 3, from => 0, hash => Map.new(("" => […
moritz m: say (grammar { token TOP { (.).(.) } }).parse('abc').list.elems
camelia 2
daxim I see, thanks
moritz www.apress.com/us/book/9781484232279 chapter 4 (iirc) for more :-)
daxim buy chapter $29.95, buy book $24.99 08:39
what a steal :D 08:40
moritz Apress belongs to Springer, which is focused on scientific publishing; makes more sense to buy separate chapters when a book is > 80 USD 08:42
amazon might have a cheaper ebook, but with DRM 08:43
XieST college students may downloads form this link free link.springer.com/content/pdf/10.1...3228-6.pdf 08:44
masak if we're generating bytecode from a language with macros, do we even need to put the macro bodies in the generated bytecode? 09:53
I mean, it's not like we're going to call those macros at runtime 09:54
(S06 has some wording about `moo()` being a "compile-time call" and `&moo()` being a "runtime call" to the macro. but I don't think that holds up to closer scrutiny. I can elaborate further if someone wants.) 09:55
(or, let's put it like this. my current stance "I don't think that works" really means "I'm unable to imagine how that would work". it's perhaps more a limiation in me than anything else.) :) 09:59
anyway, given that we're *not* calling macros at runtime, it seems to me we should at most be installing a callable stub which complains when called. 10:00
squashable6 🍕 JJ++ wrote a comment on “Colon-pair details in REPL look buggy”: github.com/perl6/roast/issues/507#...-451401552 10:00
🍕🍕🍕 First contribution by JJ++! ♥
pmurias masak: if you want to compile stuff at runtime you need the macros
masak: if not I don't see why would you need them
pmurias masak: re synopsis you could hypothetically go into compile time and compile and run the result of the macro, right? 10:08
squashable6 🍕 lizmat++ wrote a comment on “Colon-pair details in REPL look buggy”: github.com/perl6/roast/issues/507#...-451403830 10:10
🍕🍕🍕 First contribution by lizmat++! ♥
lizmat ah, we've started! :-)
El_Che hey lizmat 10:29
how is woolfie? Long time no see
lizmat she looks pretty good to me, sitting on the other side of the desk :-) 10:35
El_Che waves to woolfy 10:35
squashable6 🍕 JJ++ transferred issue “Colon-pair details in REPL look buggy”: github.com/perl6/roast/issues/507
jnthn masak: Assuming you can export macros, and we have pre-compilation, that's one reason you'd need to. Another less common but possible case would be an EVAL with a macro in lexical scope. 10:41
El_Che jnthn: best wishes, looking fwd for your rakudo plans (as you blogged) 10:45
jnthn El_Che: Thanks :) Well, been getting started with some work on the static optimizer, which will give EA more targets :) 10:47
El_Che great! 10:48
El_Che Also the using Rakudo for big projects was interesting 10:49
lizmat El_Che: looks like woolfy was not allowed to say anything :-(
El_Che I thought p6bannerbot was supposed to distribute voices? 10:51
timotimo they are
something must be off
timotimo hack seems to be in good health, but i can't find a process for the bannerbot on there 10:53
timotimo is the spam attack still on-going? it has been a while since it started 10:55
AlexDaniel timotimo: we can try setting the flag off 11:07
timotimo thanks 11:13
AlexDaniel lizmat: if you say something too fast after joining, the bot thinks that you're a spammer and doesn't voice you 11:14
lizmat even if you wait after that ? 11:15
AlexDaniel lizmat: yes. And yes, in some cases it doesn't voice legitimate users… but that's better than seeing all these spam messages…
lizmat true 11:16
AlexDaniel and I also was talking to myself a few times because of that :(
but now that +m is gone, let's see how it goes
lizmat yup 11:17
lizmat wonders how bernsteinbear.com/blog/bytecode-interpreters/ would look in Perl 6 :-) 11:19
squashable6 🍕🍕🍕 First contribution by jnthn++! ♥ 11:42
AlexDaniel seems to be ok, hmmm 13:44
cfa morning 14:48
moritz hi 15:04
cfa hi moritz 15:05
happy new year 15:06
moritz same to you :-) 15:07
squashable6 🍕 lizmat++ opened issue “Cannot bind to an attribute from a role”: github.com/rakudo/rakudo/issues/2581 15:14
cfa bisectable6: :a1:b2:c3 15:27
bisectable6 cfa, On both starting points (old=2015.12 new=f2ed3db) the exit code is 0 and the output is identical as well
cfa, Output on both points: «»
cfa bisectable6: my @a = :a1:b2:c3; say @a.elems
bisectable6 cfa, On both starting points (old=2015.12 new=f2ed3db) the exit code is 0 and the output is identical as well
cfa, Output on both points: «1␤»
AlexDaniel yeah
cfa cool
i gather you know the ticket this refers to
AlexDaniel don't remember it, I think it's on RT
old stuff 15:28
cfa AlexDaniel: github.com/perl6/doc/issues/2536 15:31
AlexDaniel m: my @a = :a1:b2:c3; say @a 15:38
camelia [a1 => True]
AlexDaniel looked through some tickets, can't find it… but please try :)
cfa will do in a bit 15:39
AlexDaniel cfa: there's RT#131089 which is related 15:43
synopsebot RT#131089 [open]: rt.perl.org/Ticket/Display.html?id=131089 Different parsing of combined colonpairs
AlexDaniel which links to RT#125353 and RT#124553 15:44
synopsebot RT#125353 [open]: rt.perl.org/Ticket/Display.html?id=125353 [BUG] %(:a:b) ignores all elements after the first one
RT#124553 [new]: rt.perl.org/Ticket/Display.html?id=124553 Roast rakudo skip/todo test:./S03-operators/adverbial-modifiers.t line:170 reason: 'Multi colonpair syntax not yet understood'
AlexDaniel squashable6: status 16:16
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈19 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/4ebd4910d110471a1b...12b4a2ccbd
🍕🍕🍕 First contribution by AlexDaniel++! ♥ 16:31
🍕 AlexDaniel++ closed issue “New SEGV issue in Moar”: github.com/rakudo/rakudo/issues/2486
squashable6 🍕 AlexDaniel++ labeled issue “JIT ERROR: Negative offset for dynamic label 8” (exotictest): github.com/rakudo/rakudo/issues/2340 16:58
🍕 AlexDaniel++ wrote a comment on “JIT ERROR: Negative offset for dynamic label 8”: github.com/rakudo/rakudo/issues/23...-451502989 16:59
squashable6 🍕 AlexDaniel++ wrote a comment on “Inconsistent error for `chr` with large codepoints”: github.com/rakudo/rakudo/issues/22...-451507078 17:14
masak jnthn: ah! precompilation! didn't think of that! (and the EVAL use case is quite realistic as well) 18:42
buggable New CPAN upload: Tomtit-0.0.17.tar.gz by MELEZHIK modules.perl6.org/dist/Tomtit:cpan:MELEZHIK 19:45
masak curious, slightly OT question: are people still using cpanminus? (I just tried to install it and failed.) 20:28
moritz yes 20:30
I use perlbrew, and 'perlbrew install-cpanm'
masak excellent. thank you. 20:35
cfa i do too; i just install using curl, typically 20:50
(also using perlbrew---not sure i was even aware of that subcommand)
(thanks moritz!)
Geth doc: 16d418da26 | cfa++ | 2 files
Fix a couple of /Language links (replace with /language).
21:00
El_Che perlminus == yes 21:11
Geth doc: dbc2dac837 | cfa++ | doc/Language/experimental.pod6
Fix a few malformed `pack` and `unpack` links from experimental.
21:17
synopsebot Link: doc.perl6.org/language/experimental
squashable6 🍕 robertlemmen++ wrote a comment on “"Cannot invoke this obje…”: github.com/rakudo/rakudo/issues/25...-451581987 22:04
🍕🍕🍕 First contribution by robertlemmen++! ♥
vrurg What might be causing "Internal error: inconsistent bind result" on a construct like $obj.&routine( $foo, |args )? 23:38
moritz a bug in rakudo 23:47
jnthn When signature binding fails, the slow-path binder is used to figure out what went wrong and report a good error. That error occurs when instead it is perfectly happy with the binding, so fails to produce the error. This should never happen (and I've not seen it do so for a long time, so congrats or something...) 23:51
vrurg Aha, I guessed it's a bug (the text suggests) but can't strip it down to simple code. 23:52
vrurg Perhaps would have to link to github in my report. Again. 23:53