»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 geekosaur left 00:02 geekosaur joined 00:04 ufobat left
samcv yay I finally got travis to spit out coverage stats travis-ci.org/samcv/MoarVM/builds/...6397#L1051 00:05
timotimo ttttttttravis 00:07
nan% covered <3 00:08
samcv heh
timotimo in green
because why not
i'm making progress with the moarvm MVMObject pretty-printer
samcv well it has no functions in the file
timotimo even though i didn't expect it at all
MVMObject * (IterationBuffer) of repr VMArray = {...}, data=0x7ffff4d6dc60, value=..., kind=8) 00:14
i have no idea why the data= is there, or what the value= is supposed to be ... and i also don't really know why kind= is in there? 00:15
oh 00:16
that's the rest of the function arguments
(gdb) print root[0] 00:17
$2 = 0x7ffff7dbed40
MVMObject (IterationBuffer) = {0x7ffff7d23060
MVMObject * (Scalar), 0x7ffff7d23060
MVMObject * (Scalar)}
that's not even bad!
the hex values are debug prints 00:18
but having "Scalar" for every entry is a bit rubbish :) :)
00:19 Guest36204 is now known as Ven`
timotimo $1 = MVMObject * (array[int]) = {476821, 476822, 476823, 476824, 476825, 476826, 476827, 476828, 476829, 476830, 00:20
yay~
oh ... pretty printing MVMHash from inside python code using gdb will be ... fun :( 00:22
but first: P6opaque
samcv and i figured out how to only include certain files now 00:25
can supply it a list of files. so using find ./src -name '*.c' | grep -v unicode.h 00:26
err .c. cause that has our whole unicode database in it. so not gonna do that one for now
timotimo yeah, that's probably good :) 00:31
samcv thanks travis
when i tried to print out coverage stats for all src .c files except unicode db file 00:32
/Users/travis/.travis/job_stages: eval: line 54: syntax error: unexpected end of file 00:34
it's only 80,000 lines. they could have at least had some kind of normal error message or something if i can't print out 80,000 lines 00:36
well i'm very close to getting it to put each file coverage in a seperate html file. so then after i do that, will figure out how way to upload it somewhere 00:39
timotimo \o/ 00:42
hum. how do i teach gdb that "if this value is to be stringified, it has its STable living at this other address"? 00:43
samcv no clue 00:45
timotimo maximum shrug ...
like, i'd have to introspect the flattened stables to figure out what byte size a given attribute has, and its signedness 00:46
(if it's an int)
samcv F A N C Y 00:49
cry.nu/coverage/
check it out timotimo 00:50
timotimo that's rad!
samcv \o/
timotimo everything is red :o 00:51
oh
just bad luck selecting a .c file
cry.nu/coverage/coverage/home/sama...ain.c.html ?? 00:52
samcv that's in moar binary not libmoar.so 00:53
the ones that are missing were either added in the last day or are files that i need to run the command on moar binary not libmoar.so
there are only a few of them
maybe can come up with something with tables 00:54
so can have the index of filenames and also show the overall file stats
without having to process tons of files into new formats and do a ton of work 00:55
00:55 Actualeyes joined
samcv timotimo, uploading new files now 00:57
this is really awesome tho :-) very happy
raschipi timotimo: I got a 404 from your last link 00:58
samcv not anymore raschipi
i just generated the ones that are in the moar binary and not in libmoar.so (which has 95% of the files in it)
timotimo raschipi: that's why i "??"'d ti
raschipi Yep, thanks. Never seen a snappier bugfix before. 00:59
samcv if there's any missing now, let me know and i'll try and figure out how to make it generate for that
00:59 cyphase joined
samcv and these coverage are for the nqp test suite fyi 00:59
timotimo pretty cool.
self.val.hello = "bar" 01:01
AttributeError: 'gdb.Value' object has no attribute 'hello'
aren't i supposed to be able to put any new field on a python object that i want?
geekosaur no 01:03
at least, not like that
samcv also cry.nu/coverage/report-libmoar.html 01:04
this is an overview
01:04 Ven` left
timotimo that looks really good 01:04
per-function is a lot nicer than just per-file
samcv yeah
and here is cry.nu/coverage/report-moar.html for moar. which only has main.c on it. otherwise is blank 01:05
timotimo yeah, probably not interesting at all
samcv will have to find some way to get those combined somehow
timotimo unless we want to cover moar's option parser
nah, forget it
samcv main.c has pretty low coverage
hahah 01:06
timotimo main.c has pretty low impact
samcv yeah
well we could cover it and just write some moar tests or something idk
to try the different options and such.
01:14 lichtkind left 01:23 Cabanossi left
u-ou my $re = rx/\S+/; $_ ~~ $re and say $/ for lines; 01:23
m: my $re = rx/\S+/; $_ ~~ $re and say $/ for lines;
camelia Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Ni…
u-ou why does $/ end up as Nil there?
01:25 Cabanossi joined
timotimo the and might put the postfix for loop after the and 01:32
01:32 beginner_p6 joined
beginner_p6 hello 01:32
timotimo i.e. it'll do the regex match, and then say $/ for each line
beginner_p6 is there a way to suspend and resume tasks in perl6 01:33
timotimo m: my $re = rx/\S+/; ($_ ~~ $re and say $/) for lines
camelia Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Ni…
timotimo m: my $re = rx/\S+/; ($_ ~~ $re).say for lines
camelia 「»Wann」
「»Um」
「»Am」
「»Ich」
「»Ich」
Nil
「»Ich」
「»Und」
「»Und」
Nil
「»Hei,」
「Und」
Nil
Nil
「»Und」
「Um」
「»Ei,」
「»Muß」
Nil
「»Tand,」
「Ist」
Nil…
01:42 noganex left 01:45 ilbot3 left 01:47 raschipi left
u-ou m: my $re = rx/\S+/; for lines() { if $_ ~~ $re { say $/ } } 01:47
camelia Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Ni…
01:47 ilbot3 joined, ChanServ sets mode: +v ilbot3
u-ou still Nil 01:47
m: my $re = rx/\S+/; for lines() { if $_ ~~ /$re/ { say $/ } } 01:48
camelia 「»Wann」
「»Um」
「»Am」
「»Ich」
「»Ich」
「»Ich」
「»Und」
「»Und」
「»Hei,」
「Und」
「»Und」
「Um」
「»Ei,」
「»Muß」
「»Tand,」
「Ist」
「Auf」
「Alle」
「Und」…
timotimo i can finally drive myself and my friends home
u-ou But that's not what I want.
maybe it's what I'm supposed to do? 01:49
timotimo m: my $re = rx/\S+/; for lines() { if $_ ~~ /$re/ { .say } }
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
»Ich mit«
»Ich komme vom Norden her.«
»Und ich vom Süden.«
timotimo m: my $re = rx/\S+/; for lines() { if $_ ~~ $re { .say } }
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
»Ich mit«
»Ich komme vom Norden her.«
»Und ich vom Süden.«
timotimo ah, if
m: my $re = rx/\S+/; for lines() { if $_ ~~ $re -> $_ { .say } }
camelia 「»Wann」
「»Um」
「»Am」
「»Ich」
「»Ich」
「»Ich」
「»Und」
「»Und」
「»Hei,」
「Und」
「»Und」
「Um」
「»Ei,」
「»Muß」
「»Tand,」
「Ist」
「Auf」
「Alle」
「Und」…
u-ou I'm talking about whether $/ gets populated
timotimo mhm
too tired to think 01:50
u-ou and it seems you have to use m{} or // to do so
so I wonder how it works with precompiled regexes
but I should probably just shut-up and jam it into a new regex
timotimo m: my $re = rx/\S+/; for lines() { if $re.match($_) { $/.say } }
camelia Cannot resolve caller match(Regex: Str); none of these signatures match:
(Any:U $: | is raw)
in block <unit> at <tmp> line 1
timotimo sorry, ask again when i've had sleep 01:51
u-ou ok :)
01:52 Cabanossi left
u-ou ahh 01:54
it matters because with /$pat/ you don't get $pat's captures
01:55 Cabanossi joined
u-ou m: my $pat = rx/(\S+)/; for lines() { if /$pat/ { say $/[0]; } } 01:55
camelia Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Ni…
u-ou I guess I need to assign the match to a variable 01:59
but that seems odd
works though 02:00
02:11 beginner_p6 left 02:21 kurahaupo__ left
u-ou m 02:26
it seems that $/ is populated with ~~ $!attr 02:27
so I'm confused :P
02:31 kurahaupo joined
u-ou wait 02:32
bah, idk
m: my $pat = rx/(\S+)/; my $v = 'hi'; if $v ~~ $pat { say $/; } 02:36
camelia 「hi」
0 => 「hi」
u-ou m: my $pat = rx/(\S+)/; for lines() -> $v { if $v ~~ $pat { say $/; } }
camelia Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Nil
Ni…
u-ou that's pretty weird, no? 02:37
02:38 aindilis left 02:39 aindilis joined 02:51 Zoffix joined
Zoffix u-ou: yeah, it's a bug. 02:51
02:51 committable6 left 02:52 Cabanossi left
u-ou ok 02:52
02:53 committable6 joined, ChanServ sets mode: +v committable6 02:55 Cabanossi joined 02:57 committable6 left, committable6 joined, ChanServ sets mode: +v committable6
Zoffix .tell AlexDaniel commitable seems to choke on `mc: my $pat = rx/(\S+)/; <a b c>.map: { if $_ ~~ $pat { say $/; } }` Pings out. And even after I killed it and restarted it, it choked again. 02:57
yoleaux Zoffix: I'll pass your message to AlexDaniel.
AlexDaniel . 02:59
yoleaux 02:57Z <Zoffix> AlexDaniel: commitable seems to choke on `mc: my $pat = rx/(\S+)/; <a b c>.map: { if $_ ~~ $pat { say $/; } }` Pings out. And even after I killed it and restarted it, it choked again.
AlexDaniel mc: my $pat = rx/(\S+)/; <a b c>.map: { if $_ ~~ $pat { say $/; } } 03:00
committable6 AlexDaniel, ¦2015.12: «「a」␤ 0 => 「a」␤「b」␤ 0 => 「b」␤「c」␤ 0 => 「c」»
AlexDaniel Zoffix: the build for 2015.12 was left behind by something 03:01
timotimo i love how there's a single bug with the tag "BELL"
because it has \c[BELL] in its title
Zoffix hm OK 03:02
AlexDaniel mc: my $pat = rx/(\S+)/; <a b c>.map: { if $_ ~~ $pat { say $/; } }
committable6 AlexDaniel, ¦2015.12: «「a」␤ 0 => 「a」␤「b」␤ 0 => 「b」␤「c」␤ 0 => 「c」»
timotimo i wonder if bugs with [BUG] [BUG] in their title count twice toward the count of BUG tagged bugs
AlexDaniel Zoffix: it's weird… seems that it wasn't deleted by committable itself
Zoffix: in any case, there's sometimes some info in committable.log 03:03
Zoffix: and if it complains about some path already existing, it has to be deleted :)
Zoffix OK 03:04
timotimo: possibly: github.com/zoffixznet/r6/blob/mast...ets.pm#L11
timotimo ah, looks like 03:05
03:06 Actualeyes left
AlexDaniel slaps committable6 03:07
committable6: stop misbehaving! 03:08
committable6 AlexDaniel, ¦stop: «Cannot find this revision (did you mean “Echt”?)»
AlexDaniel Echt misbehaving?
committable6: Echt misbehaving!
committable6 AlexDaniel, gist.github.com/8e268cc0ae63972328...a66ec00b79
03:19 AlexDaniel left 03:23 Cabanossi left 03:25 Cabanossi joined 03:26 AndyDee left 03:27 gdonald left 03:28 gdonald joined 03:32 madgoat joined 03:35 madgoat left 03:39 kurahaupo left 03:50 skids joined 03:51 Cabanossi left 03:54 Cabanossi joined 03:57 mr-foobar joined 04:00 titsuki joined 04:03 Sandy joined, Sandy left 04:04 AlexDaniel joined
Zoffix Well, shit. The bug u-ou found affects &infix:<~~>, Cool/Str.subst-mutate, Cool/Str.subst, Grammar.parse, Grammar.parse-file, Grammar.subparse 04:07
On the bright side: I know that because I found what causes it and about to compile a fix :)
u-ou yay! 04:09
04:22 Cabanossi left 04:23 mr-foobar left 04:24 Cabanossi joined, darthdeus left
samcv Zoffix, you can link to cry.nu/coverage/ 04:25
somewhere on perl6.wtf or something 04:26
04:28 darthdeus joined
samcv argh need to make it so the right iframe actually changes the whole page not just in that frame 04:29
Zoffix done 04:31
04:31 Unavowed left, Unavowed joined, obra joined, salva0 left
samcv cool 04:31
yay new coverage stats are up now :-D thanks Zoffix @ the perl 6 cov ones 04:32
04:33 AlexDaniel left 04:35 DarthGandalf joined, eroux left
samcv will eventually be able to get seperate coverage report per test as well, down the line. i mean i know how to do it now, but will get the other stuff automated first 04:40
04:44 gdonald left 04:45 gdonald joined
Zoffix m: my $re = rx/\S+/; $_ ~~ $re and say $/ for lines; 04:51
camelia 「»Wann」
「»Um」
「»Am」
「»Ich」
「»Ich」
「»Ich」
「»Und」
「»Und」
「»Hei,」
「Und」
「»Und」
「Um」
「»Ei,」
「»Muß」
「»Tand,」
「Ist」
「Auf」
「Alle」
「Und」…
Zoffix u-ou: ^ there. Fixed forever!
Zoffix flies away, cape flapping in the wind
04:51 Zoffix left 04:54 ZofBot left, ZofBot joined, ChanServ sets mode: +v ZofBot 05:00 ufobat joined 05:01 mr-foobar joined 05:08 labster left
u-ou Zoffix :D 05:12
samcv almost done automating generation of the coverage stats. feeling accomplished today 05:14
fixed forever?
u-ou :)
samcv heh
we always need Moar cover 05:15
05:22 Cabanossi left 05:23 labster joined 05:24 Cabanossi joined 05:41 wamba joined 05:45 geekosaur left 05:46 geekosaur joined
Geth doc: cc496eb4a9 | (Zoffix Znet)++ | doc/Language/5to6-perlfunc.pod6
[io grant] Remove mention of IO.umask
05:55
doc: 335a98d72d | (Zoffix Znet)++ | doc/Type/IO.pod6
[io grant] Remove mention of `role IO`

Still need to move all the routines documented in IO.pod6 to appropriate files before nixing IO.pod6 file altogether. For now, at least remove the mention that role IO is a thing.
05:57
samcv woo. coverage is now automated. less work for me yay 05:58
will the script is automated from start to finish. still need to find a way for travis to upload it to my site, but that is for tomorrow 05:59
06:17 drrho_ left, drrho_ joined 06:22 Cabanossi left 06:24 Cabanossi joined 06:34 drrho_ left
Geth doc: cc6539bcfb | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Remove 8 methods from IO::Handle

Removes .e, .d, .f, .s, .l, .r, .w, and .x
06:48
06:52 Cabanossi left 06:54 Cabanossi joined 06:58 RabidGravy joined 07:22 Cabanossi left 07:23 Cabanossi joined, travis-ci joined
travis-ci Doc build failed. Zoffix Znet '[io grant] Remove 8 methods from IO::Handle 07:23
travis-ci.org/perl6/doc/builds/217704379 github.com/perl6/doc/compare/335a9...6539bcfba9
07:23 travis-ci left
samcv idk is there a remove method magic thig 07:26
like how you can add them
docs.perl6.org/language/mop
probably one that will let you remove one
07:30 sammers joined 07:45 itaipu joined 07:53 Cabanossi left, Cabanossi joined 08:08 robertle joined 08:09 geekosaur left, geekosaur joined 08:12 itaipu left
u-ou tired 08:13
08:17 spebern joined 08:18 spebern left, spebern joined
samcv me too 08:24
sammers hi all 08:28
08:32 IOninja joined
u-ou I'm slowly reading about grammars. looks good. 08:32
hi sammer 08:33
s
08:34 IOninja is now known as Zoffix
Zoffix ❗❗❗🌟🌟🌟❇️❇️❇️🌠🌠🌠🎉🎉🎉⚠️⚠️⚠️🚧🚧🚧🌈🌈🌈 08:34
Upgrade Information for Changes Due to IO Grant Work: rakudo.org/2017/04/02/upgrade-infor...rant-work/
❗❗❗🌟🌟🌟❇️❇️❇️🌠🌠🌠🎉🎉🎉⚠️⚠️⚠️🚧🚧🚧🌈🌈🌈
u-ou :o
08:34 Zoffix left, Zoffix joined 08:35 rindolf joined
samcv Zoffix, was link not previously documented? 08:39
Zoffix samcv: I guess it was (not sure how I missed it), but it has the same problem as the docs for symlink 08:44
samcv but the order was not what our other commands were
Zoffix it's currently implemented as $link, $target, but it's documented as $target, $link, with the prose confused about what "target" means. 08:45
samcv yeah. for sure 08:46
argh tired. night everybody
Zoffix all the other related routines and command line tools use $existing-thing, $new-thing format (so that's $target, $link for &link/&symlink)
night
samcv ugh feel like i'm getting sick. hope i'm not
Zoffix moves away from samcv 08:47
08:53 sena_kun joined 08:55 Zoffix left 08:59 TEttinger left
Geth doc: f78d2667c3 | (Zoffix Znet)++ | t/pod-htmlify.t
Do not use non-existent IO::Handle.IO
09:08
09:22 espadrine joined
moritz lol I blogged: perlgeek.de/blog-en/perl-6/2017-01...ython.html 09:24
featuring some borderline meta programming :-)
in unrelated news, it looks like "Perl 6 by Example" will be published through a major tech publisher, both in print and ebook form 09:30
which means I'll have to pull it from leanpub, but those who purchased it there can get a free ebook version once it's done 09:31
lizmat moritz: good news! :-) 09:35
Geth doc: 0511e07820 | (Zoffix Znet)++ | 5 files
[io grant] Document IO::Spec::*.tmpdir
09:37
moritz lizmat: indeed
I see it as an experiment
the royalties are a factor 4 to 8 lower than on leanpub, so it'll be interesting to see if the increased exposure and print form can make up for that 09:38
Geth doc: db366552a2 | (Zoffix Znet)++ | doc/Language/variables.pod6
[io grant] Remove tip to use $*SPEC to detect OS

