»ö« 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:07 adu joined 00:08 adu left 00:10 AlexDaniel joined 00:11 mcmillhj joined 00:12 gdonald left, gdonald joined 00:16 mcmillhj left 00:17 adu joined 00:19 cog_ left 00:21 BenGoldberg joined 00:23 adu left 00:54 Cabanossi left 00:56 labster left, Cabanossi joined 01:04 gregf_ left 01:12 labster joined 01:32 kyan joined 01:39 cpage_ joined 01:45 ilbot3 left 01:47 ilbot3 joined, ChanServ sets mode: +v ilbot3 01:54 kybr left 02:00 mcmillhj joined 02:05 mcmillhj left 02:06 kybr joined 02:10 Cabanossi left 02:11 Cabanossi joined 02:24 khw joined 02:28 BrassLantern joined, BrassLantern left 02:37 noganex_ joined 02:40 noganex left 02:49 ggoebel left 02:52 Actualeyes left, Actualeyes joined 02:58 xtreak joined 02:59 mcmillhj joined 03:02 ggoebel joined 03:11 awwaiid left 03:25 aindilis left 03:26 aindilis joined 03:39 xtreak left 03:43 xtreak joined 03:48 wamba joined 03:50 pytuger joined 03:51 pytuger left, pytuger joined 03:53 Cabanossi left 03:55 mcmillhj left 03:56 Cabanossi joined, andrzejk_ joined 03:58 kurahaupo__ joined 04:04 mcmillhj joined 04:09 mcmillhj left 04:14 khw left 04:17 mcmillhj joined 04:21 mcmillhj left, skids left 04:27 andrzejk_ left 04:29 BenGoldberg left 04:30 mcmillhj joined 04:34 AndyDee left 04:35 mcmillhj left 04:38 geekosaur left 04:39 geekosaur joined 04:44 obfusk_ joined, obfusk left, darutoko joined 04:48 andrzejk_ joined 04:51 kurahaupo_ joined 04:53 kurahaupo__ left 05:00 mcmillhj joined 05:05 mcmillhj left 05:06 geekosaur left 05:07 geekosaur joined 05:09 labster left 05:10 dct joined 05:16 dct left 05:19 mcmillhj joined 05:24 mcmillhj left 05:26 Tonik joined 05:30 mcmillhj joined 05:34 mcmillhj left 05:38 ufobat joined 05:47 mcmillhj joined 05:48 RabidGravy joined 05:51 lowbro joined, lowbro left, lowbro joined 05:52 mcmillhj left 06:01 xinming_ joined 06:02 labster joined 06:05 xinming left 06:10 mcmillhj joined 06:14 mcmillhj left 06:19 movl left 06:22 wamba left 06:26 kurahaupo_ left, domidumont joined, kurahaupo__ joined
andrzejku hi guys 06:32
06:32 domidumont left
andrzejku do you think Perl6 is good for machine learning? 06:32
or it is too slow
06:32 domidumont joined
moritz I think you want a core written in C for machine learning 06:32
even if you do it in a faster language such as python
moritz wonders how well tensorflow works with Inline::Python 06:33
andrzejku moritz: ye what I saw many machine learning and ai courses show things in python
anyway I hate C :D 06:34
this is too primitive language
06:35 salv0 joined 06:40 Cabanossi left
samcv ;_; C is not that bad. but for machine learning sounds like a lot of work. idk do you mean writing machine learning code. or writing the whole machine learning framework... 06:40
very different those two things
06:41 Cabanossi joined 06:42 mcmillhj joined
andrzejku samcv: I want to start from code 06:42
just to play 06:43
Voldenet hmm, C is not that different from python 06:45
but memory allocation in C is terrible
andrzejku I am more C++ developer 06:46
however I am bad developer and alzy :P
and what I need to say writing all these mem****
tadzik metacpan.org/pod/AI::NaiveBayes should be an easy port to p6 if you want to toy around
andrzejku and size* 06:47
it idiot thing
06:47 eroux joined, mcmillhj left
Voldenet Frodo: "Speak 'segfault' and exit. What's the linux word for segfault?" Gandalf: "Malloc!" 06:48
tadzik %)
kurahaupo__ andrzejk_: you're looking at it as if it were a dialect of C++. A better perspective would be to consider it a smarter version of assembly language 06:50
tadzik just treat each * as another layer in the stack of map<string, vector<map<string, int>>> ;) 06:51
Voldenet kurahaupo__: C can be a wonderful language, but one would need to write a lot of low-level stuff to start high-level stuff
kurahaupo__ Voldenet: agreed
Voldenet asm can't be a wonderful language
ever
you can't get very comfy with its features or syntax
it's the language that can't really help you anyhow, but is ready to punch you in the face in case you're doing something wrong 06:53
06:54 kurahaupo__ is now known as kurahaupo 06:58 imcsk8 joined, imcsk8_ left, mcmillhj joined 07:03 mcmillhj left 07:09 Cabanossi left 07:11 Cabanossi joined 07:16 mcmillhj joined 07:17 wamba joined 07:21 mcmillhj left
Voldenet a propos C, is there any option to do this with perl6? perldoc.perl.org/perlembed.html#Add...-C-program 07:28
moritz there must be, because somehow Inline::Perl6 (Perl 5 module) works 07:29
Voldenet st.aticpan.org/source/NINE/Inline-...8/Perl6.xs 07:32
golden egg found ;)
07:32 domidumont left 07:33 kybr left 07:34 domidumont joined 07:35 domidumont left 07:36 mcmillhj joined, rindolf joined, domidumont joined 07:39 Cabanossi left 07:41 mcmillhj left, Cabanossi joined 07:42 cpage_ left
El_Che tha way my shell tells me I've done too much perl6: "No command 'perl5' found, did you mean: ..." 07:42
masak at that point, I'd set up an alias or a symlink 07:43
07:45 kyan left 07:46 Tonik left 07:47 g4 joined 07:52 mcmillhj joined
Voldenet El_Che: haha, happens for me too 07:53
07:57 darutoko left, mcmillhj left 07:59 ChoHag joined 08:05 kurahaupo left, kurahaupo__ joined, kurahaupo__ left 08:06 kurahaupo__ joined, kurahaupo__ left 08:08 Cabanossi left 08:11 Cabanossi joined, mcmillhj joined 08:15 espadrine_ joined 08:16 mcmillhj left 08:17 ufobat left 08:19 zakharyas joined 08:20 ryan_ joined 08:22 mcmillhj joined 08:25 [particle] joined, cpage_ joined, parv joined 08:27 mcmillhj left
timotimo moritz: i was under the impression that no serious machine learning was done off of the gpu, and so C isn't what you want at all? 08:28
08:29 espadrine_ left
moritz timotimo: you really want something with pluggable backends, so that you can test on your dev machine, and then run on GPUs in production 08:30
timotimo your dev machine doesn't have a gpu? :)
jast depends very much on the structure of your problem. if you need to process a lot of data continuously, for instance, shoveling it between CPU and GPU adds a lot of overhead, plus not all classes of algorithms are easily vectorized
08:31 labster left, ufobat joined
jast for the same reason, it can make sense to do pre-processing on the CPU and push things through your model on the GPU, to avoid one round trip 08:31
timotimo is OpenCL-on-CPU common for things that don't benefit a lot from the gpu? 08:33
jast I'm not really up-to-date on the performance side of things. I guess the only reason to do that is to simplify your code, do everything using the same API 08:34
timotimo mhm
except nobody uses OpenCL and everybody uses cuda for some reason
jast don't ask me why 08:36
timotimo they rushed to market and have some extra tools or something
jast if I wanted extra tools I'd use Java
08:43 robertle left
gfldex anybody here who managed to use api.travis-ci.org to sync the repo list with github? 08:47
08:47 nowan_ joined
timotimo and QSharedPointer 08:47
oh, wrong window
08:48 vendethiel joined 08:49 nowan left, Sound joined, Sound is now known as Guest71312 08:52 mcmillhj joined 08:53 Guest71312 left 08:57 mcmillhj left 09:03 wamba left 09:05 bjz joined 09:08 wamba joined, Cabanossi left 09:11 Cabanossi joined 09:13 xtreak left, xtreak joined 09:18 xtreak left 09:20 mcmillhj joined 09:22 AlexDaniel left 09:25 mcmillhj left 09:35 mcmillhj joined 09:41 mcmillhj left 09:42 lowbro left 09:47 parv left 09:49 pistacchio joined 09:50 xtreak joined 09:51 gdonald left, gdonald joined 09:52 mcmillhj joined
pistacchio hi, i'm having trouble with grammars. how do i match "any text till an optional space optionally followed by any text till a new line?" this is what i'm trying: glot.io/snippets/eohyruz8wd 09:53
09:57 mcmillhj left 10:06 mcmillhj joined 10:07 ufobat left 10:09 Cabanossi left
moritz \N*\n 10:09
or rather \N* $$ 10:10
jnthn I think the problem is that your token doesn't seem to be matching the space anywhere
10:11 mcmillhj left
jnthn ' '? would be an optional space 10:11
moritz unless there's a constraint somewhere that the "any text" may not contain spaces
10:11 Cabanossi joined
pistacchio so, why does the space require being specified between path and regex but not between recursive and path? 10:13
also
{ ^^ <recursive>? <path> (\s+ <rgx>)? }
this
still greps "regex" as part of path
jnthn Because path is \N+ which means "not a newline" 10:15
Try \S+ instead
10:16 mcmillhj joined
pistacchio now i get Nil 10:18
glot.io/snippets/eohzibv3zh
10:21 mcmillhj left
jnthn 'cus you aren't matching the space after the * at the start, and before the path 10:22
Try a \s+ after the <recursive>?
Or \s* maybe, dunno how the output looks :)
uh, input
(In the general case, I mean)
Also, you may find a module like Grammar::Tracer useful in helping figure out where grammars fail to match 10:23
10:32 ufobat joined 10:38 Cabanossi left 10:41 Cabanossi joined 10:46 mcmillhj joined
Ulti with the version pragmas if you give nothing at all is the implication latest language feature set? 10:50
at least latest stable
jnthn Ulti: Yes
10:51 mcmillhj left, lowbro joined, lowbro left, lowbro joined
Ulti sighs relief from imagining Perl 5 feature hell 10:51
which is increasingly less hellish in fairness 10:52
10:53 Voldenet left
Ulti things moving from experimental or getting properly thrown away is kind of great in the last couple of releases 10:53
10:56 bjz_ joined 10:57 wamba left 10:58 Voldenet joined, Voldenet left, Voldenet joined, mcmillhj joined, bjz left 11:03 mcmillhj left 11:08 mcmillhj joined 11:12 ryan_ left 11:13 mcmillhj left 11:17 ryan_ joined 11:21 xtreak left 11:24 xtreak_ joined, xtreak_ left, ChoHag left 11:25 mcmillhj joined 11:30 mcmillhj left 11:37 domidumont left 11:38 bjz joined, domidumont joined 11:39 bjz_ left 11:41 pmurias joined 11:42 domidumont left 11:43 domidumont joined 11:44 domidumont left, domidumont joined 11:46 pistacchio left
Geth ecosystem: 7ojo++ created pull request #313:
Add Platform to ecosystem
11:46
ecosystem: a678423ed2 | (Jarkko Haapalainen)++ | META.list
Add Platform to ecosystem

