Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-10-21

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:03 pilne joined #perl6
00:05 Zoffix joined #perl6
00:13 * Zoffix listens to a few songs, then ques https://www.youtube.com/watch?v=IfU_BLec1-o to clear the ears -_-
00:18 Geth ¦ doc: 57f7680f43 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Mu.pod6
00:18 Geth ¦ doc: Fix broken links in text
00:18 Geth ¦ doc:
00:18 Geth ¦ doc: Fixes #1592
00:18 Geth ¦ doc: review: https://github.com/perl6/doc/commit/57f7680f43
00:18 synopsebot Link: https://doc.perl6.org/type/Mu
00:19 cdg joined #perl6
00:30 Geth ¦ doc: 560d20ef5a | (Zoffix Znet)++ | doc/Type/Proc/Async.pod6
00:30 Geth ¦ doc: Document Proc::Async.Supply
00:30 Geth ¦ doc:
00:30 Geth ¦ doc: Fixes #1605
00:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/560d20ef5a
00:30 synopsebot Link: https://doc.perl6.org/type/Proc/Async
00:30 TEttinger timotimo: make sure to listen to mouth sounds and mouth moods too
00:31 timotimo TEttinger: already have
00:31 TEttinger rollercloser is excellent
00:31 timotimo rollercloser didn't connect with me at all
00:32 TEttinger wndrwll also is bizarre and I like a lot
00:32 timotimo yes, i like that one
00:32 TEttinger oh, man. friends
00:33 timotimo friends and best are both fantastic
00:33 timotimo i love any song that samples down with the sickness
00:37 timotimo i wanna lie down to sleep but the cat is in the way
00:42 Cabanossi joined #perl6
00:59 itaipu joined #perl6
01:00 Zoffix ugh, crap. Merged wrong tickets together
01:01 Zoffix "An incorrectly merged ticket cannot be unmerged via the user interface, but all is not lost! This is RT, all is never lost! It's never recommended to work directly on your RT database, but in this instance that is the only way to recover from this mistake. If you're in any way unsure of what you're doing, don't do it."
01:02 Zoffix Greeeeat
01:06 nadim joined #perl6
01:07 Zoffix Stupid RT
01:09 Zoffix And after merging, it orders all the replies by original dates, so it's a right mess
01:19 AlexDaniel` Zoffix: what I realized at some point is that merging is never a good idea. Better link the tickets
01:20 Geth ¦ doc: 39d2b97a5c | (Zoffix Znet)++ | doc/Language/operators.pod6
01:20 synopsebot Link: https://doc.perl6.org/language/operators
01:20 Geth ¦ doc: Get smartmatch into index
01:20 Geth ¦ doc:
01:20 Geth ¦ doc: Fixes #1587
01:20 Geth ¦ doc: review: https://github.com/perl6/doc/commit/39d2b97a5c
01:20 AlexDaniel` “Refers to” and “Referred to by”
01:20 Zoffix But then we have several tickets all about the same thing
01:20 geekosaur merging is sometimes a good idea, specifically when someone replies in such a way as to create a new ticket instead of adding to the old
01:20 AlexDaniel` that's ok, once one is resolved, someone will easily close all of them :)
01:26 cdg joined #perl6
01:32 bitrauser joined #perl6
01:32 BenGoldberg joined #perl6
01:56 ilbot3 joined #perl6
01:56 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!
02:11 astj joined #perl6
02:12 astj joined #perl6
02:15 mr-foobar joined #perl6
02:19 astj joined #perl6
02:25 noganex joined #perl6
02:33 cdg joined #perl6
02:34 gdonald joined #perl6
02:35 astj joined #perl6
02:40 geekosaur joined #perl6
02:58 ryn1x joined #perl6
03:05 gdonald joined #perl6
03:16 klapperl joined #perl6
03:41 Cabanossi joined #perl6
03:44 astj joined #perl6
03:49 geekosaur joined #perl6
03:57 ryn1x joined #perl6
04:06 gdonald joined #perl6
04:11 Cabanossi joined #perl6
04:25 AlexDani` joined #perl6
04:28 geekosaur joined #perl6
04:34 coverable6 joined #perl6
04:34 bloatable6 joined #perl6
04:34 nativecallable6 joined #perl6
04:34 quotable6 joined #perl6
04:34 bisectable6 joined #perl6
04:34 committable6 joined #perl6
04:34 evalable6 joined #perl6
04:34 releasable6 joined #perl6
04:34 greppable6 joined #perl6
04:34 unicodable6 joined #perl6
04:34 statisfiable6 joined #perl6
04:34 benchable6 joined #perl6
04:34 squashable6 joined #perl6
04:38 evalable6 joined #perl6
04:38 bisectable6 joined #perl6
04:38 unicodable6 joined #perl6
04:38 committable6 joined #perl6
04:38 benchable6 joined #perl6
04:38 squashable6 joined #perl6
04:41 releasable6 joined #perl6
04:42 wander ping
04:48 ryn1x joined #perl6
04:54 bloatable6 joined #perl6
04:54 quotable6 joined #perl6
04:54 nativecallable6 joined #perl6
04:54 coverable6 joined #perl6
04:54 statisfiable6 joined #perl6
04:54 greppable6 joined #perl6
05:14 bloatable6 joined #perl6
05:14 evalable6 joined #perl6
05:14 committable6 joined #perl6
05:14 coverable6 joined #perl6
05:14 greppable6 joined #perl6
05:14 quotable6 joined #perl6
05:14 nativecallable6 joined #perl6
05:14 benchable6 joined #perl6
05:14 bisectable6 joined #perl6
05:14 unicodable6 joined #perl6
05:14 releasable6 joined #perl6
05:14 squashable6 joined #perl6
05:14 statisfiable6 joined #perl6
05:20 cpage_ joined #perl6
05:21 cpage_ joined #perl6
05:33 bwisti joined #perl6
05:52 wamba joined #perl6
05:57 Cabanossi joined #perl6
06:11 xtreak joined #perl6
06:42 Cabanossi joined #perl6
06:57 hchienjo joined #perl6
07:06 sena_kun joined #perl6
07:08 domidumont joined #perl6
07:16 cdg joined #perl6
07:17 domidumont joined #perl6
07:19 wander m: grammar G { rule TOP { '(' [<var-decl>+ % ',']? ')' } rule var-decl { 'int' \w+ } } say G.parse("(int a, int b)");
07:19 camelia rakudo-moar 7cf5ce7ef: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Strange text after block (missing semicolon or comma?)␤at <tmp>:1␤------> 3ule TOP { '(' [<var-decl>+ % ',']? ')' }7⏏5 rule var-decl { 'int' \w+ } } say G.par␤    expecting any of:␤       …»
07:19 wander m: grammar G { rule TOP { '(' [<var-decl>+ % ',']? ')' }; rule var-decl { 'int' \w+ } }; say G.parse("(int a, int b)");
07:19 camelia rakudo-moar 7cf5ce7ef: OUTPUT: «Nil␤»
07:21 espadrine joined #perl6
07:22 wander how to get this sentence matched, it seems non-backtrack that causes unmatch
07:22 wander maybe add a new rule 'parameter-list'
07:26 geekosaur m: grammar G { rule TOP { '(' [<var-decl>* % ','] ')' }; rule var-decl { 'int' \w+ } }; say G.parse("(int a,int b)"); # need to gobble a space somewhere still
07:26 camelia rakudo-moar 7cf5ce7ef: OUTPUT: «「(int a,int b)」␤ var-decl => 「int a」␤ var-decl => 「int b」␤»
07:28 wander k
07:29 andrzejku joined #perl6
07:34 nadim joined #perl6
07:34 wander grammar G { rule TOP { '(' [<var-decl>* % ','] ')' }; rule var-decl { <.ws> 'int' \w+ } }; say G.parse("(int a, int b)");
07:35 wander m: grammar G { rule TOP { '(' [<var-decl>* % ','] ')' }; rule var-decl { <.ws> 'int' \w+ } }; say G.parse("(int a, int b)");
07:35 camelia rakudo-moar 7cf5ce7ef: OUTPUT: «「(int a, int b)」␤ var-decl => 「int a」␤ var-decl => 「 int b」␤»
07:35 wander dirty solution
07:43 flatwhite joined #perl6
07:46 todd joined #perl6
07:47 todd question: If I write a program for a customer who pays my labor to write it, who owns the program?  Me or the customer?
07:51 TEttinger the NSA
07:52 darutoko joined #perl6
07:52 TEttinger but yeah if they pay you to write it, and it was in your employment contract that you'd be paid for writing the code, they probably own it unless they have a terrible legal team
07:52 TEttinger or unless they didn't pay you
07:56 todd I am a provate contractor.  What they payed me for fixing the problem.  They don't care how.  I was wondering if they owned any of the code I wrote to fix the problem.  The cusomer did not specifically ask me to write anything.
07:59 TEttinger if the contract doesn't say that ownership is transferred from the author (you) to the employer, then you own the scripts and such created to solve their problem
08:02 todd that is what I thought.  Thank you!
08:03 todd If he specificlly ask me to write him such and such, than it belongs to him
08:03 TEttinger mostly it depends on the contract
08:04 TEttinger but it sounds like you wrote it so you could complete the job, without the employer needing to own what you wrote
08:05 setty1 joined #perl6
08:05 |oLa| joined #perl6
08:06 todd no contract.  he jsut what his stuff to work
08:06 TEttinger ah, should be fine then
08:07 TEttinger if he comes back and wants you to work on the same thing again, he'll know you have made tools to help the job already and can maybe just run the same scripts
08:10 TEttinger it's kinda like if you employed a plumber, and he needed to quickly make some piece of wood with some nails at the end so he could pull a clog out of a pipe. he owns the wood with nails, since he made it, and unless it was your wood and your nails, he could go home with it and use it on some later day
08:11 Cabanossi joined #perl6
08:13 todd That is what I thought
08:26 robertle joined #perl6
08:41 |oLa|1 joined #perl6
08:49 andrzejku joined #perl6
08:55 todd exit
08:57 patrickz joined #perl6
09:14 patrickz Hi everyone!
09:17 patrickz I have a C function that never returns and repeatedly calls a P6 function callback to notify of RPi button pushes. Now I want to stuff those events into a Supply. The docs advise against directly using the Thread class. Is there a cleaner way to run my blocking C function and process the callbacks than using Threads directly?
09:19 andrzejku joined #perl6
09:20 ggoebel joined #perl6
09:22 aborazmeh joined #perl6
09:22 aborazmeh joined #perl6
09:22 rindolf joined #perl6
09:24 andrzejku joined #perl6
09:24 dogbert17 joined #perl6
09:26 Cabanossi joined #perl6
09:31 cdg joined #perl6
09:35 rba_ joined #perl6
09:43 llfourn joined #perl6
09:45 margeas joined #perl6
09:46 rba joined #perl6
09:52 AlexDaniel` patrickz: what about using a Channel?
09:52 AlexDaniel` patrickz: oh, and you'll need a start block
09:53 AlexDaniel` patrickz: if you can show a little bit of code I can give more precise hints :)
09:53 patrickz In a moment :-)
09:56 HoboWithAShotgun joined #perl6
10:02 rba_ joined #perl6
10:08 * HoboWithAShotgun yawns into into a new day
10:10 patrickz AlexDaniel`: https://gist.github.com/patzim/ddfd922a341b9dd4c30abc7359d37656
10:11 patrickz afk for a bit
10:13 itaipu joined #perl6
10:14 mr-fooba_ joined #perl6
10:15 AlexDaniel` patrickz: actually, I don't know if regular start {} block is going to work better (or work at all) in this particular case
10:16 HoboWithAShotgun uh, you're running Perl6 on a Pi or something?
10:16 AlexDaniel` yeah, seems so
10:17 AlexDaniel` I've been doing that in the past also, with a reasonable amount of success
10:17 rba joined #perl6
10:19 HoboWithAShotgun which way did you install it pn the pie?
10:21 AlexDaniel` installed it from debian repos
10:22 AlexDaniel` unstable usually has a fairly recent version
10:25 HoboWithAShotgun boring ;-) was hoping for a "and then, after 20,000 miles, 17 crodoliles, 2 lions and a dragon it finally compiled" story
10:26 Cabanossi joined #perl6
10:31 rba_ joined #perl6
10:42 eliasr joined #perl6
10:56 Cabanossi joined #perl6
10:59 AlexDaniel` eater: hello
11:01 AlexDaniel` eater: mind joining #moarvm for a sec? https://irclog.perlgeek.de/moarvm/2017-10-21#i_15334051
11:15 mr-foobar joined #perl6
11:31 HoboWithAShotgun bummer. no inline-java
11:36 evalable6 joined #perl6
12:03 Voldenet joined #perl6
12:03 Voldenet joined #perl6
12:15 Voldenet joined #perl6
12:15 Voldenet joined #perl6
12:17 Rawriful joined #perl6
12:20 lizmat joined #perl6
12:25 quotable6 joined #perl6
12:31 khw joined #perl6
12:32 aborazmeh joined #perl6
12:32 aborazmeh joined #perl6
12:40 Voldenet joined #perl6
12:40 Voldenet joined #perl6
12:49 quotable6 joined #perl6
12:54 llfourn joined #perl6
13:26 astj joined #perl6
13:32 Zoffix HoboWithAShotgun: well volunteered!
13:32 Zoffix left #perl6
13:32 patrickz HoboWithAShotgun: I used rakudobrew. Takes ages to compile but works well.
13:34 rba joined #perl6
13:34 HoboWithAShotgun zoffix: huh?
13:43 astj joined #perl6
13:46 rba_ joined #perl6
13:47 cdg joined #perl6
13:55 astj joined #perl6
14:01 rba joined #perl6
14:03 astj joined #perl6
14:10 pilne joined #perl6
14:16 rba_ joined #perl6
14:18 HoboWithAShotgun joined #perl6
14:31 rba joined #perl6
14:34 ryn1x joined #perl6
14:39 eater joined #perl6
14:47 rba_ joined #perl6
14:49 eater joined #perl6
14:51 COMBORICO joined #perl6
14:57 eater joined #perl6
14:57 Cabanossi joined #perl6
15:05 astj joined #perl6
15:21 fatguy joined #perl6
15:23 fatguy hello, i used dbiish, .do method but i got : No such method 'finish' for invocant of type 'Int+{DBDish::StatementHandle::IntTrue}'
15:23 yoleaux 21 Jul 2017 17:25Z <Zoffix> fatguy: Not sure if you caught it before you left, but the first FindBin equivalent I gave you was wrong. It should be `use lib $*PROGRAM.sibling: '../lib';`
15:24 moritz fatguy: looks like a bug in DBIish
15:26 Cabanossi joined #perl6
15:27 fatguy moritz: hmm.. what should i use then ? please advice
15:27 HoboWithAShotgun joined #perl6
15:33 moritz fatguy: try to find and fix the bug in DBIish?
15:33 moritz fatguy: or start by showing the code that produces the error?
15:45 ryn1x Does anyone have much experience with perl6, zef, and Inline::Perl5 on windows? I have installed a clean windows vm so that I could test code for windows machines at work and can not get "zef install Inline::Perl5" to succeed. I was able to get everything working at work so I know that it is possible but can't narrow down the issue. I have tried different combinations of mingw and visual studio build tools
15:46 ryn1x with no success.
15:47 fatguy moritz: i used prepared statement and now no problem
15:49 mr-foobar joined #perl6
15:49 virtualsue_ joined #perl6
15:49 ryn1x The not so helpful error message: https://gist.github.com/ryn1x/14e198f0e21c85c2adc0ae5fe60afc26
15:49 thunktone joined #perl6
15:50 BenGoldberg joined #perl6
15:54 stmuk ryn1x: Inline::Perl5 doesn't install on Windows due to a windows shell quoting bug
15:56 ryn1x stmuk: I was able to get to where the build failed because of the quoting bug and just went into the mentioned file and removed the lines where it was checking the version of perl and the install succeeded. I was also able to use Inling::Perl5 just fine after the install. Now I am trying to duplicate this on a windows vm and can't even get to where the build fails because of the quote error.
15:57 Cabanossi joined #perl6
16:08 MasterDuke ryn1x: what perl5 do you have installed in windows?
16:09 MasterDuke i think someone recently said they had the best success with Strawberry Perl 5
16:09 ryn1x MasterDuke: Strawberry Perl 5 v26 x64
16:10 espadrine joined #perl6
16:10 ryn1x I have the same versions of perl5 and perl6 on both the working windows box and the not-working windows vm
16:12 MasterDuke same version of windows?
16:14 ryn1x Both are windows 10 x64, but the vm is a newer build.
16:17 MasterDuke hm, i don't use Perl 5 or 6 in windows, so i've probably reached the end of my ability to help, sorry
16:18 nadim joined #perl6
16:19 ryn1x Thank for trying. Working with windows is very frustrating. I would love to find a reliable way to use Perl6 in place of python at work though.
16:20 HoboWithAShotgun joined #perl6
16:20 ugexe ryn1x: did you ever run with --debug like was suggested yesterday? this will even show you the exact command zef uses to run the Build phase
16:21 ugexe then you can cd ~/.zef/Inline-Perl5/some-random-string and run the command shown to bypass zef altogether
16:21 ryn1x ugexe: I did, I did not respond after tying it yesterday though. It did not do anything different though. I tried --verbose also. Let me try again... maybe I put the flag in the wrong order..
16:23 cdg joined #perl6
16:35 ryn1x ugexe: Got everything working! I messed up usig --debug yesterday. I now have a reproducable way to get everything I need working on windows. Thanks!
16:47 japhb Gah.  Anyone have any idea which YAML module is currently recommended?
16:48 domidumont joined #perl6
16:49 tinita japhb: you can try out https://github.com/yaml/yaml-perl6
16:49 tinita it currently depends on libyaml
16:49 sena_kun YAMLish if native perl 6 performance doesn't bother you. otherwise something with native bindigns.
16:50 tinita note that libyaml is much more correct than YAMLish though
16:51 * sena_kun noted
16:51 ryn1x Posted the steps I was able to use to get inline::perl5 working on multiple windows machines here: https://github.com/niner/Inline-Perl5/issues/105
16:51 japhb Yeah, I think native bindings is the right tool for my current job, thanks tinita
16:52 ryn1x Not sure if I should re-post this somewhere more relevant as it may affect more than just inline::perl5?
16:52 tinita japhb: I'd appreciate feedback on the API
16:53 japhb tinita: Gotcha; if I have any, I'll let you know.  :-)
16:54 tinita thanks =)
16:54 HoboWithAShotgun joined #perl6
17:01 japhb tinita: Why yaml.all.load() as opposed to say yaml.load-all()?
17:02 tinita japhb: we also wanna add load-file, and then we'd end up with load, load-all, load-file, load-file-all, dump and dump-file
17:02 japhb And does yaml.load() provide any way to load a particular doc rather than the first one?
17:02 tinita japhb: not yet
17:02 japhb tinita: or perhaps yaml.load(:all)?
17:03 tinita that would mean the same as all => 1, right?
17:03 tinita (sorry, still perl6 newbie)
17:03 japhb Also, if it's text you're parsing, than perhaps .parse rather than .load -- and then .load unambiguously means a file
17:03 japhb all => True
17:04 tinita well, the yaml loader actually combines a parser and a constructor
17:04 japhb tinita: Ah, for circular reference management?
17:04 tinita for example, yes
17:04 japhb s/circular//
17:05 b2gills Usually an `all` method turns into an All Junction
17:05 b2gills m: (1,2).all.^name.say
17:05 camelia rakudo-moar 312cac786: OUTPUT: «Junction␤»
17:05 tinita so, we're not sure on the API yet. we want it to be close to the new perl5 YAML api, which is also in the works
17:05 japhb Hmmm, I see where .parse is a bit misleading then.
17:06 tinita and in perl5, we have list context, so @docs = load() just works there
17:07 drsasa joined #perl6
17:07 japhb FWIW, the lowercase yaml. looks a little odd to my Perl 6 eyes.  I'd expect either YAML.foo() -- class methods -- or exported subs like to-json() and from-json() -- so in this case instead of yaml.load(), perhaps from-yaml().
17:08 tinita yeah, yaml is just a function, so it could be written like yaml().load
17:08 japhb What does that function do?
17:08 tinita this was ingy's idea, and I actually like it
17:09 tinita it returns an YAML::API object
17:09 astj joined #perl6
17:09 tinita on that you would then be able to do any configuration
17:10 japhb So it's equivalent to YAML::API.new() ?
17:10 tinita like JSON::PP->new->ascii->pretty->allow_nonref;
17:10 tinita yep
17:10 japhb Ah.  In Perl 6 idiom, that would be more often JSON::PP.new: :ascii, :pretty, :allow-nonref;
17:11 zakame joined #perl6
17:11 japhb So named args to the constructor
17:11 japhb Since we have very clean syntax for that.
17:11 wamba joined #perl6
17:12 tinita japhb: yeah, that would also be a possibility
17:13 japhb Still, I'd probably do: sub from-yaml(Str:D $yaml, :$all) is export { $all ?? YAML::API.new.all.load($yaml) !! YAML::API.new.load($yaml) }
17:13 tinita that would then use the default configuration?
17:14 tinita I guess in many cases the default just works
17:15 tinita the default will not instantiate any objects, so in that case you would have to use yaml(options...).load
17:17 zakharyas joined #perl6
17:17 japhb tinita: Well, you can pass those on as well.  For example:
17:18 japhb Still, I'd probably do: sub from-yaml(Str:D $yaml, :$all, |c) is export { $all ?? YAML::API.new(|c).all.load($yaml) !! YAML::API.new(|c).load($yaml) }
17:18 japhb But of course all of this falls heavily under the umbrella of TIMTOWTDI
17:19 mr-foobar joined #perl6
17:19 tinita =)
17:19 tinita I hope ingy will have time soon to look at it also
17:20 b2gills I have to go, but I would say that a really good Perl 5 interface, and a really good Perl 6 one may be quite a bit different, even if the lower level implementation is similar.
17:20 tinita b2gills: true
17:21 tinita what should be the same, are the actual options for the parser and constructor
17:21 tinita i actually have to go too...
17:22 tinita japhb: thanks
17:23 japhb tinita: No problem, anytime I'm around.  :-)
17:29 ryn1x joined #perl6
17:39 ryn1x joined #perl6
17:41 committable6 joined #perl6
17:45 evalable6 joined #perl6
17:45 bisectable6 joined #perl6
17:48 committable6 joined #perl6
17:48 ryn1x joined #perl6
17:50 pecastro joined #perl6
17:50 holli oh hey tina :) sup?
17:54 nadim joined #perl6
18:09 tinita holli!
18:13 ryn1x joined #perl6
18:18 raschipi joined #perl6
18:26 Cabanossi joined #perl6
18:26 nadim joined #perl6
18:27 ryn1x joined #perl6
18:33 smls joined #perl6
18:36 smls jnthn++ (fixing hyper/race)
18:39 smls I've often regretted not being able to use them due to their bugginess.
18:41 markldevine joined #perl6
18:41 markldevine left #perl6
18:47 ryn1x_ joined #perl6
18:56 ChoHag joined #perl6
18:59 pecastro joined #perl6
18:59 Herby_ joined #perl6
18:59 Herby_ o/
19:02 Herby_ AlexDaniel: Do you know if there is any plan to include a CSV reader/writer in to Rakudo Star?
19:03 AlexDaniel` Herby_: I don't know. You should ask stmuk
19:03 Herby_ k thanks
19:03 Herby_ stmuk: Do you know if there is any plan to include a CSV reader/writer in to Rakudo Star?
19:04 Herby_ or maybe baked in, similar to Python CSV
19:05 lizmat Herby_: the ecosystem already has Text::CSV, only a "zef install Text::CSV" away after you install Rakudo *
19:07 Herby_ lizmat: thanks. I haven't had much luck with zef and getting modules installed.
19:07 lizmat :-(
19:09 Herby_ just tried to install Text::CSV again and got a failure: https://pastebin.com/Jn6seHX7
19:11 Herby_ I believe it is related to this issue: https://github.com/Tux/CSV/issues/5
19:11 astj joined #perl6
19:17 lizmat Herby_: I'm pretty sure you can safely "--force-test" on the install for Text::CSV
19:23 Herby_ lizmat: that successfully installed. thanks
19:23 lizmat you're welcome  :-)
19:28 pecastro joined #perl6
19:42 |oLa| joined #perl6
19:53 TEttinger joined #perl6
19:56 Cabanossi joined #perl6
20:09 ryn1x joined #perl6
20:16 pecastro joined #perl6
20:17 stmuk Herby_: I don't have any plans to. It's a simple enough format to use .split with (or install Text::CSV)
20:17 stmuk Herby_: its also not pure perl 6 which may lead to problems with Windows
20:18 stmuk oh your error is on Windows
20:20 Herby_ stmuk: ok thank you
20:22 stmuk Text::CSV passes on linux so looks like possible Windows issues
20:23 stmuk you could also try CSV::Parser
20:23 Herby_ I was able to get it working using lizmat's tip of "--force-test"
20:24 stmuk probably worth adding a Github issue for Windows/Text::CSV
20:25 Herby_ I think one has been opened: https://github.com/Tux/CSV/issues/5   but I
20:27 stmuk that looks like something different now fixed
20:28 stmuk also it points out Text::CSV tends to track the very newest Perl 6 and may break on older
20:28 stmuk your problem is probably Windows specific
20:29 raschipi Well, good to notice Text::CSV is uselees then, will use something else if I need to deal with CSV.
20:35 zakharyas joined #perl6
20:39 zakharyas joined #perl6
20:43 stmuk I'm sure its very good for some use cases (eg. quickly parsing) due to the C code
20:43 nadim joined #perl6
20:55 niceperl joined #perl6
21:00 Herby_ Ok, I have Text::CSV and CSV::Parser both installed (Windows 10).  I have an 80 MB CSV file.  Whats a simple way to benchmark the two?
21:01 Herby_ now - INIT now?
21:01 gfldex m: { sleep 5; say now - ENTER now }
21:01 camelia rakudo-moar 9a1375981: OUTPUT: «5.00164427␤»
21:12 astj joined #perl6
21:22 ChoHag joined #perl6
21:23 timotimo stmuk: did you just say csv is simple enough to use .split with?
21:23 TEttinger hehe
21:23 geekosaur that's the same order of mistake as parsing html with regex >.>
21:24 TEttinger ZALGO HE COMES
21:24 gfldex .split talks Regex. I would not count that as simple.
21:24 geekosaur watch out for the tentacles\
21:25 Herby_ <the center cannot hold>
21:26 timotimo gfldex: if you want to have a lookbehind that figures out if the number of " up to the beginning of the file are even or odd (not counting escaped ones), sure i guess?
21:26 stmuk timotimo: up to a point, depends on the exact file
21:27 Cabanossi joined #perl6
21:27 timotimo if you're in complete control of the file contents, you might as well use a different format instead
21:27 timotimo if you're not, you have to be resilient in case "evil" input comes your way
21:27 * timotimo afk again
21:29 stmuk sure the devil is in the edge cases
21:34 gfldex m: say "Z҉A҉L҉G҉O̚̕̚ ".univals
21:34 camelia rakudo-moar 9a1375981: OUTPUT: «(NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN)␤»
21:34 gfldex ^^^ this made me chuckle
21:41 stmuk hmm there is a p6 grammar based solution but its in the darkecosystem
21:42 stmuk the ABNF in rfc4180 could also be used
21:51 Herby_ dumb question but how do I get the latest Rakudo Perl 6?  Isn't it 2017.09?
21:52 Morfent joined #perl6
21:52 Herby_ http://rakudo.org/how-to-get-rakudo/
21:52 Herby_ Is that showing 2017.07 due to it being Rakudo Star?
21:52 stmuk yes
21:52 geekosaur yes
21:52 geekosaur and star will always lag the development releases to some extent, even if only by a week
21:53 geekosaur the easiest way to get a devel release is rakudobrew, but any time you're doing that you're living on the bleeding edge and can expect to get cut >.>
21:56 Herby_ i don't like bleeding my own blood
22:00 epony joined #perl6
22:14 astj joined #perl6
22:31 Aaronepower joined #perl6
22:39 wamba joined #perl6
22:42 Cabanossi joined #perl6
22:44 Seadevil joined #perl6
23:14 Geth ¦ doc: 36fb9774f7 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/typesystem.pod6
23:14 Geth ¦ doc: Clarify `is nodal`
23:14 Geth ¦ doc:
23:14 Geth ¦ doc: It only applies to `List` methods
23:14 Geth ¦ doc: review: https://github.com/perl6/doc/commit/36fb9774f7
23:14 synopsebot Link: https://doc.perl6.org/language/typesystem
23:15 astj joined #perl6
23:20 virtualsue joined #perl6
23:24 ryn1x joined #perl6
23:32 patrickz_ joined #perl6
23:49 Herby_ joined #perl6
23:53 ryn1x joined #perl6
23:57 Herby_ is there a coding style guide that anyone can recommend? I'm coming to learn that I'm terrible at naming things, and sticking to naming conventions

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

Perl 6 | Reference Documentation | Rakudo