We have $*DISTRO for that purpose
09:40
09:44 domidumont joined 09:45 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Do not use non-existent IO::Handle.IO' 09:45
travis-ci.org/perl6/doc/builds/217727726 github.com/perl6/doc/compare/cc653...8d2667c314
09:45 travis-ci left
Geth doc: 839a6b39a7 | (Zoffix Znet)++ | doc/Language/variables.pod6
[io grant] Expand docs for $*HOME and $*TMPDIR
09:46
09:48 domidumont left 09:49 domidumont joined
lizmat moritz: maybe leanpub should rename itself to royalty8pub :-) 09:51
10:05 Cabanossi left 10:09 Cabanossi joined 10:11 travis-ci joined
travis-ci Doc build passed. Zoffix Znet '[io grant] Document IO::Spec::*.tmpdir' 10:11
travis-ci.org/perl6/doc/builds/217733245 github.com/perl6/doc/compare/f78d2...11e07820c1
10:11 travis-ci left, labster left 10:15 travis-ci joined
travis-ci Doc build passed. Zoffix Znet '[io grant] Remove tip to use $*SPEC to detect OS 10:15
travis-ci.org/perl6/doc/builds/217733955 github.com/perl6/doc/compare/0511e...366552a234
10:15 travis-ci left
Voldenet wouldn't it be better if travis-ci was connecting to a znc or something 10:16
less flood
10:18 noganex joined 10:22 drrho_ joined 10:41 Ven joined, Ven is now known as Guest92517 10:48 mr-foobar left, mr-foobar joined, jeek left, spebern left 10:59 ooo joined 11:15 gdonald left 11:16 gdonald joined 11:20 roshanali joined
roshanali Hi there! Can any body tell me about a nice IDE for perl6. I know about Padre but thats for perl5. 11:21
lizmat swears by vi, but that's just because her fingers have grown that way :-) 11:22
11:22 AndyDee joined 11:23 Cabanossi left 11:24 Cabanossi joined
roshanali Hi! Can you please tell me about a nice IDE for perl6. I know about Padre but thats for perl5. 11:26
lizmat perhaps github.com/perl6/Atom-as-a-Perl6-IDE ? # Zoffix++ 11:28
roshanali Thanks lizmat 11:42
11:46 roshanali left 12:06 Guest92517 left 12:08 Cabanossi left, llfourn left 12:09 Cabanossi joined 12:29 Ven joined, Ven is now known as Guest99962 12:33 mxco86 left 12:51 Cabanossi left 12:54 Cabanossi joined 13:01 Guest99962 left 13:02 Ven_ joined
tbrowder hi, #perl6 13:05
since vars docs are being touched, how do folks feel about alphabetizing the various lists of variables as is it's not always easy to find the one you're looking for. 13:06
s/is it/it/ 13:07
13:09 Ven_ left 13:12 Ven_ joined 13:15 ufobat left 13:22 gdonald left, gdonald joined, Cabanossi left 13:24 Cabanossi joined
Geth perl6-most-wanted: 3055a0fa93 | (Tom Browder)++ | most-wanted/modules.md
change module name, add 3 WIPs