See github.com/7ojo/perl6-platform
11:47
ecosystem: d020ee2150 | (Carl Mäsak)++ | META.list
Merge pull request #313 from 7ojo/patch-1

Add Platform to ecosystem
11:53 kybr joined 11:56 mcmillhj joined 11:57 raschipi joined 12:00 ryan_ left 12:01 mcmillhj left, ChoHag joined 12:29 mcmillhj joined, wamba joined 12:30 obfusk joined 12:31 obfusk_ left 12:34 mcmillhj left 12:35 AndyDee joined 12:49 mcmillhj joined 12:53 Cabanossi left 12:56 Cabanossi joined 13:00 bjz left 13:03 araraloren joined 13:07 kurahaupo joined 13:10 bjz joined
araraloren How can I access argv[0] passed by C function execlp (man 3 execlp), $*PROGRAM-NAME is not what i want, seems like it always script name. 13:14
jnthn Maybe $*EXECUTABLE 13:16
(If you're not expecting the script name, I'm guessing you are after the Perl 6 interpreter name?) 13:17
raschipi "man perl6" doesn't have enough hype. 13:18
13:19 wamba left 13:27 adu joined, Ven joined, Ven is now known as Guest87256
araraloren jnthn, No, It is the first argument as argv[0] in **C** ( int main(int argc, char* argv[]) ), I use execlp('p6script-path', 'argv[0]', ..., NULL) execute p6 script 13:31
I print $*PROGRAM-NAME out, it always script name, not "argv[0]" which passed by use execlp 13:32
13:33 Guest87256 left, Ven_ joined 13:35 Ven_ left 13:37 skids joined, sena_kun joined
jnthn araraloren: If it's not one of those two, then no idea. perl6 is actually a shell script that invokes the VM; I note in that script it does my $tag = "Upload $!ids.pull-one()"; $!output.debug($tag, "Starting $local-path -> $user\@$host:$remote-path"); 13:38
oops
I note in that script it does --execname="$0" 13:39
And I think that's what ends up in $*EXECUTABLE
13:42 kb__ joined
araraloren jnthn, A little understand, and I also tried python and perl5, no idea get that value. 13:49
Fortunately, we almostly not need that
raschipi What do expect to find? 13:52
mls seems like there's no way to get that value from the shell
timotimo when you execlp, is there even a shell involved? 13:53
mls yes, that little /usr/bin/perl6 shell script
the problem is that $0 in the shell is not argv[0], but set to the name of the script 13:54
i.e. it's always /usr/bin/perl6 or something like that 13:55
13:55 awwaiid joined
jnthn Aha 13:56
So short of us moving away from having the shell script, there's probably not a fix?
araraloren $*PORGRAM-NAME is $0 in perl5
13:56 bjz left
mls I don't think there is. I glanced through the bash source, and I don't think there's a way to access argv[0] 13:57
13:57 kb__ left
huf what's $0? 13:58
araraloren It's no idea, maybe ..
raschipi The irst word in the system call that executes the program.
huf oh, $0 is compromised :)
raschipi first*
pmurias if EN QUAD is canonicall equivalent to EN SPACE MoarVM just turns it into that? 14:00
timotimo i believe so? 14:03
i know you can't trip up perl6ers with the greek question mark
mls hmm, I can't access argv[0] from perl5 and python as well. They all clobber it with the script name 14:12
so perl6 is not that different ;)
raschipi I think this i an XY problem, to be honest. 14:13
timotimo feels a little bit like that 14:14
14:16 llfourn_ left 14:19 ChoHag left
[Coke] pmurias: if you look up GREEK QUESTION MARK - whatever flag that has that turns it into a semicolon, that should work for other chars too 14:19
14:19 llfourn joined
[Coke] m: "\c[EN QUAD]".uninames.say 14:20
camelia (EN SPACE)
14:20 AlexDaniel joined 14:22 ChoHag joined
[Coke] ... is there a way to get the uninames from a codepoint? 14:23
timotimo of course
m: say 0xff12.uniname
camelia FULLWIDTH DIGIT TWO
[Coke] (is there ever a way to get GREEK QUESTION MARK back as the response? Not with a Str..) 14:24
timotimo: danke.
timotimo there were speculations about Str objects that don't have NFG in them 14:25
and by speculation i don't mean back when we were writing the specs
14:25 itaipu joined
pmurias m: "\c[GREEK QUESTION MARK]".uninames.say 14:25
camelia (SEMICOLON)
14:26 lowbro left
mls (to wrap up the $0 issue: actually it's the kernel that drops argv[0] for #! scripts.) 14:28
[Coke] m: "\c[HEBREW LIGATURE YIDDISH YOD YOD PATAH]".uninames.say
camelia (HEBREW LIGATURE YIDDISH DOUBLE YOD HEBREW POINT PATAH)
14:29 kurahaupo__ joined 14:30 andrzejku left 14:31 wamba joined 14:32 g4 left 14:39 pmurias left 14:40 domidumont left
raschipi When we have pre-compiled binaries, we can add a binfmt in linux and have it not use the #! mechanism to execute Moar bytecode, even though it's not in ELF format. The same is usually already configured for the JVM in distros. 14:43
ilmari m: my $¢ = 42 14:44
camelia Potential difficulties:
Redeclaration of symbol '$¢'
at <tmp>:1
------> 3my $¢7⏏5 = 42
ilmari m: say $¢ = 42 14:45
camelia 42
ilmari huh
raschipi m: say $¢.WHAT 14:46
camelia Nil
ilmari m: say $¥ = 42
camelia 5===SORRY!5=== Error while compiling <tmp>
Name must begin with alphabetic character
at <tmp>:1
------> 3say $7⏏5¥ = 42
expecting any of:
infix
infix stopper
postfix
statement end
s…
raschipi m: say dd $¢
camelia Nil $¢ = Nil
Nil
ilmari ¢ is just as litte an alphabetic as ¥ is (they're both Symbol, Currency) 14:47
raschipi The first one is apparently defined by the interpreter, it has no problems defining puntuation variables. 14:48
ilmari oh, + '$¢' in grammars now refers to the current cursor 14:50
timotimo yup
that's a changelog entry? must be from 2013 or earlier
ilmari since 2015.09
timotimo wow, that late?
ilmari the docs.perl6.org search doesn't find it 14:51
14:52 wamba left
timotimo time for a doc ticket 14:54
14:55 buggable left
[Coke] I think someone just recently opened a ticket for $¢ 14:58
timotimo a doc ticket, i assume?
14:59 buggable joined, ChanServ sets mode: +v buggable 15:00 buggable left 15:01 buggable joined, ChanServ sets mode: +v buggable 15:02 buggable left, buggable joined, ChanServ sets mode: +v buggable
[Coke] yes 15:02
github.com/perl6/doc/issues/1262 15:03
15:03 buggable left 15:04 buggable joined, ChanServ sets mode: +v buggable, buggable left 15:06 khw joined
raschipi I think the most surprising thing abou P6 is this: my @a := 1 but Positional; 15:08
15:09 Sound joined, Sound is now known as Guest15042 15:12 obfusk left 15:18 buggable joined, ChanServ sets mode: +v buggable 15:25 ChoHag left 15:34 gdonald left, gdonald joined 15:37 Possum left, nhywyll joined, Possum joined 15:40 Cabanossi left 15:42 Cabanossi joined 15:46 Guest15042 left 15:48 Sound_ joined 15:55 mcmillhj left 15:56 pytuger left 15:57 mcmillhj joined 16:01 mcmillhj left 16:05 zakharyas left 16:09 perlpilot left 16:10 mcmillhj joined 16:11 araraloren left 16:14 robertle joined 16:15 sufrostico left, pytuger joined, pytuger left, pytuger joined, wamba joined, mcmillhj left
gfldex it seams that a .tap on an Proc::Async is sensitive to malformed utf-8. Is there a way to tell it not to? 16:16
a try inside the tapping block does not catch it
:bin does not help 16:20
16:21 sufrostico joined
gfldex :enc<utf8-c8> segfaults 16:25
:enc<latin-1> seams to work
16:25 andrei9999 joined
andrei9999 hi, I am a beginner. I want to learn the use of ARGFILES 16:26
raschipi gfldex: I'm curious to know if it's doing some kind of normalization on the stream? Is it stuffing things into a Str or giving you a Buf to deal with? 16:27
andrei9999 when I say my $x = $*ARGFILES.path
16:27 ChoHag joined
andrei9999 the compiler refuses, says No such method 'IO' for invocant of type 'Any' 16:27
gfldex i'm using `$s.stdout.lines.tap: { .say }` so it must parse as Str to get the lines. 16:28
andrei9999 but according to the manual ARGFILES extends IO::Handle which must have method path() ...
16:28 mcmillhj joined
raschipi gfldex: There's two places it could be failing due to malformed UTF-8: when it receives the Buf or when it normalizes it into the Str 16:29
gfldex andrei9999: with an empty $*ARGFILES it defaults to Any, not an empty list of IO::Handle 16:31
andrei9999: try $*ARGFILES.?path
16:32 ChoHag left 16:33 mcmillhj left
gfldex raschipi: if you want to toy with it you need a malformed filename and the following code github.com/gfldex/perl6-proc-async...e/basic.p6 16:33
16:33 ChoHag joined 16:34 ChoHag left
raschipi I was toying with it the other day, using this file: www.cl.cam.ac.uk/~mgk25/ucs/example...8-test.txt 16:37
16:39 Sound_ left 16:40 perlpilot joined 16:41 cpage_ left 16:44 Zoffix joined, mcmillhj joined
Zoffix andrei9999: ARGFILES is unpolished ATM. Ignore that it inherits from IO::Path, it does it poorly. It doesn't set `.path`. You can what files were loaded by dumping @*ARGS 16:46
andrei9999: eof, get, lines, slurp, nl-in on is it all you can reliably use on it ATM and it'll very likely be replaced with IO::Cat in the next language version that properly inherits from IO::Handle with methods that don't make sense not being there. 16:48
16:49 mcmillhj left 16:50 sena_kun left
Zoffix IO::Handle.lock() is not part of the language ATM and the Int:D argument from Rakudo's impl. is going await. Don't use it. 16:50
andrei9999 What does abbreviation ATM mean? 16:52
Zoffix andrei9999: At The Moment 16:53
raschipi Automated teller machine
andrei9999 Thank you, I think I got it. What is the nearest analogue of Perl5 perl -pi.bak -e'...' filename.txt ? 16:54
Zoffix andrei9999: that "moment" being until the end of April, with the polished version available to be available under v6.d.PREVIEW afterwards (until v6.d release, which is when it'll be the default)
andrei9999: don't think we have the -i switch yet. I'd write it as perl6 -e 'for @*ARGS { "$_.bak".IO.spurt: .IO.slurp; .IO.spurt: .IO.slurp.subst(/^^...$$/, "blah") }' filename.txt 16:56
+ :g in .subst :) 16:57
andrei9999 I understand, thanks so much!
Zoffix andrei9999: oh, no need for slurp/spurt we have copy :)
andrei9999 copy $_ $_.bak ?
Zoffix andrei9999: don't think we have the -i switch yet. I'd write it as perl6 -e 'for @*ARGS».IO { .copy: "$_.bak"; .spurt: .slurp.subst(:g, /^^...$$/, "blah") }' filename.txt 16:58
^ that
andrei9999 beautiful! 16:59
yes, it works, thank you 17:01
Zoffix Cool.
One day, we'll add -i so it'll be shorter :)
Zoffix part
17:02 Zoffix left, mcmillhj joined
raschipi Zoffix IRC->twitter bridge is working. 17:03
17:07 mcmillhj left 17:10 Cabanossi left, eroux left 17:11 Cabanossi joined 17:13 nightfrog is now known as culb, sena_kun joined 17:16 nhywyll left 17:18 mcmillhj joined 17:20 culb is now known as nightfrog 17:31 wamba left 17:34 ufobat left 17:42 zakharyas joined
tbrowder hey, #perl6 17:45
raschipi hi tbrowder 17:48
tbrowder i just pushed a new mod to github using the .travis.yml i use for other modules and got a problem: "- panda installdeps ." didn't install the test-depends "File::Temp", i had to add "- panda install File::Temp". can we now use zef without extra install steps? if so, hopefully it will do the "right thing"
hello, raschipi 17:49
17:50 TeamBlast left
gfldex tbrowder: this works for me github.com/gfldex/perl6-proc-async...travis.yml 17:50
17:51 dct joined
tbrowder gfldex: does it install all your dependencies including test-depends? 17:52
17:53 TeamBlast joined
tbrowder i'll try it anyhow--glad to see panda out of the travis requirements 17:53
18:01 ufobat joined 18:05 ggoebel left 18:10 gdonald left, gdonald joined
tbrowder gfldex: thanks, works for me, too. however, it looks like there was some test duplication since i see the module in question being tested twice. i'm trying a slightly different approach after looking at the zef options--will report. 18:22
raschipi People with Autism, I want to send a message to you: you are appeciated and the world is better because of oyu. 18:24
18:31 espadrine_ joined
geekosaur appreciated 18:36
18:37 giraffe joined 18:40 Cabanossi left 18:41 lostinfog joined, Cabanossi joined 18:48 AlexDani` joined, zakharyas left 18:51 AlexDaniel left 18:54 AlexDani` is now known as AlexDaniel 19:03 imcsk8 left 19:12 imcsk8 joined 19:14 itaipu left 19:19 obfusk joined 19:39 Cabanossi left 19:41 Cabanossi joined, yqt joined 19:43 pytuger left 19:45 g0d355__ joined
tbrowder gfldex: aha, i'm correct. here is my latest .travis.yml: <github.com/tbrowder/Proc-More-Perl...is.yml> 19:48
19:50 khw left 19:51 cpage_ joined
tbrowder the difference is, as far as i can tell, is that "- zef install ." does a normal installation which fully tests the module, but then the master build script then runs the command "PERL6LIB=lib prove -v -r --exec=perl6 t/" which runs the module's tests again. when I instead use "- zef install --depsonly ." zef quits after testing and installing only the 19:54
module's dependencies, so the module's tests get run only at the end buy the build script, thus saving a minuscule amount of time and energy.
s/buy/by/
19:56 andrzejk_ left
gfldex tbrowder: please note that installing from the ecosystem is no the same as `git pull; zef install .` as I had to learn the hard way. 19:57
tbrowder: i solved this problem and bitrot testing as described here gfldex.wordpress.com/2017/01/20/once-a-week/ 19:58
20:00 mcmillhj left
gfldex i should add a meta.t 20:01
tbrowder okay, but i don't use the Build command, so i guess my work flow is different. i did see yr blog but didn't look very closely because i don't use build or cron. I do all development on my master branch and try to keep the travis build passing. i make separate releases that are used by the ecosystem and zef, and I ensure they are passing before release. 20:06
@ugexe suggested that and it has worked well. no regular user should find my tests not working if using zef with the ecosystem. what i haven't done is add a warning to my all my READMEs NOT to clone my module repos unless you want to help development. normal users should just "zef install Tbrowders::ModuleX".
s/my all my/all my/ 20:08
gfldex you can tell a travis cron job to build a given branch, what might help to spot bitrot
20:09 Cabanossi left
tbrowder well, as i said i am always on the master branch and ensure that last commit passes before cutting a release. only releases are put in the ecosystem, so they are insulated from continuing development until the next release. 20:10
20:11 Cabanossi joined
tbrowder so there should be no bitrot on a release, just lurking bugs which the user should report if he finds one. 20:11
gfldex travis is testing with bleeding rakudo. Bitrot rare originates from the code it hits. 20:15
what also means we should test against latest star as well 20:16
andrei9999 About string quoting. The Japanese angular brackets #xff62 and #xff63 --- what exactly do they do? It seems that they transform ' into the word quote . is that right? how to insert absolutely literally ? 20:24
gfldex andrei9999: see docs.perl6.org/language/quoting#Li...strings:_Q 20:25
andrei9999 Sorry, that was my confusion... 20:31
20:32 gdonald left 20:33 gdonald joined
andrei9999 In fact, it works perfectly 20:33
20:34 Tonik joined 20:42 yqt left
Geth doc: 8330d72243 | (Tom Browder)++ | doc/Language/io.pod6
add info on other file routines

