Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-04-02

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 geekosaur joined #perl6
00:05 samcv yay I finally got travis to spit out coverage stats https://travis-ci.org/samcv/MoarVM/builds/217646397#L1051
00:07 timotimo ttttttttravis
00:08 timotimo nan% covered <3
00:08 samcv heh
00:08 timotimo in green
00:08 timotimo because why not
00:08 timotimo i'm making progress with the moarvm MVMObject pretty-printer
00:08 samcv well it has no functions in the file
00:08 timotimo even though i didn't expect it at all
00:14 timotimo MVMObject * (IterationBuffer) of repr VMArray = {...}, data=0x7ffff4d6dc60, value=..., kind=8)
00:15 timotimo 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:16 timotimo oh
00:16 timotimo that's the rest of the function arguments
00:17 timotimo (gdb) print root[0]
00:17 timotimo $2 = 0x7ffff7dbed40
00:17 timotimo MVMObject (IterationBuffer) = {0x7ffff7d23060
00:17 timotimo MVMObject * (Scalar), 0x7ffff7d23060
00:17 timotimo MVMObject * (Scalar), 0x7ffff7d23060
00:17 timotimo MVMObject * (Scalar)}
00:17 timotimo that's not even bad!
00:18 timotimo the hex values are debug prints
00:18 timotimo but having "Scalar" for every entry is a bit rubbish :) :)
00:20 timotimo $1 = MVMObject * (array[int]) = {476821, 476822, 476823, 476824, 476825, 476826, 476827, 476828, 476829, 476830,
00:20 timotimo yay~
00:22 timotimo oh ... pretty printing MVMHash from inside python code using gdb will be ... fun :(
00:22 timotimo but first: P6opaque
00:25 samcv and i figured out how to only include certain files now
00:26 samcv can supply it a list of files. so using find ./src -name '*.c' | grep -v unicode.h
00:26 samcv err .c. cause that has our whole unicode database in it. so not gonna do that one for now
00:31 timotimo yeah, that's probably good :)
00:31 samcv thanks travis
00:32 samcv when i tried to print out coverage stats for all src .c files except unicode db file
00:34 samcv /Users/travis/.travis/job_stages: eval: line 54: syntax error: unexpected end of file
00:36 samcv 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:39 samcv 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:42 timotimo \o/
00:43 timotimo hum. how do i teach gdb that "if this value is to be stringified, it has its STable living at this other address"?
00:45 samcv no clue
00:45 timotimo maximum shrug ...
00:46 timotimo like, i'd have to introspect the flattened stables to figure out what byte size a given attribute has, and its signedness
00:46 timotimo (if it's an int)
00:49 samcv F A N C Y
00:49 samcv https://cry.nu/coverage/
00:50 samcv check it out timotimo
00:50 timotimo that's rad!
00:50 samcv \o/
00:51 timotimo everything is red :o
00:51 timotimo oh
00:51 timotimo just bad luck selecting a .c file
00:52 timotimo https://cry.nu/coverage/coverage/home/samantha/git/MoarVM/src/main.c.html ??
00:53 samcv that's in moar binary not libmoar.so
00:53 samcv 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
00:53 samcv there are only a few of them
00:54 samcv maybe can come up with something with tables
00:54 samcv so can have the index of filenames and also show the overall file stats
00:55 samcv without having to process tons of files into new formats and do a ton of work
00:55 Actualeyes joined #perl6
00:57 samcv timotimo, uploading new files now
00:57 samcv this is really awesome tho :-) very happy
00:58 raschipi timotimo: I got a 404 from your last link
00:58 samcv not anymore raschipi
00:58 samcv i just generated the ones that are in the moar binary and not in libmoar.so (which has 95% of the files in it)
00:58 timotimo raschipi: that's why i "??"'d ti
00:59 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 #perl6
00:59 samcv and these coverage are for the nqp test suite fyi
00:59 timotimo pretty cool.
01:01 timotimo self.val.hello = "bar"
01:01 timotimo AttributeError: 'gdb.Value' object has no attribute 'hello'
01:01 timotimo aren't i supposed to be able to put any new field on a python object that i want?
01:03 geekosaur no
01:03 geekosaur at least, not like that
01:04 samcv also https://cry.nu/coverage/report-libmoar.html
01:04 samcv this is an overview
01:04 timotimo that looks really good
01:04 timotimo per-function is a lot nicer than just per-file
01:04 samcv yeah
01:05 samcv and here is https://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
01:05 samcv will have to find some way to get those combined somehow
01:05 timotimo unless we want to cover moar's option parser
01:05 timotimo nah, forget it
01:05 samcv main.c has pretty low coverage
01:06 samcv hahah
01:06 timotimo main.c has pretty low impact
01:06 samcv yeah
01:06 samcv well we could cover it and just write some moar tests or something idk
01:06 samcv to try the different options and such.
01:23 u-ou my $re = rx/\S+/; $_ ~~ $re and say $/ for lines;
01:23 u-ou m: my $re = rx/\S+/; $_ ~~ $re and say $/ for lines;
01:23 camelia rakudo-moar f947a1: OUTPUT: «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:23 u-ou why does $/ end up as Nil there?
01:25 Cabanossi joined #perl6
01:32 timotimo the and might put the postfix for loop after the and
01:32 beginner_p6 joined #perl6
01:32 beginner_p6 hello
01:32 timotimo i.e. it'll do the regex match, and then say $/ for each line
01:33 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
01:33 camelia rakudo-moar f947a1: OUTPUT: «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:33 timotimo m: my $re = rx/\S+/; ($_ ~~ $re).say for lines
01:33 camelia rakudo-moar f947a1: OUTPUT: «「»Wann」␤「»Um」␤「»Am」␤「»Ich」␤「»Ich」␤Nil␤「»Ich」␤「»Und」␤「»Und」␤Nil␤「»Hei,」␤「Und」␤Nil␤Nil␤「»Und」␤「Um」␤「»Ei,」␤「»Muß」␤Nil␤「»Tand,」␤「Ist」␤Nil…»
01:47 ilbot3 joined #perl6
01:47 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
01:47 u-ou still Nil
01:48 u-ou m: my $re = rx/\S+/; for lines() { if $_ ~~ /$re/ { say $/ } }
01:48 camelia rakudo-moar f947a1: OUTPUT: «「»Wann」␤「»Um」␤「»Am」␤「»Ich」␤「»Ich」␤「»Ich」␤「»Und」␤「»Und」␤「»Hei,」␤「Und」␤「»Und」␤「Um」␤「»Ei,」␤「»Muß」␤「»Tand,」␤「Ist」␤「Auf」␤「Alle」␤「Und」…»
01:48 timotimo i can finally drive myself and my friends home
01:48 u-ou But that's not what I want.
01:49 u-ou maybe it's what I'm supposed to do?
01:49 timotimo m: my $re = rx/\S+/; for lines() { if $_ ~~ /$re/ { .say } }
01:49 camelia rakudo-moar f947a1: OUTPUT: «»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.«␤  …»
01:49 timotimo m: my $re = rx/\S+/; for lines() { if $_ ~~ $re { .say } }
01:49 camelia rakudo-moar f947a1: OUTPUT: «»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.«␤  …»
01:49 timotimo ah, if
01:49 timotimo m: my $re = rx/\S+/; for lines() { if $_ ~~ $re -> $_ { .say } }
01:49 camelia rakudo-moar f947a1: OUTPUT: «「»Wann」␤「»Um」␤「»Am」␤「»Ich」␤「»Ich」␤「»Ich」␤「»Und」␤「»Und」␤「»Hei,」␤「Und」␤「»Und」␤「Um」␤「»Ei,」␤「»Muß」␤「»Tand,」␤「Ist」␤「Auf」␤「Alle」␤「Und」…»
01:49 u-ou I'm talking about whether $/ gets populated
01:49 timotimo mhm
01:49 timotimo too tired to think
01:50 u-ou and it seems you have to use m{} or // to do so
01:50 u-ou so I wonder how it works with precompiled regexes
01:50 u-ou but I should probably just shut-up and jam it into a new regex
01:50 timotimo m: my $re = rx/\S+/; for lines() { if $re.match($_) { $/.say } }
01:50 camelia rakudo-moar f947a1: OUTPUT: «Cannot resolve caller match(Regex: Str); none of these signatures match:␤    (Any:U $: | is raw)␤  in block <unit> at <tmp> line 1␤␤»
01:51 timotimo sorry, ask again when i've had sleep
01:51 u-ou ok :)
01:54 u-ou ahh
01:54 u-ou it matters because with /$pat/ you don't get $pat's captures
01:55 Cabanossi joined #perl6
01:55 u-ou m: my $pat = rx/(\S+)/; for lines() { if /$pat/ { say $/[0]; } }
01:55 camelia rakudo-moar f947a1: OUTPUT: «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:59 u-ou I guess I need to assign the match to a variable
01:59 u-ou but that seems odd
02:00 u-ou works though
02:26 u-ou m
02:27 u-ou it seems that $/ is populated with ~~ $!attr
02:27 u-ou so I'm confused :P
02:31 kurahaupo joined #perl6
02:32 u-ou wait
02:32 u-ou bah, idk
02:36 u-ou m: my $pat = rx/(\S+)/; my $v = 'hi'; if $v ~~ $pat { say $/; }
02:36 camelia rakudo-moar f947a1: OUTPUT: «「hi」␤ 0 => 「hi」␤»
02:36 u-ou m: my $pat = rx/(\S+)/; for lines() -> $v { if $v ~~ $pat { say $/; } }
02:36 camelia rakudo-moar f947a1: OUTPUT: «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…»
02:37 u-ou that's pretty weird, no?
02:39 aindilis joined #perl6
02:51 Zoffix joined #perl6
02:51 Zoffix u-ou: yeah, it's a bug.
02:52 u-ou ok
02:53 committable6 joined #perl6
02:55 Cabanossi joined #perl6
02:57 committable6 joined #perl6
02:57 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.
02:59 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.
03:00 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」»
03:01 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"
03:01 timotimo because it has \c[BELL] in its title
03:02 Zoffix hm OK
03:02 AlexDaniel mc: my $pat = rx/(\S+)/; <a b c>.map: { if $_ ~~ $pat { say $/; } }
03:02 committable6 AlexDaniel, ¦2015.12: «「a」␤ 0 => 「a」␤「b」␤ 0 => 「b」␤「c」␤ 0 => 「c」»
03:02 timotimo i wonder if bugs with [BUG] [BUG] in their title count twice toward the count of BUG tagged bugs
03:02 AlexDaniel Zoffix: it's weird… seems that it wasn't deleted by committable itself
03:03 AlexDaniel Zoffix: in any case, there's sometimes some info in committable.log
03:03 AlexDaniel Zoffix: and if it complains about some path already existing, it has to be deleted :)
03:04 Zoffix OK
03:04 Zoffix timotimo: possibly: https://github.com/zoffixznet/r6/blob/master/lib/R6/Controller/Tickets.pm#L11
03:05 timotimo ah, looks like
03:06 Actualeyes left #perl6
03:07 * AlexDaniel slaps committable6
03:08 AlexDaniel committable6: stop misbehaving!
03:08 committable6 AlexDaniel, ¦stop: «Cannot find this revision (did you mean “Echt”?)»
03:08 AlexDaniel Echt misbehaving?
03:08 AlexDaniel committable6: Echt misbehaving!
03:08 committable6 AlexDaniel, https://gist.github.com/8e268cc0ae63972328ba97a66ec00b79
03:25 Cabanossi joined #perl6
03:28 gdonald joined #perl6
03:32 madgoat joined #perl6
03:35 madgoat left #perl6
03:50 skids joined #perl6
03:54 Cabanossi joined #perl6
03:57 mr-foobar joined #perl6
04:00 titsuki joined #perl6
04:03 Sandy joined #perl6
04:03 Sandy left #perl6
04:04 AlexDaniel joined #perl6
04:07 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 Zoffix On the bright side: I know that because I found what causes it and about to compile a fix :)
04:09 u-ou yay!
04:24 Cabanossi joined #perl6
04:25 samcv Zoffix, you can link to https://cry.nu/coverage/
04:26 samcv somewhere on perl6.wtf or something
04:28 darthdeus joined #perl6
04:29 samcv argh need to make it so the right iframe actually changes the whole page not just in that frame
04:31 Zoffix done
04:31 Unavowed joined #perl6
04:31 obra joined #perl6
04:31 samcv cool
04:32 samcv yay new coverage stats are up now :-D thanks Zoffix @ the perl 6 cov ones
04:35 DarthGandalf joined #perl6
04:40 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:45 gdonald joined #perl6
04:51 Zoffix m: my $re = rx/\S+/; $_ ~~ $re and say $/ for lines;
04:51 camelia rakudo-moar a62b22: OUTPUT: «「»Wann」␤「»Um」␤「»Am」␤「»Ich」␤「»Ich」␤「»Ich」␤「»Und」␤「»Und」␤「»Hei,」␤「Und」␤「»Und」␤「Um」␤「»Ei,」␤「»Muß」␤「»Tand,」␤「Ist」␤「Auf」␤「Alle」␤「Und」…»
04:51 Zoffix u-ou: ^ there. Fixed forever!
04:51 * Zoffix flies away, cape flapping in the wind
04:51 Zoffix left #perl6
04:54 ZofBot joined #perl6
05:00 ufobat joined #perl6
05:01 mr-foobar joined #perl6
05:12 u-ou Zoffix :D
05:14 samcv almost done automating generation of the coverage stats. feeling accomplished today
05:14 samcv fixed forever?
05:14 u-ou :)
05:14 samcv heh
05:15 samcv we always need Moar cover
05:23 labster joined #perl6
05:24 Cabanossi joined #perl6
05:41 wamba joined #perl6
05:46 geekosaur joined #perl6
05:55 Geth ¦ doc: cc496eb4a9 | (Zoffix Znet)++ | doc/Language/5to6-perlfunc.pod6
05:55 Geth ¦ doc: [io grant] Remove mention of IO.umask
05:55 Geth ¦ doc: review: https://github.com/perl6/doc/commit/cc496eb4a9
05:57 Geth ¦ doc: 335a98d72d | (Zoffix Znet)++ | doc/Type/IO.pod6
05:57 Geth ¦ doc: [io grant] Remove mention of `role IO`
05:57 Geth ¦ doc:
05:57 Geth ¦ doc: Still need to move all the routines documented in IO.pod6
05:57 Geth ¦ doc: to appropriate files before nixing IO.pod6 file altogether. For now,
05:57 Geth ¦ doc: at least remove the mention that role IO is a thing.
05:57 Geth ¦ doc: review: https://github.com/perl6/doc/commit/335a98d72d
05:58 samcv woo. coverage is now automated. less work for me yay
05:59 samcv 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
06:17 drrho_ joined #perl6
06:24 Cabanossi joined #perl6
06:48 Geth ¦ doc: cc6539bcfb | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
06:48 Geth ¦ doc: [io grant] Remove 8 methods from IO::Handle
06:48 Geth ¦ doc:
06:48 Geth ¦ doc: Removes .e, .d, .f, .s, .l, .r, .w, and .x
06:48 Geth ¦ doc: review: https://github.com/perl6/doc/commit/cc6539bcfb
06:54 Cabanossi joined #perl6
06:58 RabidGravy joined #perl6
07:23 Cabanossi joined #perl6
07:23 travis-ci joined #perl6
07:23 travis-ci Doc build failed. Zoffix Znet '[io grant] Remove 8 methods from IO::Handle
07:23 travis-ci https://travis-ci.org/perl6/doc/builds/217704379 https://github.com/perl6/doc/compare/335a98d72df1...cc6539bcfba9
07:23 travis-ci left #perl6
07:26 samcv idk is there a remove method magic thig
07:26 samcv like how you can add them
07:26 samcv https://docs.perl6.org/language/mop
07:26 samcv probably one that will let you remove one
07:30 sammers joined #perl6
07:45 itaipu joined #perl6
07:53 Cabanossi joined #perl6
08:08 robertle joined #perl6
08:09 geekosaur joined #perl6
08:13 * u-ou tired
08:17 spebern joined #perl6
08:18 spebern joined #perl6
08:24 samcv me too
08:28 sammers hi all
08:32 IOninja joined #perl6
08:32 u-ou I'm slowly reading about grammars. looks good.
08:33 u-ou hi sammer
08:33 u-ou s
08:34 Zoffix ❗❗❗????????????❇️❇️❇️????????????????????????⚠️⚠️⚠️????????????????????????
08:34 Zoffix Upgrade Information for Changes Due to IO Grant Work: http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/
08:34 Zoffix ❗❗❗????????????❇️❇️❇️????????????????????????⚠️⚠️⚠️????????????????????????
08:34 u-ou :o
08:34 Zoffix joined #perl6
08:35 rindolf joined #perl6
08:39 samcv Zoffix, was link not previously documented?
08:43 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
08:45 Zoffix it's currently implemented as $link, $target, but it's documented as $target, $link, with the prose confused about what "target" means.
08:46 samcv yeah. for sure
08:46 samcv argh tired. night everybody
08:46 Zoffix all the other related routines and command line tools use $existing-thing, $new-thing format (so that's $target, $link for &link/&symlink)
08:46 Zoffix night
08:46 samcv ugh feel like i'm getting sick. hope i'm not
08:47 * Zoffix moves away from samcv
08:53 sena_kun joined #perl6
08:55 Zoffix left #perl6
09:08 Geth ¦ doc: f78d2667c3 | (Zoffix Znet)++ | t/pod-htmlify.t
09:08 Geth ¦ doc: Do not use non-existent IO::Handle.IO
09:08 Geth ¦ doc: review: https://github.com/perl6/doc/commit/f78d2667c3
09:22 espadrine joined #perl6
09:24 moritz lol I blogged: https://perlgeek.de/blog-en/perl-6/2017-014-idiomatic-inline-python.html
09:24 moritz featuring some borderline meta programming :-)
09:30 moritz 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:31 moritz 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:35 lizmat moritz: good news!  :-)
09:36 Geth ¦ doc: 0511e07820 | (Zoffix Znet)++ | 5 files
09:36 Geth ¦ doc: [io grant] Document IO::Spec::*.tmpdir
09:36 Geth ¦ doc: review: https://github.com/perl6/doc/commit/0511e07820
09:37 moritz lizmat: indeed
09:37 moritz I see it as an experiment
09:38 moritz 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:40 Geth ¦ doc: db366552a2 | (Zoffix Znet)++ | doc/Language/variables.pod6
09:40 Geth ¦ doc: [io grant] Remove tip to use $*SPEC to detect OS
09:40 Geth ¦ doc:
09:40 Geth ¦ doc: We have $*DISTRO for that purpose
09:40 Geth ¦ doc: review: https://github.com/perl6/doc/commit/db366552a2
09:44 domidumont joined #perl6
09:45 travis-ci joined #perl6
09:45 travis-ci Doc build passed. Zoffix Znet 'Do not use non-existent IO::Handle.IO'
09:45 travis-ci https://travis-ci.org/perl6/doc/builds/217727726 https://github.com/perl6/doc/compare/cc6539bcfba9...f78d2667c314
09:45 travis-ci left #perl6
09:46 Geth ¦ doc: 839a6b39a7 | (Zoffix Znet)++ | doc/Language/variables.pod6
09:46 Geth ¦ doc: [io grant] Expand docs for $*HOME and $*TMPDIR
09:46 Geth ¦ doc: review: https://github.com/perl6/doc/commit/839a6b39a7
09:49 domidumont joined #perl6
09:51 lizmat moritz: maybe leanpub should rename itself to royalty8pub  :-)
10:09 Cabanossi joined #perl6
10:11 travis-ci joined #perl6
10:11 travis-ci Doc build passed. Zoffix Znet '[io grant] Document IO::Spec::*.tmpdir'
10:11 travis-ci https://travis-ci.org/perl6/doc/builds/217733245 https://github.com/perl6/doc/compare/f78d2667c314...0511e07820c1
10:11 travis-ci left #perl6
10:15 travis-ci joined #perl6
10:15 travis-ci Doc build passed. Zoffix Znet '[io grant] Remove tip to use $*SPEC to detect OS
10:15 travis-ci https://travis-ci.org/perl6/doc/builds/217733955 https://github.com/perl6/doc/compare/0511e07820c1...db366552a234
10:15 travis-ci left #perl6
10:16 Voldenet wouldn't it be better if travis-ci was connecting to a znc or something
10:16 Voldenet less flood
10:18 noganex joined #perl6
10:22 drrho_ joined #perl6
10:41 Ven joined #perl6
10:48 mr-foobar joined #perl6
10:59 ooo joined #perl6
11:16 gdonald joined #perl6
11:20 roshanali joined #perl6
11:21 roshanali Hi there! Can any body tell me about a nice IDE for perl6. I know about Padre but thats for perl5.
11:22 * lizmat swears by vi, but that's just because her fingers have grown that way  :-)
11:22 AndyDee joined #perl6
11:24 Cabanossi joined #perl6
11:26 roshanali Hi! Can you please tell me about a nice IDE for perl6. I know about Padre but thats for perl5.
11:28 lizmat perhaps https://github.com/perl6/Atom-as-a-Perl6-IDE  ?   # Zoffix++
11:42 roshanali Thanks lizmat
12:09 Cabanossi joined #perl6
12:29 Ven joined #perl6
12:54 Cabanossi joined #perl6
13:02 Ven_ joined #perl6
13:05 tbrowder hi, #perl6
13:06 tbrowder 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:07 tbrowder s/is it/it/
13:12 Ven_ joined #perl6
13:22 gdonald joined #perl6
13:24 Cabanossi joined #perl6
13:24 Geth ¦ perl6-most-wanted: 3055a0fa93 | (Tom Browder)++ | most-wanted/modules.md
13:24 Geth ¦ perl6-most-wanted: change module name, add 3 WIPs
13:24 Geth ¦ perl6-most-wanted:
13:24 Geth ¦ perl6-most-wanted: correct name to Net::ACME2 (ACME is an acronym, add '2' to avoid confusion with Perl 5 version 'Net::ACME')
13:24 Geth ¦ perl6-most-wanted: add two more WIPs
13:24 Geth ¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/3055a0fa93
13:33 SCHAAP137 joined #perl6
13:37 AlexDaniel joined #perl6
13:38 AlexDaniel hmmm, RT #131089 is a dup I think, does anybody remember the other ticket?
13:38 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=131089
13:39 jeek joined #perl6
13:40 AlexDaniel is it RT #124553 or was there anything else?
13:40 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=124553
13:41 AlexDaniel RT #125353 ?
13:41 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=125353
13:56 llfourn joined #perl6
13:58 nadim joined #perl6
13:58 Ven joined #perl6
14:12 drrho_ joined #perl6
14:17 RabidGravy somewhat warnocked on the https://github.com/sergot/http-useragent/pull/170 - minded to merge but could do with other input
14:22 Ven_ joined #perl6
14:24 Cabanossi joined #perl6
14:28 obfusk joined #perl6
14:31 nowan joined #perl6
14:37 nowan joined #perl6
14:52 kurahaupo__ joined #perl6
15:03 Ven joined #perl6
15:08 Cabanossi joined #perl6
15:10 Ven_ joined #perl6
15:11 matiaslina joined #perl6
15:12 Khisanth joined #perl6
15:13 Actualeyes joined #perl6
15:15 zakharyas joined #perl6
15:17 rindolf joined #perl6
15:19 Ven_ joined #perl6
15:23 khw joined #perl6
15:24 tbrowder ref IO::Handle docs: I don't see the s, f, or d methods documented there. shouldn't they be?
15:27 Ven_ joined #perl6
15:33 ufobat joined #perl6
15:35 Ven_ joined #perl6
15:39 tbrowder also what about IO::Handle methods modified and other time-type methods?
15:45 MilkmanDan joined #perl6
15:48 tbrowder never mind, i see them in IO::Path, but maybe they could all be mentioned in Language/File Input/Output--thoughts?
15:50 matiaslina joined #perl6
15:54 titsuki joined #perl6
15:55 Voldenet but does IO::Handle do them?
15:56 Voldenet oh, it does
15:58 Voldenet hm, that's really puzzling, yeah, especially that IO::Path and IO::Handle are actually not even related
16:04 Voldenet (so it'd seem when looking at type graphs)
16:09 Exodist joined #perl6
16:09 Geth ¦ doc: 14ab6b5156 | (Tom Browder)++ | doc/Language/io.pod6
16:09 Geth ¦ doc: Add more method info with examples
16:09 Geth ¦ doc: review: https://github.com/perl6/doc/commit/14ab6b5156
16:11 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:14 Voldenet hm, "See also the related class IO::Path"
16:16 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:19 tbrowder Ach!  Zoffix is modifying stuff on IO::Handle--I hope I haven't messed that up!
16:20 AlexDaniel tbrowder: yes, Zoffix probably has a better answer
16:20 AlexDaniel tbrowder: he hangs around on #perl6-dev
16:21 tbrowder I think what I added so far is ok, but I'll check with Z.
16:30 Geth ¦ doc: 8e063c57d9 | (Tom Browder)++ | doc/Language/io.pod6
16:30 Geth ¦ doc: add the missing ".IO"s
16:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/8e063c57d9
16:50 gdonald joined #perl6
16:51 shmibs joined #perl6
17:11 Exodist joined #perl6
17:14 espadrine joined #perl6
17:16 espadrine joined #perl6
17:24 Cabanossi joined #perl6
17:34 ChoHag joined #perl6
17:54 Cabanossi joined #perl6
18:01 vendethiel joined #perl6
18:24 Cabanossi joined #perl6
19:00 Geth ¦ doc: 8bb22903ac | (Tom Browder)++ | doc/Language/io.pod6
19:00 Geth ¦ doc: remove spurious '<'
19:00 Geth ¦ doc: review: https://github.com/perl6/doc/commit/8bb22903ac
19:04 Geth ¦ doc: 262bdd727f | (Tom Browder)++ | doc/Language/io.pod6
19:04 Geth ¦ doc: wording tweak
19:04 Geth ¦ doc: review: https://github.com/perl6/doc/commit/262bdd727f
19:04 geekosaur joined #perl6
19:07 Exodist joined #perl6
19:16 Exodist joined #perl6
19:24 Cabanossi joined #perl6
19:38 spebern joined #perl6
19:45 raschipi joined #perl6
19:57 zakharyas joined #perl6
20:01 ParsonsNose joined #perl6
20:02 rpburkholder joined #perl6
20:03 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:04 sivoais joined #perl6
20:06 ParsonsNose I'm just not sure how I feel about the `.=&{` pseudo-operator...
20:06 moritz that one feels weird to me
20:07 moritz m/ ^ '# '? <( .+ $ / and $_ = ~$/
20:08 moritz or just $_ = @ls[l].subst(/^ '# '/)
20:08 timotimo moritz: doesn't that need a , '' in there, too?
20:09 moritz timotimo: where?
20:09 timotimo subst
20:09 timotimo does subst have a one-arg candidate?
20:09 moritz oh right
20:10 moritz $_ = @ls[l].subst(/^ '# '/, '')
20:10 timotimo i could totally see '' as a good default value for subst's second arg
20:10 TimToady joined #perl6
20:10 ParsonsNose That looks much cleaner, tnx
20:11 moritz timotimo: but then we could name it .remove :-)
20:12 timotimo yeah
20:12 timotimo well, i think in python you'd use .lstrip('# ') for that, even though it'd then also strip off "   " or "###" or " # "
20:29 spebern left #perl6
20:32 AlexDaniel ParsonsNose: sometimes $smth.match(…) reads nicer
20:33 AlexDaniel ParsonsNose: and it could very well be $smth .= match(…)
20:35 cyphase joined #perl6
20:37 AlexDaniel oh wait, that will get us a match object…
20:37 AlexDaniel oops!
20:37 AlexDaniel subst is the right answer then
20:37 AlexDaniel m: my @l = ‘foo’, ‘# abc’; @l[1] .= subst(/^‘# ’/, ‘’); say @l[1]'
20:37 camelia rakudo-moar ca1acb: OUTPUT: «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…»
20:37 AlexDaniel m: my @l = ‘foo’, ‘# abc’; @l[1] .= subst(/^‘# ’/, ‘’); say @l[1]
20:37 camelia rakudo-moar ca1acb: OUTPUT: «abc␤»
20:45 cyphase joined #perl6
20:57 matiasli1a joined #perl6
21:09 Cabanossi joined #perl6
21:27 matiaslina joined #perl6
21:28 jeek joined #perl6
21:31 bjz joined #perl6
21:32 matiasli1a joined #perl6
21:39 cyphase joined #perl6
22:01 labster joined #perl6
22:04 cyphase joined #perl6
22:13 bjz joined #perl6
22:23 Cabanossi joined #perl6
23:10 jeek joined #perl6
23:14 matiaslina joined #perl6
23:22 Exodist joined #perl6
23:29 Zoffix joined #perl6
23:30 Zoffix ParsonsNose: personally, I wouldn't even use a regex there.
23:31 Zoffix m: my @l = ‘foo’, ‘# abc’; $_ .= substr: 2 when .starts-with: '# ' for @l; say @l
23:31 camelia rakudo-moar dcebce: OUTPUT: «[foo abc]␤»
23:31 * Zoffix wishes .= foo assumed $_ invocant :/
23:34 semigloss joined #perl6
23:36 yusrideb joined #perl6
23:38 Cabanossi joined #perl6
23:40 dead joined #perl6
23:41 dead left #perl6
23:45 BenGoldberg joined #perl6
23:47 labster joined #perl6
23:53 ParsonsNose m: class Inty is Int { method ho { self + 7 } } ; my Inty $hi .= new: 6 ; say $hi.ho
23:53 camelia rakudo-moar dcebce: OUTPUT: «Type check failed in assignment to $hi; expected Inty but got Int (6)␤  in block <unit> at <tmp> line 1␤␤»
23:54 ParsonsNose m: my $hi = 4 but role { method ho { say self + 1 } } ; say $hi.ho
23:54 camelia rakudo-moar dcebce: OUTPUT: «5␤True␤»
23:55 matiasli1a joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo