Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-05-20

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:01 TimToady joined #perl6
00:29 cyphase joined #perl6
00:31 holyghost joined #perl6
00:36 Todd_ joined #perl6
00:37 bjz joined #perl6
00:37 Todd_ Hi Everyone.  I need to ask a question about zef.  I am about to install a module with it.  Is there a way to tell zef I want the module stored in the universal location and not some user's profile?
00:39 Todd_ Actaully, how do I tell the zef creator I also want zef stored globally?
00:42 kurahaupo_ joined #perl6
00:43 Cabanossi joined #perl6
00:44 Todd_ okay, I jsut did a global find on zef and removed everything.  Then reinstalled zef and it when into /usr/lib64/perl6/site/bin which makes me happy.
00:48 Todd_ `ln -s /usr/lib64/perl6/site/bin/zef /usr/bin/zef`   helps too
00:52 holyghost joined #perl6
00:56 Todd_ just out of curiousity, where would I download Net::SMTP from?
00:57 bjz_ joined #perl6
00:59 Todd_ foudn it: https://github.com/jpve/perl6-net-pcap
00:59 Actualeyes joined #perl6
00:59 Todd_ oops: https://github.com/retupmoca/P6-Net-SMTP
01:00 Ven joined #perl6
01:07 Todd_ zef put Net::SMTP into `/home/linuxutil/P6-Net-SMTP/lib/Net`  How do I fix this?
01:11 kyan joined #perl6
01:11 Todd_ well, my program now runs without whining, so it must have been insalled somewhere else too
01:11 Todd_ Bye bye
01:42 holyghost joined #perl6
01:48 ilbot3 joined #perl6
01:48 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:56 zostay Zoffix: in this case they'd be the same, I just find it curious that I'm allowed to create an Array[Pair] filled with Str through the use of »
02:06 noganex joined #perl6
02:28 Cabanossi joined #perl6
02:36 bisectable6 joined #perl6
02:58 Cabanossi joined #perl6
03:01 kyan joined #perl6
03:06 mr-fooba_ joined #perl6
03:09 mcmillhj_ joined #perl6
03:09 mcmillhj joined #perl6
03:27 Cabanossi joined #perl6
03:27 mcmillhj joined #perl6
03:42 mcmillhj joined #perl6
03:42 mcmillhj_ joined #perl6
03:47 ugexe lol... over the course of an hour, and  10 straight messages to himself, he solved all his own problems
03:50 AlexDaniel ugexe: rubber duck debugging done right
03:57 Cabanossi joined #perl6
04:01 mcmillhj joined #perl6
04:01 mcmillhj_ joined #perl6
04:02 bjz joined #perl6
04:06 cpage_ joined #perl6
04:17 mcmillhj joined #perl6
04:29 xtreak joined #perl6
04:44 mcmillhj joined #perl6
04:47 leedo joined #perl6
04:53 CIAvash joined #perl6
04:57 mcafee joined #perl6
04:57 Cabanossi joined #perl6
05:08 bjz joined #perl6
05:15 xtreak joined #perl6
05:29 cbk joined #perl6
05:49 skids joined #perl6
06:19 wamba joined #perl6
06:27 Cabanossi joined #perl6
06:38 xiaomiao joined #perl6
06:38 bjz joined #perl6
06:43 parv joined #perl6
07:13 setty1 joined #perl6
07:16 bjz joined #perl6
07:23 Sgeo_ joined #perl6
08:01 darutoko joined #perl6
08:15 labster joined #perl6
08:21 xtreak joined #perl6
08:48 bjz joined #perl6
08:54 dct joined #perl6
09:07 rindolf joined #perl6
09:09 Rawriful joined #perl6
09:25 margeas joined #perl6
09:27 Cabanossi joined #perl6
09:28 bjz joined #perl6
09:35 wamba joined #perl6
09:46 xtreak joined #perl6
09:48 robertle joined #perl6
10:23 tbrowder hi #perl6
10:25 lizmat tbrowder  o/
10:26 tbrowder i think the docs need a new entry under Language, called something like Core Modules, that lists modules included with Perl 6.  they probably should also be listed in modules.perl6.org. opinions? hi, lizmat!
10:27 brrt joined #perl6
10:27 lizmat tbrowder: re CORE Modules, seems like a good idea
10:28 lizmat re modules.perl6.org listing: not so sure
10:28 tbrowder yeah, i keep wasting time looking for Pod::To::Text...
10:29 tbrowder and forgetting it is in rakudo
10:29 lizmat well, maybe that *should* live as a module, similarly to TAP.pm6 perhaps ?
10:31 tbrowder hm, sounds good to me.
10:33 tbrowder which of the core modules really need to be in core?
10:34 tbrowder perl 5 over the years has moved out some core modules
10:35 lizmat well, I think the list that can be moved is actually pretty small
10:37 tbrowder anyhoo, that's probably something for another time...i'll try to add a  doc chunk later
10:37 Ven joined #perl6
10:39 nadim Hi all. FYI: Just noticed that Panda is still referenced in INSTALL.txt
10:40 tbrowder hi, nadim, good catch, PR
10:42 Cabanossi joined #perl6
10:44 lizmat nadim tbrowder: fixed it
10:47 Ven_ joined #perl6
10:47 nadim I also noticed that p6 --version gives this: This is Rakudo version 2017.04.3-303-gabc0509, the commit is 20 mn old (thanks lizmat) and the build is 5 mn old but the date 2017.04.03 is comming from ... well I don
10:48 nadim I don't know where
10:48 lizmat because we had 4 .point release on 2017.04 ?
10:54 Ven_ joined #perl6
11:01 Ven_ joined #perl6
11:07 Ven_ joined #perl6
11:08 Chillance joined #perl6
11:18 AlexDaniel joined #perl6
11:21 Ven_ joined #perl6
11:21 xtreak joined #perl6
11:25 xtreak joined #perl6
11:26 robertle tony-o: travis works for my branch of pluggable, so I guess you just need to enable it and it would work for yours as well. also forgot to mention that the README.md is now a rendering of the pod
11:41 avalenn joined #perl6
11:42 xtreak joined #perl6
11:57 Cabanossi joined #perl6
11:58 tbrowder lizmat: i have a doc entry almost ready, but i notice all the core modules under rakudo/lib have a pm6 extension *except* CompUnit/Repository/Staging.pm (probably because it is used so much by zef).
12:00 Ven joined #perl6
12:00 Zoffix joined #perl6
12:01 Zoffix tbrowder: don't add TAP.pm to the list. It'll be removed after today's release
12:01 tbrowder roger!
12:29 nebuchadnezzar joined #perl6
12:38 eyck joined #perl6
13:05 Ven joined #perl6
13:08 nebuchadnezzar joined #perl6
13:13 Zoffix left #perl6
13:15 eyck joined #perl6
13:17 aborazmeh joined #perl6
13:17 aborazmeh joined #perl6
13:24 lizmat If you're in the Oslo area: http://blogs.perl.org/users/damian_conway/2017/05/not-your-grandmothers-perl.html
13:24 lizmat your chance to see Damian in action!
13:26 lizmat although at a price and it's not about Perl 6
13:26 lizmat :-(
13:27 Cabanossi joined #perl6
13:30 bjz_ joined #perl6
13:32 eyck joined #perl6
13:33 Geth ¦ doc: tbrowder++ created pull request #1316: add new doc with list of core modules
13:33 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1316
13:43 bpmedley joined #perl6
13:45 lizmat tbrowder: seems to be missing some empty lines between =items ?
13:46 lizmat also: I would say "Used by installers such as zef" instead of "Used by zef"
13:47 tbrowder hm, i'll check. i tried to build the docs locally but have a pod-bigpage failure with rakudo n
13:47 tbrowder a recent rakudo nom
13:53 brrt joined #perl6
13:53 nadim joined #perl6
13:57 tbrowder lizmat: see if that's better
13:58 lizmat tbrowder: looks good
13:58 lizmat re CompUnit/Repository/Staging.pm being a .pm rather than a .pm6
13:58 lizmat feels to me this is an oversight rather than an intentional thing
13:58 lizmat nine ugexe tony-o:  opinions ^^^  ?
13:59 Geth ¦ doc: 28df7e46e6 | (Tom Browder)++ | doc/Language/modules-core.pod6
13:59 Geth ¦ doc: add new doc with list of core modules
13:59 Geth ¦ doc: review: https://github.com/perl6/doc/commit/28df7e46e6
13:59 Geth ¦ doc: 396e0d8304 | (Tom Browder)++ | doc/Language/modules-core.pod6
13:59 Geth ¦ doc: remove blank lines, mod comment per lizmat
13:59 Geth ¦ doc: review: https://github.com/perl6/doc/commit/396e0d8304
13:59 Geth ¦ doc: 06bf3a92de | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
13:59 Geth ¦ doc: Merge pull request #1316 from tbrowder/core-mod
13:59 Geth ¦ doc:
13:59 Geth ¦ doc: add new doc with list of core modules
13:59 Geth ¦ doc: review: https://github.com/perl6/doc/commit/06bf3a92de
14:01 nine tbrowder: CompUnit::Repository::Staging is _not_ for zef. It's for installing modules into a staging area and moving them into their final position later on, i.e. creating distro packages.
14:01 eyck joined #perl6
14:02 nine lizmat: yes, I'm just still not used to using .pm6 as extension :)
14:02 lizmat ok, propose we change that after the release  :-)
14:03 tbrowder nine: so it should be listed under internal modules then??
14:04 lizmat tbrowder: no, it's about .pm vs .pm6
14:05 nadim not using .pm6 either, maybe I should change alll the modules I have while I have so few. do we have a P6 syntax for vim somewhere?
14:05 tbrowder i was referring to nine's comment about the use of compunit...staging
14:06 tbrowder should i move it to the list of internal-use modules?
14:08 MasterDuke nadim: i think it's built-in to recent versions of vim now
14:08 yoleaux 10:47Z <brrt> MasterDuke: i'll look into it
14:08 tbrowder i'll remove the use comment anyway...
14:08 nadim can someone have a look at travis,yml at https://github.com/nkh/P6-Data-Dump-Tree and tell me if they see something obviously wrong?
14:09 tbrowder change panda to zef
14:09 nadim ok
14:11 nadim what would be the exact config? still need a "rekudobrew something" in the yaml file?
14:11 nadim I mean: how does Zef get installed?
14:15 awwaiid joined #perl6
14:16 Geth ¦ doc: tbrowder++ created pull request #1317: correct comment
14:16 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1317
14:17 Geth ¦ doc: a99ec90956 | (Tom Browder)++ | doc/Language/modules-core.pod6
14:17 Geth ¦ doc: correct comment
14:17 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a99ec90956
14:17 Geth ¦ doc: b81b16aa0d | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
14:17 Geth ¦ doc: Merge pull request #1317 from tbrowder/mod-core-fix
14:17 Geth ¦ doc:
14:17 Geth ¦ doc: correct comment
14:17 Geth ¦ doc: review: https://github.com/perl6/doc/commit/b81b16aa0d
14:20 tbrowder nadim: "rakudobrew build-zef\nzef installdeps ."
14:20 tbrowder with "-" in front of each line
14:21 tbrowder nadim: sorry, last line i use is "- zef install --depsonly ."
14:23 yqt joined #perl6
14:23 tbrowder https://www.irccloud.com/pastebin/mMJhB4yA/
14:24 committable6 joined #perl6
14:25 tbrowder ref my doc change: ugly!  working on it...
14:28 zapwai joined #perl6
14:30 Geth ¦ doc: tbrowder++ created pull request #1318: correct head tags, add subtitle
14:30 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1318
14:30 Geth ¦ doc: fc26eb614b | (Tom Browder)++ | doc/Language/modules-core.pod6
14:30 Geth ¦ doc: correct head tags, add subtitle
14:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/fc26eb614b
14:30 Geth ¦ doc: a55dd8ebf6 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
14:30 Geth ¦ doc: Merge pull request #1318 from tbrowder/mdoc-fix
14:30 Geth ¦ doc:
14:30 Geth ¦ doc: correct head tags, add subtitle
14:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/a55dd8ebf6
14:36 Geth ¦ doc: tbrowder++ created pull request #1319: correct links
14:36 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1319
14:36 Geth ¦ doc: 56e2701dfb | (Tom Browder)++ | doc/Language/modules-core.pod6
14:36 Geth ¦ doc: correct links
14:36 Geth ¦ doc: review: https://github.com/perl6/doc/commit/56e2701dfb
14:36 Geth ¦ doc: 9e5d047f27 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
14:36 Geth ¦ doc: Merge pull request #1319 from tbrowder/mdoc-fix2
14:36 Geth ¦ doc:
14:36 Geth ¦ doc: correct links
14:36 Geth ¦ doc: review: https://github.com/perl6/doc/commit/9e5d047f27
14:45 kyan joined #perl6
14:49 khw joined #perl6
14:58 ugexe lizmat: I think that module used to live in src/ (not lib/) where the convention is .pm
14:59 ugexe n/m too late
15:24 nadim I have an object that does a few roles, the roles are added in different places, later I get the object and want to know if it does a specific role; How do get that information?
15:25 nadim ah! .does
15:28 setty1 joined #perl6
15:28 moritz nadim: or you could just do smart matching
15:29 moritz against the role
15:29 moritz m: role R1 { }; role R2 { }; (({} does R1) does R2) ~~ R1
15:29 camelia rakudo-moar e5b5d3: ( no output )
15:29 moritz m: role R1 { }; role R2 { }; say (({} does R1) does R2) ~~ R1
15:29 camelia rakudo-moar e5b5d3: OUTPUT: «True␤»
15:29 moritz m: role R1 { }; role R2 { }; say (({} does R1) does R2) ~~ R2
15:29 camelia rakudo-moar e5b5d3: OUTPUT: «True␤»
15:29 moritz m: role R1 { }; role R2 { }; role R3 { }; say (({} does R1) does R2) ~~ R3
15:29 camelia rakudo-moar e5b5d3: OUTPUT: «False␤»
15:31 astj joined #perl6
15:33 nadim right! it looks better but I had to use 'can' instead. the base class needs a role to implement a specific method and there are multiple roles that could implement it, including roles that the end user could define
15:34 skids joined #perl6
15:36 ugexe fwiw there is some instance where I ended up reaching for .^find_method instead of .^can
15:37 ugexe so if .^can doesn't do what you want in some instance try .^find_method just to see
15:38 bjz joined #perl6
15:42 Cabanossi joined #perl6
15:44 NeuralAnomaly joined #perl6
15:51 nadim ugexe: good to know but I didn't use .^can but .can, there is no difference as long as a role doe not implement 'can'  I guess
15:52 Geth ¦ doc: 56613a1de7 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
15:52 Geth ¦ doc: Clarify Test.pm6
15:52 Geth ¦ doc:
15:52 Geth ¦ doc: - Link to testing page
15:52 Geth ¦ doc: - Not all modules use Test.pm6 for testing (viva la Testo.pm6!)
15:52 Geth ¦ doc: review: https://github.com/perl6/doc/commit/56613a1de7
15:58 grumble joined #perl6
16:06 kaare_ joined #perl6
16:12 araraloren joined #perl6
16:12 araraloren hi
16:13 araraloren How can I use a github repo branch as a source-url in MATE6 file
16:15 araraloren If anybody know how to, please tell me.
16:20 NeuralAnomaly joined #perl6
16:20 Geth ¦ doc: tbrowder++ created pull request #1320: make a single list and don't speculate about use
16:20 Geth ¦ doc: review: https://github.com/perl6/doc/pull/1320
16:21 Geth ¦ doc: 2798c8d5ba | (Tom Browder)++ | doc/Language/modules-core.pod6
16:21 Geth ¦ doc: make a single list and don't speculate about use
16:21 Geth ¦ doc: review: https://github.com/perl6/doc/commit/2798c8d5ba
16:21 Geth ¦ doc: 31993dc019 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/modules-core.pod6
16:21 Geth ¦ doc: Merge pull request #1320 from tbrowder/mdoc-fix3
16:21 Geth ¦ doc:
16:21 Geth ¦ doc: make a single list and don't speculate about use
16:21 Geth ¦ doc: review: https://github.com/perl6/doc/commit/31993dc019
16:26 tbrowder araraloren: I recommend you refer to a release instead  of a branch.  That will look something like this: "source-url"  : "https://github.com/tbrowder/Text-More-Perl6/archive/v0.1.4.zip",
16:30 zakharyas joined #perl6
16:36 NeuralAnomaly joined #perl6
16:39 mingdao joined #perl6
16:40 xiaomiao joined #perl6
16:40 kaare__ joined #perl6
16:41 NeuralAnomaly joined #perl6
16:42 Cabanossi joined #perl6
16:56 avalenn joined #perl6
16:59 NeuralAnomaly joined #perl6
17:03 zakharyas joined #perl6
17:07 Geth ¦ modules.perl6.org: f0dbaed8e9 | (Tom Browder)++ (committed using GitHub Web editor) | templates/root/index.html.ep
17:07 Geth ¦ modules.perl6.org: add ref to new core module list
17:07 Geth ¦ modules.perl6.org: review: https://github.com/perl6/modules.perl6.org/commit/f0dbaed8e9
17:11 Zoffix joined #perl6
17:12 Zoffix araraloren: I think ugexe++ was going to add a helper unzip script to zef so that `unzip` command is not required. So then the Issue I opened wouldn't matter
17:12 Zoffix araraloren: OR, upload to CPAN. zef now defaults to it, as I understand
17:14 Zoffix araraloren: and I see Inline::Perl5 links in ecosystem like this: https://github.com/perl6/ecosystem/blob/master/META.list#L277  and look at the source URL... A CPAN dist: https://raw.githubusercontent.com/niner/Inline-Perl5/aa06e66e937f49f9061de4aed6a43cc4d796948d/META6.json
17:14 tokomer joined #perl6
17:15 Zoffix araraloren: and to upload to cpan... I think mi6 now has support, or you can do it manually on PAUSE's site: https://pause.perl.org/pause/query
17:15 Zoffix buggable: eco mi6
17:15 buggable Zoffix, App::Mi6 'minimal authoring tool for Perl6': https://github.com/skaji/mi6
17:15 * Zoffix &
17:15 Zoffix left #perl6
17:18 araraloren tbrowder, Yeah, I use that format, current in my module
17:22 araraloren .tell Zoffix Em, thanks, I'll look at `upload to CPAN`
17:22 yoleaux araraloren: I'll pass your message to Zoffix.
17:26 araraloren Maybe better change `zip` to `.tar.gz`.
17:31 leah2_ joined #perl6
17:36 astj joined #perl6
17:37 tbrowder ugexe recommends zip version release for cross-platform use
17:38 ugexe tbrowder: eh Zoffix proved me wrong when his linux dist didnt have a way to unzip
17:39 tbrowder well he needs to add zip package to it
17:39 ugexe the same can be said from the other side
17:39 tbrowder we linux peops are much more forgiving than msw
17:40 ugexe .tar.gz should be cross platform enough. just not on windows without perl5 in PATH
17:41 tbrowder so do we now need two source url entries?
17:41 araraloren Use a zip module as backend would be better. It's reliable than zip command.
17:43 nadim not using .pm6 either, maybe I should change alll the modules I have while I have so few. do we have a P6 syntax for vim somewhere? pretend it is not installed even if it is?
17:44 araraloren Vim has a perl5 syntax hightlight
17:44 araraloren perl6
17:45 araraloren s/perl5/perl6/
17:45 lowbro joined #perl6
17:45 lowbro joined #perl6
17:45 tbrowder ahem, at some point it seems to me we need some kind of module check for minimum requirements before a module can be entered into the ecosystem. there are new entries without any functionality at all--basically a skeleton WIP.
17:45 nadim thanks araraloren, the message above is garbage, half an old question and half a new one. typo of the day :)
17:46 araraloren oh
17:51 nadim is it possible to tell prove to "not find a module" even if it is installed? I want to test as if Term::ANSIColors wasn't there without modifying 50 tests.
17:56 domidumont joined #perl6
17:57 Cabanossi joined #perl6
18:02 domidumont joined #perl6
18:16 moritz nadim: are you doing the conditional loading in the tests, or in the code you're testing?
18:24 AlexDani` joined #perl6
18:29 moritz https://twitter.com/nogoodnickleft/status/865996227455987712 # if you're not on twitter, you can register your vote here as well :-)
18:32 brrt joined #perl6
18:35 MasterDuke moritz: 1,3,2 (ranked order of preference)
18:36 moritz MasterDuke: thanks
18:40 mst 1 (I did vote), because the other two I think I can grok from the reference docs
18:46 moritz I wonder if a Perl 6 version of "Mastering Regular Expressions" is in order
18:49 moritz does anybody here know Jeffrey Friedl personally, and would be willing to introduce me to him?
18:49 MasterDuke i love that book. one of the only two reference/programming books i've read cover-to-cover (the other being programming perl)
18:51 moritz I love it too, and regularly recommend it
18:54 moritz he, so far there are 8 responses, and the percentages are 75, 13, 12
18:54 moritz rounding in action, I suppose :-)
18:55 mst oh dear
18:57 Cabanossi joined #perl6
18:58 moritz I've actually written code that does similarly horrible rounding
18:59 moritz exporting invoice data to the finacial accounting system, breaking it down into cost centers
19:00 moritz and it's super important that the book entries sum up to the total on the invoice, but much less important if one of the cost centres is a cent off
19:01 moritz if the rounding error is 0.01, I can just put it on "misc", but -0.01 isn't acceptable, so I have add that randomly to one of the other cost centers
19:02 wamba joined #perl6
19:05 TEttinger joined #perl6
19:06 tbrowder moritz: +1 for 1
19:08 haxmeister joined #perl6
19:10 haxmeister Thank you all for Perl 6.. my new favorite language. it is truly next level!
19:10 AlexDaniel \o/
19:10 moritz you're welcome (on behalf of #perl6) :-)
19:12 espadrine joined #perl6
19:12 haxmeister \o/ :-D
19:14 haxmeister chaining functions with dot notation is my new favorite syntax to abuse :-D
19:20 AlexDaniel abuse it is :)
19:22 haxmeister well that is what many people secretly love about perl right?.. all that syntactic sugar that we can abuse in our own scripts.. you know those scripts we keep for ourselves and hopefully never show to anybody else
19:22 labster joined #perl6
19:24 moritz or not so secretly :-)
19:26 mst I'm pretty much ok with the idea that perls are expressive, and that gives you the potential to write both extremely readable and extremely unreadable code
19:27 haxmeister I tend to lean towards the "wth is that?" readability rating lol
19:28 haxmeister sometimes the "why did you do it like that?" zone as well
19:42 Cabanossi joined #perl6
19:48 zakharyas joined #perl6
19:52 Geth ¦ ecosystem: e2d465c489 | loren++ (committed using GitHub Web editor) | META.list
19:52 Geth ¦ ecosystem: Update Getopt::Kinoko to v0.3.5
19:52 Geth ¦ ecosystem: review: https://github.com/perl6/ecosystem/commit/e2d465c489
20:12 dct joined #perl6
20:28 brrt joined #perl6
20:35 AndyDee joined #perl6
20:35 zapwai joined #perl6
20:42 Cabanossi joined #perl6
21:05 Voldenet the thing I'll ask now is very evil, but I'll ask anyway
21:05 Voldenet can you run perl6 with python interpreter?
21:07 jnthn Haven't heard of a bridge in that direction, no. You can via Inline::Python use python modules from Perl 6, though (which works by embedding a Python interpreter). :)
21:21 imcsk8 joined #perl6
21:23 nadim moritz: I want to make sure Term::ANSIColor is not loaded during tests as the module  generates a different output when it is found.
21:25 jnthn nadim: Does it do a runtime require of it?
21:26 jnthn (Guarded with try?)
21:26 jnthn It's not an especially "clever" solution, but I'd probably just env var it.
21:27 jnthn (Have an env var that, if set, causes the require to not be attempted)
21:28 jnthn Another potential (though utter hack) option is to have a t/hack/Term/ANSIColor.pm6 that simply dies upon being loaded and the -It/hack so it takes precedence and hides the real one
21:42 Cabanossi joined #perl6
21:47 nadim what is returned whn qx is given a command that does not exist?
21:47 nadim It may be explained in the documentation but not where qx is documented
21:49 nadim and do we have a way to detect terminal width in windows (I guess windows is also a target) on unix (and so far by default) I use stty.
21:52 bjz joined #perl6
21:56 kotp joined #perl6
22:20 TEttinger joined #perl6
22:36 astj joined #perl6
22:39 Zoffix joined #perl6
22:40 Zoffix nadim: appears to return an empty string on my box. For terminal width, see Terminal::Width (it's used by Test::Notice if you wanted to see usage)
22:40 Zoffix buggable: eco Terminal::Width
22:40 buggable Zoffix, Terminal::Width 'Get the current width of the terminal': https://github.com/zoffixznet/perl6-Terminal-Width
22:42 Cabanossi joined #perl6
22:43 Geth ¦ doc: 1d548f13a2 | (Trey Harris)++ | doc/Language/glossary.pod6
22:43 Geth ¦ doc: Glossary: add 'Value type' entry
22:43 Geth ¦ doc:
22:43 Geth ¦ doc: The term "value type" is thrown around a few other places in the docs,
22:43 Geth ¦ doc: so this is an attempt to explain it in terms not requiring much CS
22:43 Geth ¦ doc: theory.
22:43 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1d548f13a2
22:48 Zoffix left #perl6
22:51 mcmillhj_ joined #perl6
22:51 mcmillhj joined #perl6
23:04 Ven joined #perl6
23:05 kurahaupo_ joined #perl6
23:06 tbrowder can someone give a ref to some guidance on unpacking a pod object? i can extract a pod object from a file, but it is an array and doesn't seem amenable to breaking it down to individual pod objects. do i need to test each piece t
23:07 tbrowder forget the last partial sentence
23:38 mcmillhj joined #perl6
23:38 mcmillhj_ joined #perl6
23:41 mawkish__ joined #perl6
23:49 mscha joined #perl6
23:49 mscha How do I return two separate lists from a sub?
23:49 mscha m: sub foo { my @a = (1,2,3); my @b = <a b c>; return @a, @b; }; my (@a, @b) = foo; say "a = @a[]; b = @b[]"; # Not like this, apparently
23:49 camelia rakudo-moar d28540: OUTPUT: «a = 1 2 3 a b c; b = ␤»
23:52 mcmillhj joined #perl6
23:52 mcmillhj_ joined #perl6
23:53 AlexDaniel mscha: well, yes, that's how you return two arrays :)
23:53 AlexDaniel m: sub foo { my @a = (1,2,3); my @b = <a b c>; return @a, @b; }; dd foo
23:53 camelia rakudo-moar d28540: OUTPUT: «([1, 2, 3], ["a", "b", "c"])␤»
23:53 AlexDaniel but do you get them out… hmmm
23:54 AlexDaniel how*
23:55 bjz_ joined #perl6
23:56 AlexDaniel m: sub foo { my @a = 1,2,3; my @b = <a b c>; return @a, @b; }; my (@a; @b) = flat foo; dd @a; dd @b
23:56 camelia rakudo-moar d28540: OUTPUT: «Array @a = [1, 2, 3, "a", "b", "c"]␤Array @b = []␤»
23:56 AlexDaniel oops
23:56 AlexDaniel well, that's too flat…
23:57 timotimo sooo
23:57 timotimo i moved house toda
23:57 timotimo today
23:57 timotimo i.e. my bed and my desk and computer
23:57 timotimo and i'll sleep here tonight
23:57 timotimo and there's two cats
23:58 timotimo i'll sleep a night in a cat household for the first time <3
23:58 AlexDaniel timotimo: if cats are arrays, and you have a list of cats, how do you put them into @a and @b ?
23:59 timotimo huh, i meant to write this in a different channel
23:59 timotimo i should maybe put on my glasses for computer use
23:59 timotimo no matter
23:59 AlexDaniel m: sub foo { my @a = 1,2,3; my @b = <a b c>; return @a, @b; }; my ($a, $b) = foo; dd $a; dd $b
23:59 camelia rakudo-moar d28540: OUTPUT: «Array $a = $[1, 2, 3]␤Array $b = $["a", "b", "c"]␤»
23:59 AlexDaniel that's one way to do it, but what if I insist on @a and @b?

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

Perl 6 | Reference Documentation | Rakudo