also add simple example and links to more detailed docs
20:44
tbrowder gfldex: you're right of course, i didn't think of changes in rakudo! i'll go study yr blog more closely. 20:47
20:52 dct left 20:55 Cabanossi left 20:56 Cabanossi joined 20:57 skids left 21:02 ufobat left, bjz joined 21:06 raschipi left 21:08 robertle left, rindolf left
Geth doc: 8ae1298845 | (Tom Browder)++ | doc/Language/io.pod6
move file copy. etc., to a more appropriate place
21:12
21:20 RabidGravy left
Geth doc: 2e7b007127 | (Tom Browder)++ | doc/Language/io.pod6
use file-consistent heading format
21:23
21:37 cpage_ left
Geth doc: a01a18e4d6 | (Tom Browder)++ | doc/Language/io.pod6
move copy chunk again, tidy comments
21:38
21:39 cdg joined 21:42 rpburkholder joined 21:44 bjz left 21:50 Tonik left
gfldex ugexe: i wonder if zef should honor .gitignore while installing binaries 21:54
22:00 sena_kun left 22:02 cdg left 22:08 alimon left 22:13 tyil left, tyil joined 22:17 travis-ci joined
travis-ci Doc build passed. Tom Browder 'move copy chunk again, tidy comments' 22:17
travis-ci.org/perl6/doc/builds/217353909 github.com/perl6/doc/compare/2e7b0...1a18e4d6e6
22:17 travis-ci left 22:18 maxp_ joined
maxp_ A very simple question... The extension of perl6 program must be .pl, .p6 or .pl6? Because in the examples and docs there are 3 different extensions. 22:23
And for modules? .pm or .pm6?
AlexDaniel maxp_: .pl and .pm are perhaps not the best choice because perl5 is using them 22:24
22:24 pytuger joined
AlexDaniel maxp_: .p6 and .pm6 works fine, .pl6 is not bad also 22:24
22:25 lostinfog left
AlexDaniel maxp_: there was a discussion about this here: github.com/perl6/doc/issues/778 22:26
22:27 espadrine_ left
maxp_ ok thank you very much 22:27
ugexe gfldex: .gitignore is not part of a perl6 distribution 22:29
its not really difficult to do with a regular distribution object: 22:32
my $dist = Distribution::Path.new($*CWD) but role :: { method meta { my %meta = callsame(); %meta<files> = grep { $_.key !~~ /\.pm6$/ }, %meta<files>.hash; %meta; }; }; say $dist.meta<files>
gfldex ugexe: I ended up with a .swp in a /bin/ and that should not go there. We don't got that problem with modules because those are listed in the META6.info. But for binaries we do a fetch all. 22:34
ugexe you could end up with a .swp for non-git directories too though 22:41
22:44 bjz joined 22:48 wamba joined 22:54 Cabanossi left 22:56 Cabanossi joined 23:00 cyphase joined
ugexe if bin/ could only contain perl6 code it could give us a much better filter at least, as I suppose we could just try to compile each file in bin/ 23:02
gfldex a .swp would most likely compile :) 23:03
timotimo gfldex: i'm surprised it'd explode with encoding trouble; what version of rakudo and moarvm are you on for that, and can you paste code that reproduces it? like, can i just Proc::Async a cat on /dev/urandom or something?
ugexe heh good point
gfldex timotimo: i'm using bleeding. I need to think about a way to reproduce as the invalid utf-8. It's in a filename (that I keep around to trigger such bugs). 23:05
23:05 labster joined
gfldex tar tends to be helpful when it comes to screw up file systems 23:06
I'm required to be at work tomorrow but likely wont have much work to do. Plenty of time to think.
timotimo understood 23:09
i'll head towards bed now, seeya!
23:18 maxp_ left 23:27 BenGoldberg joined, skids joined 23:32 cyphase left 23:36 cpage_ joined 23:37 cyphase joined 23:39 Cabanossi left 23:41 Cabanossi joined 23:47 cyphase left
AlexDaniel 23:50
yes, writing a small web scraper in perl 6 was a horrible idea… 23:51
BenGoldberg Why? 23:52
23:52 cyphase joined
AlexDaniel oh wait, maybe if I run(‘curl’, …) instead of using HTTP::UserAgent it will stop leaking 20MB per fetched page 23:52
BenGoldberg: I've been banging my head against RT #131003 for a while, then I decided to switch to python-gumbo (through Inline::Python), and that works fine, except that just downloading something leaks memory (without even parsing) 23:54
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=131003
AlexDaniel if run(‘curl’, …) doesn't fix it so that I can go through least 200 pages, I give up 23:55
at
or… I don't know… might save the state and rerun the whole thing. Who cares about added startup delay, at least it will finish my thing 23:57
23:59 cyphase left