Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-10-15

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:24 _slade_ joined #perl6
00:34 geraud joined #perl6
00:45 aborazmeh joined #perl6
00:45 aborazmeh joined #perl6
00:52 pierrot joined #perl6
00:56 bjz joined #perl6
01:00 Herby__ joined #perl6
01:00 Herby__ o/
01:10 cyphase joined #perl6
01:11 tbrowder question: I'm trying to install rakudo star on a VM with 512 Mb mem and it looks like that's too little. What is the min required?  Is there any way to install on the VM I have?  Thanks.
01:12 tbrowder I guess I could copy from another, identical host (except for the mem size)...
01:20 pierrot_ joined #perl6
01:26 labster joined #perl6
01:36 telex joined #perl6
01:56 labster joined #perl6
01:59 Actualeyes joined #perl6
02:05 noganex_ joined #perl6
02:26 cpage_ joined #perl6
02:33 bjz joined #perl6
02:34 kurahaupo joined #perl6
02:38 rgrinberg joined #perl6
02:57 Jesmaybe joined #perl6
03:07 labster joined #perl6
03:16 TEttinger joined #perl6
03:28 sufrostico joined #perl6
03:43 japhb .ask ab5tract_ I've got a pile of changes I'd like to make to Terminal::Print (some cleanup, some speedup, some API extensions, etc.).  How granular would you like PRs?  Or would you rather I just maintained my own fork?
03:43 yoleaux japhb: I'll pass your message to ab5tract_.
03:47 sufrostico joined #perl6
03:54 flexibeast joined #perl6
04:04 bjz joined #perl6
04:16 djbkd joined #perl6
04:18 ggoebel joined #perl6
04:29 Ven_ joined #perl6
04:37 rgrinberg joined #perl6
04:44 Cabanossi joined #perl6
04:48 cyphase joined #perl6
05:10 pierre_ joined #perl6
05:22 awwaiid joined #perl6
05:36 djbkd joined #perl6
05:42 kaare_ joined #perl6
05:54 PerlJam joined #perl6
06:03 pierre_ joined #perl6
06:18 domidumont joined #perl6
06:20 Sgeo joined #perl6
06:23 cpage_ joined #perl6
06:23 geekosaur joined #perl6
06:23 domidumont joined #perl6
06:27 u-ou joined #perl6
06:27 Guest29357 left #perl6
06:29 firstdayonthejob joined #perl6
06:35 flexibeast joined #perl6
06:37 p3rln00b tbrowder
06:37 p3rln00b tbrowder, you need about 2GB of ram+swap, so one solution for you is to get more swap
06:44 Zoffix joined #perl6
06:44 Zoffix
06:44 yoleaux 9 Oct 2016 22:39Z <tbrowder> Zoffix: there is a PR in ecosystem for an installation template for review
06:58 RabidGravy joined #perl6
07:06 Louis_ joined #perl6
07:10 wamba joined #perl6
07:10 pierre_ joined #perl6
07:14 Zoffix :/ getting Inline::Perl5 installation failure with panda.... Or rather, it says "LibraryMake:ver<1.0.0>:auth<github:retupmoca>:api<> already installed"
07:14 Zoffix Can't believe this bug is still present.
07:15 Zoffix (that it aborts the install if a prereq is already installed)
07:22 Zoffix left #perl6
07:24 vendethiel- joined #perl6
07:27 p3rln00b Oh. I think I just forgot to build rakudo in a checkout, so it was installing into my system perl6.
07:27 CIAvash joined #perl6
07:36 sjoshi joined #perl6
07:42 RabidGravy boom
07:45 nadim joined #perl6
07:46 RabidGravy is there any conceivable way of expressing something like:
07:46 RabidGravy m: sub foo() returns Positional[Str] { <a b c d> }; say foo()
07:46 camelia rakudo-moar 2c681c: OUTPUT«Type check failed for return value; expected Positional[Str] but got List ($("a", "b", "c", "d"))␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
07:50 RabidGravy that is without using a subset that has a custom validator
07:50 wamba joined #perl6
07:51 p3rln00b That is, without the way that would make it actually work? :)
07:51 labster joined #perl6
07:52 p3rln00b m: sub foo() returns Positional[Str] { my @ of Str = <a b c d> }; say foo()
07:52 camelia rakudo-moar 873e60: OUTPUT«[a b c d]␤»
07:52 RabidGravy it has to be available for the purpose
07:52 p3rln00b Of course, that makes the return type check kinda pointless :)
07:52 RabidGravy for the purpose of introspection
07:53 FROGGS joined #perl6
07:56 u-ou joined #perl6
07:58 RabidGravy my actual reason for wanting to do this is that I am looking at a web service thing which can 'fess up its own description
07:59 * psch doesn't get the question
08:00 psch is this just the "types are nominal and parameterized Positionals are annoying" thing..?
08:03 RabidGravy no
08:06 RabidGravy it's "is there a way to indicate that a routiine will return a positional of some known types which is available by introspection"
08:06 psch m: sub f(--> Positional[Str]) { }; say &f.returns
08:06 camelia rakudo-moar 873e60: OUTPUT«(Positional[Str])␤»
08:06 psch m: sub f() returns Positional[Str] { }; say &f.returns
08:06 camelia rakudo-moar 873e60: OUTPUT«(Positional[Str])␤»
08:07 RabidGravy that is so in the above I could do
08:07 sjoshi joined #perl6
08:08 RabidGravy yes, but, and crucially, that makes specific demands on what is actually done inside the routine
08:08 japhb .tell ab5tract_ I've sent you a PR with my first 11 commits (they're all very small, just minor cleanups/tuneups/fixes).  After that I'm probably going to have to expand the API for further improvements.
08:08 yoleaux japhb: I'll pass your message to ab5tract_.
08:09 RabidGravy I'm tending to think that a special trait might be required
08:13 darutoko joined #perl6
08:14 Actualeyes joined #perl6
08:17 psch RabidGravy: yeah, that's what i'd do too
08:18 psch RabidGravy: unfortunately i'm bad at traits and it doesn't work :S
08:18 psch m: multi trait_mod:<is> (Routine $r, :$returning-unchecked) { $r does role { method returns-unchecked { $returning-unchecked } }; sub f() is returning-unchecked(Positional[Str]) { }; say &f.returns-unchecked
08:18 camelia rakudo-moar 873e60: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Can't use unknown trait 'is returning-unchecked' in a sub declaration.␤at <tmp>:1␤    expecting any of:␤        rw raw hidden-from-backtrace hidden-from-USAGE␤        pure default DEPRECATED inlinabl…»
08:18 * psch shrugs
08:20 RabidGravy missing right } in the outside of the sub
08:20 RabidGravy but yeah something like that
08:20 psch oh right, needs three closing ones
08:21 psch maaybe i should make more coffee...
08:23 huf_ joined #perl6
08:25 sunnavy joined #perl6
08:26 japhb_ joined #perl6
08:26 Ulti_ joined #perl6
08:26 eyck joined #perl6
08:26 orevdiabl joined #perl6
08:27 jnthn_ joined #perl6
08:27 RabidGravy in reality I think it would be a larger trait that can handle a number of things effecting the description
08:27 bartolin_ joined #perl6
08:27 mspo_ joined #perl6
08:27 rjbs joined #perl6
08:27 ChoHag joined #perl6
08:29 facetious joined #perl6
08:29 Woodi_ joined #perl6
08:29 _chee joined #perl6
08:30 shmibs_ joined #perl6
08:30 nightfro` joined #perl6
08:35 rindolf joined #perl6
08:37 vike joined #perl6
08:38 sjoshi joined #perl6
08:39 pierrot joined #perl6
08:40 g4 joined #perl6
08:40 spider-mario joined #perl6
08:41 japhb_ .ask ab5tract_ What exactly is examples/clock.p6 trying to draw?  It looks overcomplicated to be just a circle, and it appears to be halfway through a rewrite.  I'd fix it but I don't know what it's trying to do.
08:41 yoleaux japhb_: I'll pass your message to ab5tract_.
08:43 * japhb_ calls it a night ... Good *, everyone
08:45 Ven_ joined #perl6
08:48 andrzejku joined #perl6
08:51 baest_ joined #perl6
08:51 nadim joined #perl6
08:51 vendethiel- joined #perl6
08:51 kaare_ joined #perl6
08:51 akiym_ joined #perl6
08:51 adrusi_ joined #perl6
08:51 jdv79_ joined #perl6
08:51 MilkmanDan joined #perl6
08:51 Gothmog_ joined #perl6
08:51 xiaomiao joined #perl6
08:51 camelia joined #perl6
08:51 Possum joined #perl6
08:51 TimToady joined #perl6
08:51 melezhik joined #perl6
08:51 sftp joined #perl6
08:51 araujo joined #perl6
08:51 bpmedley joined #perl6
08:51 salva00 joined #perl6
08:51 ilogger2 joined #perl6
08:51 avuserow joined #perl6
08:51 hcit joined #perl6
08:51 gfldex joined #perl6
08:51 tinita joined #perl6
08:51 inokenty joined #perl6
08:51 mst joined #perl6
08:51 Jonis joined #perl6
08:52 sjoshi joined #perl6
08:55 wamba joined #perl6
08:56 aries_liuxueyang joined #perl6
08:57 wamba joined #perl6
09:00 Ven_ joined #perl6
09:04 AlexDaniel By the way, if anybody feels lonely this weekend, here is what you can help with: https://github.com/perl6/whateverable/issues (several LHFs there)
09:08 RabidGravy We're going to the seaside in a bit, so you're alright :)
09:11 AlexDaniel RabidGravy: isn't it a bit cold? Where's that? :)
09:18 harrison_ joined #perl6
09:18 Derperperd joined #perl6
09:23 RabidGravy Whitstable, it'll be nice for a stroll and a few beers :)
09:25 andrzejku hello my friends :)
09:26 hchienjo Hello everyone. I wanted to take on some of the issues over here https://github.com/perl6/roast/issues that are labelled Hacktoberfest, specifically this one https://github.com/perl6/roast/issues/166. Wanted to confirm that the tests should go in this folder ./S17-procasync
09:27 moritz hchienjo: no, this is about the synchronous Proc
09:27 vendethiel joined #perl6
09:28 moritz hchienjo: tests that already exists for related functionality probably test run() and shell() right now, because that's the functional wrapper around Proc
09:29 moritz hchienjo: S29-os/system.t looks promising (file name is like that for historical reasons)
09:29 moritz hchienjo: oh, and great that you're about to tackle some issues. Every contribution is welcome!
09:30 hchienjo moritz: I see. Thanks. Let me look around there and see what I can find.
09:30 RabidGravy anyway, I'm outta here
09:30 baest joined #perl6
09:31 nadim_ joined #perl6
09:31 kaare__ joined #perl6
09:31 moritz \o RabidGravy
09:31 hchienjo moritz: I am really loving Perl 6, and I use Perl 5 all the time, want to help out as much as I can and I learn a lo while at it.
09:32 Jonis_ joined #perl6
09:32 bonsaikitten joined #perl6
09:32 jdv79 joined #perl6
09:32 Gothmog__ joined #perl6
09:32 moritz hchienjo: then you're in the right place here :-)
09:32 hcit_ joined #perl6
09:33 mst_ joined #perl6
09:33 yubimusubi joined #perl6
09:33 tinita_ joined #perl6
09:33 TimToady_ joined #perl6
09:33 gfldex_ joined #perl6
09:36 MilkmanD1n joined #perl6
09:36 sftp_ joined #perl6
09:38 Derperperd joined #perl6
09:39 adrusi joined #perl6
09:39 dalek Inline-Perl5: c316638 | niner++ | lib/Inline/Perl5.pm6:
09:39 dalek Inline-Perl5: Second part of "Move Perl5Array refcnt inc to C code"
09:39 dalek Inline-Perl5:
09:39 dalek Inline-Perl5: We didn't "move" as much as doing an additional refcnt inc. Seems like I
09:39 dalek Inline-Perl5: forgot to commit the removal of the original instruction.
09:39 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/c31663893d
09:42 salva00 joined #perl6
09:45 dalek Inline-Perl5: 94ae450 | niner++ | p5helper.c:
09:45 dalek Inline-Perl5: Fix p5_eval_pv occasionally leaking return values
09:45 dalek Inline-Perl5:
09:45 dalek Inline-Perl5: Seems like we need to do the same Perl stack cleanup for evals as with
09:45 dalek Inline-Perl5: function or method calls despite the docs never mentioning this.
09:45 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/94ae450671
09:45 araujo joined #perl6
09:45 ilogger2 joined #perl6
09:45 avuserow joined #perl6
09:45 melezhik joined #perl6
09:46 akiym_ joined #perl6
09:46 ocbtec joined #perl6
09:48 inokenty joined #perl6
09:55 camelia joined #perl6
10:14 tbrowder .tell p3rln00b Thanks.
10:15 yoleaux tbrowder: I'll pass your message to p3rln00b.
10:16 itaipu joined #perl6
10:19 BenGoldberg joined #perl6
10:20 tbrowder I've simplified testing for my own code by using "done-testing" instead of the painful plan statement. Is there any downside to that? Zoffix notes that roast uses plan for all tests but is that a hard requirement?
10:22 moritz tbrowder: we've had cases in the past where tests were accidentally skipped
10:22 moritz tbrowder: due to wrong fudging, bugs in the tests, bugs in the compiler
10:22 moritz tbrowder: so for roast, it makes sense to use explicit plans
10:22 Herby__ joined #perl6
10:22 Herby__ \o
10:23 moritz tbrowder: for other test suites, it's a tradeoff between safety and convenience that you have to decide yourself
10:23 TimToady joined #perl6
10:23 moritz \o Herby__
10:28 domidumont joined #perl6
10:36 hchienjo moritz: Is there a straight forward documentation on how to run the roast tests?
10:38 tbrowder thanks, moritz
10:40 canopus joined #perl6
10:41 moritz hchienjo: the typical setup is to have a git clone of rakudo, and then you run perl Configure.pl --gen-moar && make spectest
10:41 p3rln00b hchienjo: and you can run individual files with make t/spec/some-file.t
10:41 yoleaux 10:15Z <tbrowder> p3rln00b: Thanks.
10:41 moritz hchienjo: "make spectest" builds rakudo, but also clones roast into t/spec/, and runs the tests
10:42 p3rln00b m: sub do-stuff {@}; use Test; ok .is-prime for do-stuff; done-testing
10:42 camelia rakudo-moar 8ad885: OUTPUT«1..0␤»
10:42 p3rln00b tbrowder: ^ that's one of the examples where a naive done-testing fails. do-stuff() returned nothing and tested nothing, even though it should've returned results to test. But test suite doesn't know how many tests we were meant to run, so it passes
10:42 moritz it seems that p3rln00b isn't such a noob after all :-)
10:44 hchienjo moritz: What if I want to run tests on some of the changes I have made on my fork of roast?
10:45 p3rln00b hchienjo: clone it to t/spec
10:45 p3rln00b (in rakudo's checkout)
10:45 hchienjo p3rln00b: I am assuming that is run on a rakudo folder cloned from github?
10:46 p3rln00b Yeah
10:46 p3rln00b make spectest would've cloned perl6/roast into it. You can just toss it and clone your fork into it
11:06 moritz hchienjo: or if you have already cloned your repo somewhere else, a symlink will do too
11:06 itaipu joined #perl6
11:08 aries_liuxueyang joined #perl6
11:08 hchienjo joined #perl6
11:09 Bucciarati joined #perl6
11:28 pierre_ joined #perl6
11:33 bpmedley joined #perl6
11:45 Ven_ joined #perl6
11:46 ufobat joined #perl6
11:54 ufobat joined #perl6
11:59 Ven_ joined #perl6
12:06 ufobat joined #perl6
12:10 hchienjo :moritz :p3rlnoob thanks.
12:11 geekosaur joined #perl6
12:11 hchienjo moritz: What about when testing for Proc.signal, shouldn't we use Proc.async instead?
12:12 timotimo why? .signal should just be set after the process has ended, right?
12:14 kurahaupo joined #perl6
12:15 cdg joined #perl6
12:18 evalable6 joined #perl6
12:20 AlexDaniel xD one of the bots ran away from the test environment
12:39 ufobat joined #perl6
12:41 dalek doc: 14567d4 | (Tom Browder)++ | doc/Language/testing.pod6:
12:41 dalek doc: add caution about done-testing
12:41 dalek doc: review: https://github.com/perl6/doc/commit/14567d4ef9
12:53 geekosaur joined #perl6
13:00 AlexDaniel tbrowder: what does this mean? https://github.com/perl6/doc/commit/14567d4ef9
13:11 andrzejku joined #perl6
13:12 hchienjo joined #perl6
13:25 evalable6 joined #perl6
13:40 tbrowder AlexDaniel: Perhaps the wording could be improved, but that is how I interpreted moritz's answer to my query about why roast tests used plan and not done-testing.
13:41 AlexDaniel tbrowder: well, not removed then, but changed to 「plan」 ?
13:42 AlexDaniel and as always, it does not hurt to explain why
13:42 tbrowder I'm sure it could be better worded.
13:43 tbrowder "and as always, it does not hurt to explain why": in the note or the comment?
13:43 AlexDaniel tbrowder: in the note (so that doc users can see it)
13:45 skids joined #perl6
13:54 rgrinberg joined #perl6
13:56 dalek doc: 0dbc749 | (Tom Browder)++ | doc/Language/testing.pod6:
13:56 dalek doc: expand the note per AlexDaniel's comments
13:56 dalek doc: review: https://github.com/perl6/doc/commit/0dbc74975e
14:01 khw joined #perl6
14:02 AlexDaniel that's better, I think. Could be improved further though. For example, I find the mention of roast a bit irrelevant to the docs. Instead, it can provide concrete examples when 「done-testing」 does not work as expected.
14:03 pierre_ joined #perl6
14:09 rgrinberg joined #perl6
14:10 tbrowder ok, how about p3rln00b's example above?
14:12 bazzaar joined #perl6
14:13 espadrine joined #perl6
14:17 kaare__ joined #perl6
14:18 kate__ joined #perl6
14:19 kate__ left #perl6
14:19 dalek Inline-Perl5: f392591 | niner++ | / (4 files):
14:19 dalek Inline-Perl5: Replace use of Perl5Parent for v6::inline by Perl5Extension
14:19 dalek Inline-Perl5:
14:19 dalek Inline-Perl5: This first part adds the v6::code package for using a different way of
14:19 dalek Inline-Perl5: extending a Perl 5 package with Perl 6 code. Instead of abusing inheritance,
14:19 dalek Inline-Perl5: we create Perl 5 wrappers for Perl 6 methods and subs.
14:19 dalek Inline-Perl5:
14:19 dalek Inline-Perl5: On the Perl 6 side, Perl 6 extended objects are indistinguishable from plain
14:19 dalek Inline-Perl5: Perl 5 objects. On the Perl 5 side, the only way to notice anything out of
14:19 dalek Inline-Perl5: the norm is by looking for the attached magic.
14:19 dalek Inline-Perl5:
14:19 dalek Inline-Perl5: Fixes memory leaks caused by the Perl 5/6 halves of extended objects to
14:19 dalek Inline-Perl5: point to their other half, keeping both alive. Now the Perl 5 object is the
14:19 dalek Inline-Perl5: authoritative source.
14:19 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/f392591b05
14:19 dalek Inline-Perl5: bd8fc7c | niner++ | / (2 files):
14:19 dalek Inline-Perl5: Move the new Perl5Extension code into v6::inline
14:19 dalek Inline-Perl5:
14:19 dalek Inline-Perl5: Get rid of the v6::code package and just replace v6::inline with it.
14:19 dalek Inline-Perl5:
14:19 dalek Inline-Perl5: The user visible change is that we no longer need the "constructors"
14:19 dalek Inline-Perl5: import argument. We override GLOBAL::CORE::bless instead to intercept object
14:19 dalek Inline-Perl5: creation.
14:19 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/bd8fc7cbf8
14:23 masak nince++
14:23 masak er, nine++, lag--
14:23 masak somebody named "nince" somewhere now goes "yay -- free karma!"
14:23 tbrowder AlexDaniel: working on a change now...
14:23 AlexDaniel tbrowder++
14:24 dalek Inline-Perl5: 196f427 | niner++ | / (3 files):
14:24 dalek Inline-Perl5: Support attributes on routines added to Perl 5 packages via v6::inline
14:24 dalek Inline-Perl5:
14:24 dalek Inline-Perl5: This adds the Perl5Attributes role which can be added to routines to
14:24 dalek Inline-Perl5: record the Perl 5 attributes that should be set on the wrapper.
14:24 dalek Inline-Perl5:
14:24 dalek Inline-Perl5: Can be used for emulating subroutine attributes via traits:
14:24 dalek Inline-Perl5:
14:24 dalek Inline-Perl5: multi trait_mod:<is>(Routine $declarand, :$ActionClass!) {
14:24 dalek Inline-Perl5:     unless $declarand.does(Inline::Perl5::Perl5Attributes) {
14:24 dalek Inline-Perl5:         $declarand does Inline::Perl5::Perl5Attributes[$declarand];
14:24 dalek Inline-Perl5:     }
14:24 dalek Inline-Perl5:     $declarand.attributes.push("ActionClass('$ActionClass')");
14:24 dalek Inline-Perl5: }
14:24 dalek Inline-Perl5:
14:24 dalek Inline-Perl5: method end($c) is ActionClass["RenderView"] { }
14:24 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/196f427b93
14:24 AlexDaniel ah by the way
14:24 AlexDaniel m: use Test;
14:24 camelia rakudo-moar 666128: ( no output )
14:25 AlexDaniel m: use Test; done-testing
14:25 camelia rakudo-moar 666128: OUTPUT«1..0␤»
14:25 nine These 3 changes ^^^ turn extending Catalyst applications with Perl 6 from possible to down right simple! :)
14:25 vendethiel nine++
14:25 bazzaar o/ perl6
14:25 vendethiel \o
14:25 masak nine: I curse you with blogging about this :D
14:25 AlexDaniel 1..0?
14:25 dalek Inline-Perl5: 8e6dff1 | niner++ | META.info:
14:25 dalek Inline-Perl5: Version 0.18
14:25 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/8e6dff1f5a
14:25 bazzaar m: my @a=<1 2 3>; my @b=<a b c>; my @c=<0 0>; for @a Z @b Z @c -> [$a, $b, $c] { say ($a, $b, $c).join(",") }
14:25 camelia rakudo-moar 666128: OUTPUT«1,a,0␤2,b,0␤»
14:25 AlexDaniel bisectable6: use Test; done-testing
14:25 bisectable6 AlexDaniel, On both starting points (old=2015.12 new=666128f) the exit code is 0 and the output is identical as well
14:25 bisectable6 AlexDaniel, Output on both points: 1..0
14:26 masak with actual code examples
14:27 nine https://github.com/niner/XStats is my canonical Catalyst with Perl 6 example and it just lost almost all its Perl 6 support code as it's no longer necessary
14:28 bazzaar does anyone know a simpler way to avoid losing data in one of the input arrays, due to Z stopping when one of the input arrays is exhausted
14:28 timotimo nine: awesome
14:28 bazzaar I didn't explain that very well , sorry
14:29 hchienjo joined #perl6
14:29 timotimo depends on what you want to have happen when one of the arrays runs out
14:29 timotimo like, <<Operator>> will extend the shorter of the two by repeating it
14:29 timotimo that may not be what you want, however
14:29 AlexDaniel bazzaar: roundrobin ?
14:30 Jesmaybe joined #perl6
14:30 AlexDaniel m: say zip <a b c>, <1 2 3 4>
14:30 camelia rakudo-moar 666128: OUTPUT«((a 1) (b 2) (c 3))␤»
14:30 AlexDaniel m: say roundrobin <a b c>, <1 2 3 4>
14:30 camelia rakudo-moar 666128: OUTPUT«((a 1) (b 2) (c 3) (4))␤»
14:30 bazzaar timotimo: just padding out the missing elements would be fine
14:31 timotimo AlexDaniel: but you can't tell which one ran out that way
14:31 timotimo not without asking the arrays for their length, anyway
14:31 timotimo which would cause buffering if you have Seqs, i'd think
14:32 Juerd What's the usecase, anyway, where you have several lists of elements that apparently are related enough that those with the same index should be handled together, but that do not have the same length?
14:32 bazzaar AlexDaniel: I think roundrobin is what I'm looking for, didn't know it existed
14:33 dalek doc: f940ea8 | (Tom Browder)++ | doc/Language/testing.pod6:
14:33 dalek doc: add an example per p3rln00b and AlexDaniel
14:33 dalek doc: review: https://github.com/perl6/doc/commit/f940ea824c
14:33 AlexDaniel Juerd: dunno, but roundrobin behavior is very required in golfing :)
14:34 AlexDaniel too bad it takes a thousand of bytes to type it
14:34 AlexDaniel to use it, rather
14:34 bazzaar Juerd: I'm parsing a horribly formatted text file, and recombining the data, but it is only 95% successful, so there would be a post processing step
14:34 Jesmaybe joined #perl6
14:36 bazzaar so the different input arrays to roundrobin are not always the same length
14:40 itaipu joined #perl6
14:42 committable6 joined #perl6
14:43 bazzaar AlexDaniel: timotimo, and Juerd, many thanks for your help :)
14:49 Jesmaybe joined #perl6
14:50 rindolf joined #perl6
14:51 hchienjo joined #perl6
14:52 dalek doc: 43b6b02 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/testing.pod6:
14:52 dalek doc: Typo
14:52 dalek doc: review: https://github.com/perl6/doc/commit/43b6b0202f
14:53 AlexDaniel tbrowder: I like it
14:54 tbrowder Thanks to you and p3rln00b for good critiques!
15:01 Jesmaybe joined #perl6
15:08 ssqq joined #perl6
15:09 MilkmanDan joined #perl6
15:13 Jesmaybe joined #perl6
15:15 BenGoldberg joined #perl6
15:16 pierre_ joined #perl6
15:21 zakharyas joined #perl6
15:22 rgrinberg joined #perl6
15:44 domidumont joined #perl6
15:45 hchienjo joined #perl6
15:57 chienjo joined #perl6
16:02 AlexDaniel how do I .keep a promise if I'm not sure if it was kept or not?
16:02 AlexDaniel should I just wrap it in try {} ?
16:04 p3rln00b m: given Promise.new { .keep; .keep unless $_ }
16:04 camelia rakudo-moar 666128: ( no output )
16:04 AlexDaniel p3rln00b: what if it was kept right after unless ?
16:06 p3rln00b Fair 'nuf
16:06 AlexDaniel m: given Promise.new { .keep; try { .keep } }
16:06 camelia rakudo-moar 666128: ( no output )
16:06 AlexDaniel that's what I'm thinking about
16:13 AlexDaniel actually, nevermind
16:15 Jesmaybe joined #perl6
16:22 seatek joined #perl6
16:29 dylanwh_ joined #perl6
16:29 TEttinger joined #perl6
16:30 edenc joined #perl6
16:41 araujo_ joined #perl6
16:45 cdg joined #perl6
16:48 mst_ joined #perl6
17:05 lucasb_ joined #perl6
17:09 BenGoldberg m: given Promise.new { .keep xx 2 }
17:09 camelia rakudo-moar 666128: OUTPUT«Access denied to keep/break this Promise; already vowed␤  in block  at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
17:15 moritz t/spec$ git grep 'my int \@'|wc -l
17:15 moritz 28
17:16 moritz t/spec$ git grep 'my str \@'|wc -l
17:16 moritz 0
17:16 moritz that's, like, totally a big hole in our test suite, right? :-)
17:23 p3rln00b moritz: you clearly haven't seen the coverage results, if you think THAT is a big hole :) Exhibit A: http://perl6.wtf/src_core_Num.pm.coverage.html#L462
17:23 p3rln00b (hint: red means uncovered)
17:30 AlexDaniel p3rln00b: shhh. gfldex may see it and start wiping it all out from the docs
17:31 AlexDaniel that being said, we don't have nativenum doc-ed, so…
17:32 p3rln00b Well, wasn't the rule if it ain't in roast, it's not specced? I recall even some harsher terms being thrown around like "core devs and not doc team get to decide what is and isn't Perl 6". So I don't blame gfldex
17:33 p3rln00b Though, hopefully, all of accidentally uncovered stuff should be covered in about a month
17:36 gfldex some days ago i tried to install all modules from the ecosystem. About halve of them wont install because of failing tests. I'm quite sure most of those used to run just fine.
17:36 p3rln00b :(
17:36 gfldex So the harm is already done. Go and add whatever you want. :)
17:36 AlexDaniel p3rln00b: that absolutely right. But sometimes it's kinda obvious that something is a roast issue
17:40 AlexDaniel (that is, the behavior is obvious and everybody is already using it, it's just that there's no test for it for some reason)
17:42 nadim joined #perl6
17:47 zakharyas joined #perl6
17:55 * p3rln00b finds that a poor argument :}
17:55 p3rln00b m: my Num $i; my num $j; dd [ $i++, $j++ ]; # Not really obvious
17:55 camelia rakudo-moar 666128: OUTPUT«[0e0, NaN]␤»
17:57 AlexDaniel p3rln00b: we don't have to document edge cases if there are no tests then? ¯\_(ツ)_/¯
17:58 p3rln00b m: Mix.new-from-pairs(1 => .9999).Bag.values.say # non-obvious, non-edge case
17:58 camelia rakudo-moar 666128: OUTPUT«()␤»
17:59 p3rln00b AlexDaniel: I'd go more for "we should have tests for any edge cases, and if there are no tests, they should be added" :)
18:00 AlexDaniel p3rln00b: yes, that's the point
18:04 Derperperd joined #perl6
18:31 rindolf joined #perl6
18:36 AlexDaniel what would be the shortest NativeCall thing that segfaults?
18:37 timotimo m: use NativeCall; sub printf(int) is native(Str) {*}; printf(0);
18:37 camelia rakudo-moar 1acf5b: OUTPUT«Potential difficulties:␤    In 'printf' routine declaration - Not an accepted NativeCall type for parameter [1]  : int␤     --> For Numerical type, use the appropriate int32/int64/num64...␤    at <tmp>:1␤    ------> 3Call; sub printf(int) is nativ…»
18:37 timotimo m: use NativeCall; sub printf(int32) is native(Str) {*}; printf(0);
18:37 camelia rakudo-moar 1acf5b: ( no output )
18:37 timotimo m: use NativeCall; sub printf(int64) is native(Str) {*}; printf(0);
18:37 camelia rakudo-moar 1acf5b: ( no output )
18:37 timotimo apparently it accepts a null string?
18:38 arnsholt Maybe strdup(NULL)?
18:38 timotimo m: use NativeCall; sub strdup(int64) is native(Str) {*}; strdup(0);
18:38 camelia rakudo-moar 1acf5b: OUTPUT«(signal SEGV)»
18:38 timotimo good call
18:38 AlexDaniel alright
18:38 AlexDaniel thank you! Needed that for a test… ;)
18:39 timotimo m: use NativeCall; sub strdup(int64) is native(Str) {*}; strdup(0); signal(SIGSEGV).tap({ say "whoopsie!" })
18:39 camelia rakudo-moar 1acf5b: OUTPUT«(signal SEGV)»
18:39 timotimo :P
18:39 p3rln00b m: class { has %.foo = foo => 42; method bar ($e where %!foo{ $e.lc }:exists) { say "got it" } }.new.bar: 'foo'
18:39 camelia rakudo-moar 1acf5b: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Invalid typename 'exists' in parameter declaration.␤at <tmp>:1␤------> 3thod bar ($e where %!foo{ $e.lc }:exists7⏏5) { say "got it" } }.new.bar: 'foo'␤»
18:40 p3rln00b m: class { has %.foo = foo => 42; method bar ($e where { %!foo{ $e.lc }:exists } ) { say "got it" } }.new.bar: 'foo'
18:40 camelia rakudo-moar 1acf5b: OUTPUT«got it␤»
18:41 dalek ecosystem: 6b648ad | (Sterling Hanenkamp)++ | META.list:
18:41 dalek ecosystem: Adding CompUnit::DynamicLib to the ecosystem
18:41 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/6b648ad9e7
18:45 p3rln00b https://github.com/zostay/p6-CompUnit-DynamicLib
18:47 girafe joined #perl6
19:02 cdg joined #perl6
19:14 dalek Inline-Perl5: f3a06bf | niner++ | lib/Inline/Perl5.pm6:
19:14 dalek Inline-Perl5: No need for Perl5Attributes to be parametric
19:14 dalek Inline-Perl5:
19:14 dalek Inline-Perl5: Version 0.19
19:14 dalek Inline-Perl5: review: https://github.com/niner/Inline-Perl5/commit/f3a06bf815
19:18 Jesmaybe joined #perl6
19:20 Jesmaybe joined #perl6
19:21 bazzaar joined #perl6
19:21 bazzaar o/ perl6
19:21 DANtheBEASTman joined #perl6
19:22 bazzaar m: my @a = 1; my @b = 1..2; my @c = 1..3; for roundrobin(@a, @b, @c) -> $x { $x.say }
19:22 camelia rakudo-moar 1acf5b: OUTPUT«(1 1 1)␤(2 2)␤(3)␤»
19:25 bazzaar Hi, earlier today I was pointed to usage of the roundrobin sub, to solve my issue. That was great. I'm just pointing out that the docs give an example with flat in it which I think is clouded by that.
19:25 bazzaar m: my @a = 1; my @b = 1..2; my @c = 1..3; for flat roundrobin(@a, @b, @c) -> $x { $x.say }
19:25 camelia rakudo-moar 1acf5b: OUTPUT«1␤1␤1␤2␤2␤3␤»
19:26 moritz bazzaar: feel free to submit a patch that adds a better example
19:26 moritz bazzaar: or if you tell me your github username, I can give you direct push access
19:28 moritz docmax: if it was tracked before, and deleted upstream, git will also delete it locally after a git pull
19:28 bazzaar moritz: your first post, and I'm thinking, now how do I do that, ... your second post, I'm thinking wow that's terrifying
19:28 moritz sorry, wrong channel
19:28 moritz bazzaar: why terrifying? if you do something wrong, a simple 'git revert' will undo it
19:36 labster joined #perl6
19:38 bazzaar moritz: my github username is bazzaar, I will have a go
19:39 moritz bazzaar: invitation sent. Have the appropriate amount of fun!
19:39 moritz (and don't hesitate to ask for feedback here)
19:40 bazzaar moritz: thankyou
19:41 Derperperd joined #perl6
19:59 Sgeo joined #perl6
20:06 bjz joined #perl6
20:11 bjz_ joined #perl6
20:22 shin_ joined #perl6
20:27 dalek doc/spellcheck: ad907e8 | coke++ | doc/Language/subscripts.pod6:
20:27 dalek doc/spellcheck: other instances used the US version
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/ad907e8512
20:27 dalek doc/spellcheck: 378ce60 | (Tom Browder)++ | doc/Language/testing.pod6:
20:27 dalek doc/spellcheck: add caution about done-testing
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/378ce60ccc
20:27 dalek doc/spellcheck: fa5a640 | (Tom Browder)++ | doc/Language/testing.pod6:
20:27 dalek doc/spellcheck: expand the note per AlexDaniel's comments
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/fa5a640ad5
20:27 dalek doc/spellcheck: 3014124 | (Tom Browder)++ | doc/Language/testing.pod6:
20:27 dalek doc/spellcheck: add an example per p3rln00b and AlexDaniel
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/301412450f
20:27 dalek doc/spellcheck: 20d109d | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/testing.pod6:
20:27 dalek doc/spellcheck: Typo
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/20d109db0f
20:27 dalek doc/spellcheck: 8596adb | coke++ | doc/Language/testing.pod6:
20:27 dalek doc/spellcheck: remove trailing ws
20:27 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/8596adba7c
20:28 zakharyas1 joined #perl6
20:28 AlexDaniel [Coke]: this didn't look like a merge
20:34 Jesmaybe joined #perl6
21:00 wamba joined #perl6
21:03 flexibea` joined #perl6
21:08 labster joined #perl6
21:11 cdg joined #perl6
21:14 cdg joined #perl6
21:28 firstdayonthejob joined #perl6
21:41 Ven_ joined #perl6
21:43 Ven__ joined #perl6
21:46 yqt joined #perl6
22:06 BenGoldberg joined #perl6
22:15 BenGoldberg m: dd Mix.new-from-pairs( 1 => .9999 );
22:15 camelia rakudo-moar 1acf5b: OUTPUT«(1=>0.9999).Mix␤»
22:15 BenGoldberg m: dd Mix.new-from-pairs( 1 => .9999 ).Bag;
22:15 camelia rakudo-moar 1acf5b: OUTPUT«().Bag␤»
22:17 BenGoldberg m: dd Mix.new-from-pairs( 1 => pi ).Bag;
22:17 camelia rakudo-moar 1acf5b: OUTPUT«(1=>3).Bag␤»
22:18 BenGoldberg s: Mix, 'Bag', ();
22:18 SourceBaby BenGoldberg, Ehhh... I'm too scared to run that code.
22:18 BenGoldberg s: Mix, 'Bag', ()
22:18 BenGoldberg s: Mix.new-from-pairs( 1 => pi ), 'Bag';
22:20 p3rln00b You broke my robot!
22:21 p3rln00b But the code's here: https://github.com/rakudo/rakudo/blob/nom/src/core/Mix.pm#L37
22:21 p3rln00b s: &say
22:27 p3rln00b Seems hack is churning on something. Undercover is still connected, but I can't ssh (just hangs )
22:30 timotimo uh oh, again?
22:30 p3rln00b Does that happen often?
22:30 p3rln00b I wonder if my bots are leaking :/
22:30 timotimo i'll look into it in a bit, gotta do some stuff first
22:31 timotimo usually hack b0rks because of one of the virtual disk is dying
22:31 timotimo it just suddenly stops doing anything, so we just reboot the vm and everything's fine
22:32 itaipu joined #perl6
22:35 dalek joined #perl6
22:35 synopsebot6 joined #perl6
22:35 timotimo hack is back
22:35 p3rln00b timotimo++
22:35 timotimo we should tell all those people to get an account on irc.p6c.org
22:35 timotimo those that just flew from the 'net
22:35 Jesmaybe_ joined #perl6
22:37 Undercover joined #perl6
22:37 SourceBaby joined #perl6
22:42 canopus joined #perl6
22:47 NeuralAnomaly joined #perl6
22:49 bjz joined #perl6
23:00 dalek whateverable: 43a553a | (Aleks-Daniel Jakimenko-Aleksejev)++ | t/ (3 files):
23:00 dalek whateverable: Move some logic into Testable.pm6
23:00 dalek whateverable:
23:00 dalek whateverable: It's not pretty, but it works fine for tests. But let's have this
23:00 dalek whateverable: ugliness only once.
23:00 AlexDaniel mmm… yeah
23:00 dalek joined #perl6
23:05 rgrinberg joined #perl6
23:08 dalek whateverable: 69ff223 | (Aleks-Daniel Jakimenko-Aleksejev)++ | t/lib/Testable.pm6:
23:08 dalek whateverable: Oops. This is what I actually meant in 43a553a596
23:08 dalek whateverable:
23:08 dalek whateverable: Also, give it a bit more time to settle down.
23:08 dalek whateverable: review: https://github.com/perl6/whateverable/commit/69ff223ad5
23:11 evalable6 joined #perl6
23:11 AlexDaniel m: say 42
23:11 camelia rakudo-moar 1acf5b: OUTPUT«42␤»
23:11 evalable6 AlexDaniel, rakudo-moar 666128f: OUTPUT«42»
23:11 AlexDaniel wrong…
23:13 geekosaur evilable? :p
23:19 evalable6test joined #perl6
23:19 AlexDaniel m: say 42
23:19 camelia rakudo-moar 1acf5b: OUTPUT«42␤»
23:20 lucasb_ joined #perl6
23:21 AlexDaniel oh well, it's ‘+camelia’ :)
23:22 p3rln00b What does it do?
23:23 AlexDaniel p3rln00b: evalable you mean?
23:23 AlexDaniel p3rln00b: by the way, NAMES returns a list of nicknames in a slightly interesting way…
23:24 p3rln00b Well, it includes op/voice markers
23:24 AlexDaniel yea
23:24 p3rln00b And yeah, I meant what does evalable do
23:26 AlexDaniel p3rln00b: basically, it is camelia on drugs
23:26 AlexDaniel so not that interesting
23:27 AlexDaniel if during netsplit you end up on the same side with evalable but not camelia, it will answer m: commands
23:27 AlexDaniel (or if camelia is k-lined again)
23:28 p3rln00b ah
23:29 AlexDaniel otherwise it is identical, I think. It does allow you to set custom stdin, it will accept any raw link but not normal github links, it will gist long output, etc.
23:29 samcv hey p3rln00b i have the code working with no errors now, but it doesn't seem to call irc-privmsg-channel at all http://vpaste.net/ptraK
23:29 samcv it does start the script though i have confirmed that
23:30 samcv but i added a say in there to print out whenever something was said in the channel, but it doesn't print out anything at all
23:33 cdg joined #perl6
23:36 evalable6 joined #perl6
23:37 evalable6 joined #perl6
23:38 Jesmaybe_ joined #perl6
23:40 evalable6 joined #perl6
23:40 AlexDaniel m: say 42
23:40 camelia rakudo-moar eb3123: OUTPUT«42␤»
23:40 AlexDaniel ok
23:40 AlexDaniel evilable: say 666
23:40 evalable6 AlexDaniel, rakudo-moar 666128f: OUTPUT«666»
23:40 AlexDaniel geekosaur: ↑ ;)
23:42 lucasb_ it's name is evalable6, but you have to address it as evilable?
23:42 p3rln00b And 666... is a real commit? :O)
23:42 geekosaur they edit correct their names
23:42 lucasb_ evalable6: say 42
23:42 evalable6 lucasb_, rakudo-moar 666128f: OUTPUT«42»
23:42 lucasb_ hmm
23:43 p3rln00b samcv: .write actually takes a Blob, not a Str, so you need to encode it.
23:43 AlexDaniel p3rln00b: surprisingly… it is :)
23:43 p3rln00b m: dd "Meow meow".encode
23:43 camelia rakudo-moar eb3123: OUTPUT«utf8.new(77,101,111,119,32,109,101,111,119)␤»
23:43 p3rln00b m: dd "Meow meow".encode.^name
23:43 camelia rakudo-moar eb3123: OUTPUT«"utf8"␤»
23:43 p3rln00b bah
23:43 samcv p3rln00b, shouldn't it at least print something out though?
23:43 p3rln00b Well, tis a blob
23:44 p3rln00b samcv: it does for me: https://gist.github.com/zoffixznet/ac6892eeea76124a8fd29b35bf624e93
23:44 samcv so it's getting called but i can't set the $body = $e.text and stuff like that?
23:45 samcv hmm weird. ok. thank you. weird
23:45 AlexDaniel ebalable: .say for ^100
23:45 evalable6 AlexDaniel, rakudo-moar eb3123e: OUTPUT«0␤1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤14␤15␤16␤17␤18␤19␤20␤21␤22␤23␤24␤25␤26␤27␤28␤29␤30␤31␤32␤33␤34…»
23:45 evalable6 AlexDaniel, Full output: https://gist.github.com/b980e3d318d23ecff14e0072f0f06c13
23:45 p3rln00b samcv: maybe your stuff is too old? (Perl 6 or IRC::Client)
23:46 p3rln00b evilable: $*EXECUTABLE.IO.slurp.say
23:46 samcv well i have 2016.09 rakudo let me see if i need to update the client
23:46 evalable6 p3rln00b, rakudo-moar eb3123e: OUTPUT«#!/bin/sh␤exec /tmp/whateverable/rakudo-moar/eb3123e5e60fa1635ed1ee121cec1290c290044a/bin/moar…»
23:46 evalable6 p3rln00b, Full output: https://gist.github.com/c37a242b7a9b560afb9ff3cf4c3b2af2
23:46 p3rln00b samcv: 2016.10 is the latest :)
23:47 p3rln00b (since about 10 minutes ago)
23:47 samcv hahahha
23:47 samcv great :)
23:47 shin_ hi all... how can i do a sub such as
23:47 shin_ m: sub test1(*@v) { dd @v; }; my $a = 1; test1($a,2,3,5);
23:47 camelia rakudo-moar eb3123: OUTPUT«[1, 2, 3, 5]␤»
23:48 shin_ but showing that the first parameter was a variable called $a and the other were constants?
23:48 lucasb_ maybe when macros arrive in P6
23:50 p3rln00b m: sub test1(*@v is rw) { dd .VAR.name for @v; }; my $a = 1; test1($a,2,3,5);
23:50 camelia rakudo-moar eb3123: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Can only use 'is rw' on a scalar ('$' sigil) parameter␤at <tmp>:1␤»
23:50 p3rln00b shin_: it might not even be available, since you're slurping
23:50 cdg joined #perl6
23:50 p3rln00b m: sub test1() { dd .VAR.name for @_; }; my $a = 1; test1($a,2,3,5);
23:50 camelia rakudo-moar eb3123: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Placeholder variable '@_' cannot override existing signature␤at <tmp>:1␤------> 3sub7⏏5 test1() { dd .VAR.name for @_; }; my $a␤»
23:50 lucasb_ m: sub f(\x, \y) { say x.VAR.WHAT, y.VAR.WHAT }; my $x = 10; f($x, 20)
23:50 camelia rakudo-moar eb3123: OUTPUT«(Scalar)(Int)␤»
23:50 * p3rln00b shrugs
23:51 p3rln00b m: sub f(\x, \y) { say x.VAR.name, y.VAR.name }; my $x = 10; f($x, 20)
23:51 camelia rakudo-moar b744de: OUTPUT«No such method 'name' for invocant of type 'Int'␤  in sub f at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
23:51 p3rln00b m: sub f(\x, \y) { say x.VAR.name, y.VAR.?name // 'nada' }; my $x = 10; f($x, 20)
23:51 camelia rakudo-moar b744de: OUTPUT«$xnada␤»
23:52 timotimo m: sub test1(*@v is raw) { say @v[0].VAR.perl; say @v[1].VAR.perl }; my $var = 999; test1($var, 1, 2, 3)
23:52 camelia rakudo-moar b744de: OUTPUT«Int.new␤1␤»
23:52 AlexDaniel m: sub test1(*@v is raw) { try { dd .VAR.name } for @v }; my $a = 1; my $b = 25; test1($a,2,3,$b)
23:53 camelia rakudo-moar b744de: OUTPUT«"\$a"␤"\$b"␤»
23:53 AlexDaniel ahhhh
23:53 AlexDaniel timotimo: :E
23:53 timotimo :)
23:53 timotimo my output wasn't as good as yours, though
23:53 AlexDaniel but yeah! Surprisingly, you can do it!
23:53 AlexDaniel who would've thought!
23:53 shin_ left #perl6
23:53 shin_ joined #perl6
23:54 shin_ I know i can use this already: m: my $a = 1; my $b = "hello!", my $c = { $_ x  2}; dd($a, $b, $c);
23:54 p3rln00b :)
23:54 shin_ m: my $a = 1; my $b = "hello!", my $c = { $_ x  2}; dd($a, $b, $c);
23:54 camelia rakudo-moar b744de: OUTPUT«Int $a = 1␤Str $b = "hello!"␤Block $c = -> ;; $_? is raw { #`(Block|82687016) ... }␤»
23:54 AlexDaniel shin_: https://irclog.perlgeek.de/perl6/2016-10-15#i_13410414 ?
23:54 * p3rln00b &
23:55 shin_ Hehe, great :)
23:55 shin_ Thanks AlexDaniel
23:56 AlexDaniel m: sub foo(*@v is raw) { say .VAR.?name // $_ for @v }; my $a = 1; my $b = 25; foo($a,2,3,$b)
23:56 camelia rakudo-moar b744de: OUTPUT«$a␤2␤3␤$b␤»
23:57 AlexDaniel another cool thing in Perl 6 is Proxy
23:57 AlexDaniel which is not related to this, but it is just as cool as 「is raw」

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

Perl 6 | Reference Documentation | Rakudo