correct name to Net::ACME2 (ACME is an acronym, add '2' to avoid confusion with Perl 5 version 'Net::ACME') add two more WIPs
13:24
13:28 SCHAAP137 left 13:33 SCHAAP137 joined 13:37 AlexDaniel joined, Ven_ left
AlexDaniel hmmm, RT #131089 is a dup I think, does anybody remember the other ticket? 13:38
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=131089
13:39 jeek joined
AlexDaniel is it RT #124553 or was there anything else? 13:40
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=124553
AlexDaniel RT #125353 ? 13:41
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=125353
13:44 ooo left 13:56 llfourn joined 13:58 nadim_ left, nadim joined, Ven joined 13:59 Ven is now known as Guest83349 14:06 bjz left 14:12 drrho_ left, drrho_ joined
RabidGravy somewhat warnocked on the github.com/sergot/http-useragent/pull/170 - minded to merge but could do with other input 14:17
14:19 Guest83349 left 14:22 Cabanossi left, Ven_ joined 14:24 Cabanossi joined 14:26 titsuki left 14:28 obfusk joined 14:31 nowan joined 14:33 nowan_ left 14:35 nowan left 14:37 nowan joined 14:52 kurahaupo__ joined 14:59 Khisanth left 15:01 Ven_ left 15:03 Ven joined 15:04 Ven is now known as Guest20500 15:06 Cabanossi left 15:07 kurahaupo__ is now known as kurahaupo 15:08 rindolf left, Guest20500 left, Cabanossi joined 15:10 Ven_ joined 15:11 matiaslina joined 15:12 Khisanth joined 15:13 Actualeyes joined 15:15 zakharyas joined 15:17 rindolf joined, Ven_ left 15:19 Ven_ joined 15:23 MilkmanDan left, khw joined
tbrowder ref IO::Handle docs: I don't see the s, f, or d methods documented there. shouldn't they be? 15:24
15:24 Ven_ left 15:27 Ven_ joined 15:33 ufobat joined 15:35 Ven_ left, Ven_ joined
tbrowder also what about IO::Handle methods modified and other time-type methods? 15:39
15:45 MilkmanDan joined
tbrowder never mind, i see them in IO::Path, but maybe they could all be mentioned in Language/File Input/Output--thoughts? 15:48
15:48 matiaslina left 15:50 matiaslina joined 15:54 titsuki joined
Voldenet but does IO::Handle do them? 15:55
15:55 Ven_ left
Voldenet oh, it does 15:56
15:57 zakharyas left
Voldenet hm, that's really puzzling, yeah, especially that IO::Path and IO::Handle are actually not even related 15:58
(so it'd seem when looking at type graphs) 16:04
16:08 Exodist left 16:09 Exodist joined
Geth doc: 14ab6b5156 | (Tom Browder)++ | doc/Language/io.pod6
Add more method info with examples
16:09
tbrowder hi, Voldenet. I saw the same thing you saw about the type graphs, but there is a reference to them on the same page. Let me find it. 16:11
Voldenet hm, "See also the related class IO::Path" 16:14
tbrowder Ok, on role IO doc it mentions related classes IO::Handle and IO::Paths and it shows the IO::Handle but not the IO::Path. a bug maybe? hm, I can't find IO::Path in the same type graph with any of the others. AlexDaniel?? 16:16
Ach! Zoffix is modifying stuff on IO::Handle--I hope I haven't messed that up! 16:19
AlexDaniel tbrowder: yes, Zoffix probably has a better answer 16:20
tbrowder: he hangs around on #perl6-dev
tbrowder I think what I added so far is ok, but I'll check with Z. 16:21
Geth doc: 8e063c57d9 | (Tom Browder)++ | doc/Language/io.pod6
add the missing ".IO"s
16:30
16:49 gdonald left 16:50 gdonald joined 16:51 shmibs joined 17:01 espadrine left 17:11 Exodist left, Exodist joined 17:14 espadrine joined 17:16 espadrine left, espadrine joined 17:22 Cabanossi left 17:24 Cabanossi joined 17:34 ChoHag joined 17:51 Cabanossi left 17:54 Cabanossi joined 18:01 vendethiel joined 18:22 Cabanossi left 18:24 Cabanossi joined 18:39 jeek left 18:57 araujo left
Geth doc: 8bb22903ac | (Tom Browder)++ | doc/Language/io.pod6
remove spurious '<'
19:00
19:01 Exodist left 19:04 geekosaur left
Geth doc: 262bdd727f | (Tom Browder)++ | doc/Language/io.pod6
wording tweak
19:04
19:04 geekosaur joined 19:07 Exodist joined 19:15 Exodist left 19:16 Exodist joined 19:19 domidumont left 19:22 Cabanossi left 19:24 Cabanossi joined 19:38 spebern joined 19:45 raschipi joined, ChoHag left 19:49 raschipi left 19:58 zakharyas joined, ufobat left 20:01 ParsonsNose joined 20:02 rpburkholder joined 20:03 sivoais left
ParsonsNose Quick style question. Which of these do you guys consider better (or is there a better way of doing this I missed?) a) `$_ = ~m/^'# '?(.+)$/[0] given @ls[l];` or b) `@ls[l] .=&{ ~$0 given m/^'# '?(.+)$/ }` ? 20:03
20:04 sivoais joined 20:05 sena_kun left
ParsonsNose I'm just not sure how I feel about the `.=&{` pseudo-operator... 20:06
moritz that one feels weird to me
m/ ^ '# '? <( .+ $ / and $_ = ~$/ 20:07
or just $_ = @ls[l].subst(/^ '# '/) 20:08
timotimo moritz: doesn't that need a , '' in there, too?
20:08 TimToady left
moritz timotimo: where? 20:09
timotimo subst
does subst have a one-arg candidate?
moritz oh right
$_ = @ls[l].subst(/^ '# '/, '') 20:10
timotimo i could totally see '' as a good default value for subst's second arg
20:10 TimToady joined
ParsonsNose That looks much cleaner, tnx 20:10
moritz timotimo: but then we could name it .remove :-) 20:11
timotimo yeah 20:12
well, i think in python you'd use .lstrip('# ') for that, even though it'd then also strip off " " or "###" or " # "
20:16 robertle left 20:25 cyphase left 20:29 spebern left 20:30 _28_ria left 20:31 zakharyas left
AlexDaniel ParsonsNose: sometimes $smth.match(…) reads nicer 20:32
ParsonsNose: and it could very well be $smth .= match(…) 20:33
20:35 cyphase joined
AlexDaniel oh wait, that will get us a match object… 20:37
oops!
subst is the right answer then
m: my @l = ‘foo’, ‘# abc’; @l[1] .= subst(/^‘# ’/, ‘’); say @l[1]'
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3; @l[1] .= subst(/^‘# ’/, ‘’); say @l[1]7⏏5'
expecting any of:
infix
infix stopper
postfix
statement e…
AlexDaniel m: my @l = ‘foo’, ‘# abc’; @l[1] .= subst(/^‘# ’/, ‘’); say @l[1]
camelia abc
20:41 cyphase left 20:45 cyphase joined 20:46 salv0 left 20:57 matiasli1a joined 20:58 matiaslina left 21:08 Cabanossi left 21:09 Cabanossi joined 21:15 RabidGravy left 21:25 rindolf left 21:27 matiaslina joined 21:28 jeek joined 21:30 matiasli1a left 21:31 bjz joined 21:32 matiasli1a joined 21:33 matiaslina left 21:34 cyphase left 21:39 cyphase joined 21:56 bjz left 22:00 cyphase left 22:01 labster joined 22:04 cyphase joined 22:13 bjz joined 22:20 Cabanossi left 22:22 dmaestro left 22:24 Cabanossi joined 22:29 bjz left 22:38 wamba left 22:53 espadrine left 23:10 labster left, jeek left, jeek joined 23:12 kurahaupo left 23:14 matiaslina joined 23:17 matiasli1a left 23:22 Exodist left, Exodist joined 23:29 Zoffix joined
Zoffix ParsonsNose: personally, I wouldn't even use a regex there. 23:30
m: my @l = ‘foo’, ‘# abc’; $_ .= substr: 2 when .starts-with: '# ' for @l; say @l 23:31
camelia [foo abc]
Zoffix wishes .= foo assumed $_ invocant :/
23:34 semigloss joined 23:36 yusrideb joined 23:38 Cabanossi left, Cabanossi joined 23:40 dead joined 23:41 dead left 23:42 rpburkholder left 23:45 BenGoldberg joined 23:47 labster joined
ParsonsNose m: class Inty is Int { method ho { self + 7 } } ; my Inty $hi .= new: 6 ; say $hi.ho 23:53
camelia Type check failed in assignment to $hi; expected Inty but got Int (6)
in block <unit> at <tmp> line 1
ParsonsNose m: my $hi = 4 but role { method ho { say self + 1 } } ; say $hi.ho 23:54
camelia 5
True
23:55 matiasli1a joined 23:57 matiaslina left