Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2015-04-11

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:22 TimToady the failure mode is that JAST::Instruction.new has a slurpy *@args, and the first time we call it with any args, it says: Wrong number of arguments passed; expected 1..1, but got 6
00:22 laouji joined #perl6
00:23 TimToady as if the sig has @args instead of *@args, so probably a boolean lost somewhere due to ?"0"-ness
00:23 TimToady somewhere down in the metamodel/binder
00:32 eli-se That reminds me of me choosing to use 0 as the ID of the root user in a Python system. Each day I run a tool that detects suspicious constructs such as 'if user_id:' which should really be 'if user_id is not None:'.
00:33 eli-se I should have created a proper UserID data type since the current state of affairs is a nightmare. :D
00:36 * geekosaur is suddenly reminded of ruby programs he's run across that extend nilClass to check if they're being used with <x> and if so substitute an appropriate value...
00:47 TimToady well, I just don't see where the problem is; guessing it's a stage0 vs stage1 issue
00:48 * TimToady givingup, soif anyoneelse wants to lookatit, feelfree.
00:49 * TimToady retreatsfromthefinalfrontier
00:56 eli-se geekosaur: or be like Objective-C: class NilClass; def method_missing(*args); /* no-op */ end; end
00:57 eli-se Sending a message to nil is a no-op in Objective-C. \o/
01:00 tinyblak joined #perl6
01:12 BenGoldberg joined #perl6
01:15 colomon joined #perl6
01:27 vendethiel joined #perl6
01:46 ilbot3 joined #perl6
01:46 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, std:, or /msg camelia p6: ... | irclog: http://irc.perl6.org | UTF-8 is our friend! | feather will shut down permanently on 2015-03-31
01:55 muraiki joined #perl6
02:16 noganex_ joined #perl6
02:22 laouji_ joined #perl6
02:26 laouji joined #perl6
02:28 laouji joined #perl6
02:29 larion joined #perl6
02:35 FROGGS joined #perl6
02:43 dalek rakudo/nom: 2cb72b2 | TimToady++ | src/core/Any.pm:
02:43 dalek rakudo/nom: add a print-nl default method
02:43 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/2cb72b2141
02:51 TimToady I hate it when I mistype TEST_JOBS and don't notice till S17...
02:52 awwaiid CORE::.keys.grep(/infix/)>>.say # this used to give me a list of the core infix ops, but doesn't now (rakudo-star 2015-03). Is there a new way?
02:54 awwaiid hm. I see them in there with CORE::, but I don't see them in the .keys
02:55 TimToady works here
02:55 awwaiid alright. thanks
02:56 TimToady (not star, master)
02:56 TimToady star-m: CORE::.keys.grep(/infix/)>>.say
02:56 camelia star-m 2013.03: OUTPUT«&infix:<andthen>␤&infix:<…>␤&infix:<...>␤&infix:<does>␤&infix:<≽>␤&infix:<≼>␤&infix:<⊎>␤&infix:<⊍>␤&infix:<⊅>␤&infix:<(>)>␤&infix:<⊇>␤&infix:<⊄>␤&infix:<(<)>␤&infix:<⊆>␤&infix:<⊖>␤&infix:<∖>␤&infix:<∩>␤…»
02:56 awwaiid huh. ok cool
02:57 awwaiid hm. this REPL hates me. -e works as expected.
02:57 TimToady esp if you use non-ascii
02:58 TimToady I just wish the shell had another decent quote character other than '
02:59 pullphinger joined #perl6
03:00 awwaiid oh wow you're right -- I exited and started it again and it worked, and surely used non-ascii previously
03:00 awwaiid I'll have to watch out for that!
03:02 awwaiid I often use $( ... ) as my `` char, but that only helps a subset of cases :)
03:04 TimToady hmm, I wonder if we could do a cheap repl by inputting lines in the shell and then piping to 'perl6 -'
03:05 TimToady probably wouldn't have shell-line editing though
03:16 aindilis joined #perl6
03:28 rhr joined #perl6
03:49 awwaiid rlwrap
03:53 awwaiid rlwrap perl6 - # seems to wait for ctrl-d before doing anything, like cat|perl6 -
04:04 FROGGS_ joined #perl6
04:04 aindilis joined #perl6
04:05 Exodist joined #perl6
04:16 SamuraiJack joined #perl6
04:25 laouji joined #perl6
04:28 BenGoldberg So I've got some perl6 code I want to benchmark, but I'm on windows and don't have the 'times' command.  Does anyone know a reasonable substitute?
04:31 pecastro joined #perl6
04:31 lolisa joined #perl6
04:31 anaeem1_ joined #perl6
04:47 skids .oO(Something needs to be done so Perl6 manpages and Perl5 manpages for identically named packages can coexsist)
04:53 adu joined #perl6
05:05 Sqirrel joined #perl6
05:09 kaare_ joined #perl6
05:15 virtualsue joined #perl6
05:57 rindolf joined #perl6
05:57 lolisa joined #perl6
06:04 telex joined #perl6
06:07 gfldex joined #perl6
06:23 anaeem1_ joined #perl6
06:55 laouji joined #perl6
07:06 anaeem1 joined #perl6
07:07 laouji joined #perl6
07:11 FROGGS smoking the ecosystem is almost impossible now
07:12 FROGGS startup time with ~200 dists installed is at 3.6s :o(
07:12 FROGGS sadly I am afk/offline most of the weekend
07:15 lolisa joined #perl6
07:22 cschwenz joined #perl6
07:31 Sqirrel joined #perl6
07:31 yvan1 joined #perl6
07:35 _mg_ joined #perl6
07:41 lolisa joined #perl6
07:41 inokenty joined #perl6
07:42 vendethiel joined #perl6
07:48 rurban_ joined #perl6
07:58 diana_olhovik_ joined #perl6
08:09 Sqirrel joined #perl6
08:23 darutoko joined #perl6
08:43 rindolf joined #perl6
08:45 krunen joined #perl6
08:47 RabidGravy joined #perl6
08:50 masak good antenoon, #perl6
08:53 anaeem1 joined #perl6
08:58 robinsmidsrod joined #perl6
08:59 vendethiel joined #perl6
09:03 masak updated http://strangelyconsistent.org/blog/here-be-heredocs to reflect TimToady++'s latest work.
09:07 Sqirrel joined #perl6
09:14 vendethiel- joined #perl6
09:15 Sqirrel joined #perl6
09:39 rurban_ joined #perl6
09:42 eli-se joined #perl6
09:42 Perl6_newbee joined #perl6
09:52 robinsmidsrod joined #perl6
10:05 Sqirrel joined #perl6
10:22 Sqirrel joined #perl6
10:24 _mg_ joined #perl6
10:25 anaeem1_ joined #perl6
10:26 robinsmidsrod joined #perl6
10:33 cschwenz1 joined #perl6
10:37 robinsmidsrod joined #perl6
10:49 robinsmidsrod joined #perl6
10:50 literal masak: I updated perl6.vim to not choke on the whitespace in "qq :to" :P
10:52 masak :)
10:52 masak literal++
10:56 colomon masak++ # nice post
10:56 robinsmidsrod joined #perl6
10:57 diana_olhovik_ joined #perl6
10:59 robinsmidsrod joined #perl6
11:03 robinsmidsrod joined #perl6
11:07 robinsmidsrod joined #perl6
11:10 robinsmidsrod joined #perl6
11:25 robinsmidsrod joined #perl6
11:34 RabidGravy joined #perl6
11:47 kurahaupo joined #perl6
11:50 robinsmidsrod joined #perl6
11:51 timotimo oh, cool
11:55 BenGoldberg joined #perl6
12:11 spider-mario joined #perl6
12:26 diana_olhovik__ joined #perl6
12:37 masak feels like all of #perl6 has taken the weekend off ;)
12:42 ShimmerFairy masak: wouldn't qq:to<VERSE> be seen as an argument to the :to adverb, or was that trickiness about () next to an adverb? (Feels like an argument in any case, so I personally wouldn't go for it)
12:42 ShimmerFairy masak++ too :)
12:42 masak it *is* an argument to the :to adverb
12:42 colomon masak: some of us are still trying to wake up
12:43 masak oh right. because time zones.
12:44 ShimmerFairy Oh? I always thought the :to adverb just told the Q lang "the string you get actually specifies the end delimiter to a heredoc. Oh and a heredoc is coming your way."
12:47 masak m: sub heredoc(:$to) { say "the value of the :to adverb is $to" }; say heredoc :to<VERSE>
12:47 camelia rakudo-moar 0b2092: OUTPUT«the value of the :to adverb is VERSE␤True␤»
12:47 masak m: sub heredoc(:$to) { say "the value of the :to adverb is $to" }; heredoc :to<VERSE>
12:47 camelia rakudo-moar 0b2092: OUTPUT«the value of the :to adverb is VERSE␤»
12:47 masak m: sub heredoc(:$to) { say "the value of the :to adverb is $to" }; heredoc :to 'VERSE'
12:47 camelia rakudo-moar 0b2092: OUTPUT«5===SORRY!5=== Error while compiling /tmp/e1miiceVuj␤Two terms in a row␤at /tmp/e1miiceVuj:1␤------> 3of the :to adverb is $to" }; heredoc :to7⏏5 'VERSE'␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤  …»
12:47 masak well, there is some exception to the parsing going on.
12:48 masak but otherwise :to feels to me like an ordinary named argument on q or qq.
12:48 masak m: sub heredoc(:$to) { say "the value of the :to adverb is $to" }; heredoc :to('VERSE')
12:48 camelia rakudo-moar 0b2092: OUTPUT«the value of the :to adverb is VERSE␤»
12:49 ShimmerFairy Yeah, I just always saw the delimiter as the string given to Q, and the heredoc being some separate, special thing. (That is, that a heredoc's text isn't equivalent in the language's eyes to  qq"the text in the heredoc")
12:50 ShimmerFairy or, to put it simply, I never thought of :to as taking an argument :P
12:50 masak oh, I see what you mean.
12:50 masak that might actually be a much closer understanding of what's going on.
12:51 masak "here, have a placeholder string -- but because I also said :to, we will go into heredoc parsing mode at the next newline"
12:51 moritz [ptc]++
12:51 ShimmerFairy so :to<VERSE> seemed to me like you were giving :to an argument, and leaving the Q lang no string to use as a delimiter, assuming <> next to an adverb without space is interpreted as an argument to it.
12:52 masak ShimmerFairy: I'm sorely tempted to add the essence of this discussion to the blog post. I wonder if it'd detract from the main thread of things too much or not.
12:52 ShimmerFairy Might be worth another post, if nothing else :)
12:52 masak oh, you're right.
12:53 ShimmerFairy I do realize I'm trying to make a very fine distinction, judging by how I struggled to put the point across.
12:53 timotimo https://github.com/botwillacceptanything/botwillacceptanything - interesting implementation of basically nomic
12:53 masak timotimo: wow, yes.
12:54 masak "No other entities, whether biological, legal, or digital, may claim ownership of any property owned by the Autonomous Software." *snrk*
12:54 nine masak: the way to indent the terminator in P5 is to include the indentation in the declaration: my $foo = <<'    END';
12:54 ShimmerFairy masak: for a while actually I saw  q:to/DELIM/  as one indivisible "atom" of syntax, and then one day I went "oh! qq is the Q lang thing, :to is the adverb, and /DELIM/ is the string! And the heredoc is a special extra thing the compiler knows how to handle."
12:54 masak nine: yeah, but. ick.
12:55 nine masak: exactly :)
12:55 masak ShimmerFairy: you're now convinced me that this deserves an extra blog post.
12:56 ShimmerFairy I'm fully willing to admit that my intuition that one day was wrong if it turns out to be so, though :)
12:57 ShimmerFairy m: sub heredoc(:$to) { say "the value of the :to adverb is $to" }; heredoc :to/VERSE/
12:57 camelia rakudo-moar 0b2092: OUTPUT«5===SORRY!5=== Error while compiling /tmp/69SOA7w1s0␤Missing required term after infix␤at /tmp/69SOA7w1s0:1␤------> 3:to adverb is $to" }; heredoc :to/VERSE/7⏏5<EOL>␤    expecting any of:␤        prefix␤        term␤»
12:57 ShimmerFairy interesting
12:59 ShimmerFairy masak: by the way, and this is probably thanks to the synopses, q:to/DELIM/ just looks like a heredoc specifier to me (like << does to a P5 programmer, I bet), so there's no way you're stopping my // delims any time soon! :P
13:00 masak ShimmerFairy: as I said in the blog post, I don't expect to stop the inevitable flow of // usage :)
13:00 ShimmerFairy you say "inevitable" like it hasn't already happened :P
13:01 masak it's happened, it's happening, it will keep happening.
13:24 Rounin joined #perl6
13:27 koo5 joined #perl6
13:30 masak "mkdir a directory and all its parents" is already spec'd in newio, as `mkpath`
13:30 rmgk_ joined #perl6
13:30 masak if we're gonna have that functionality in core, that's the name it should have :)
13:32 eli-se joined #perl6
13:38 masak .tell lizmat I'm not sure I think the second positional to tmpdir/homedir pulls its own weight. why not just construct the desired path object and pass it in as the first argument?
13:38 yoleaux masak: I'll pass your message to lizmat.
13:38 dalek specs/newio: 84bb1f5 | (Carl Masak)++ | S16-io.pod:
13:38 dalek specs/newio: fix copy-pasto
13:38 dalek specs/newio: review: https://github.com/perl6/specs/commit/84bb1f59d3
13:42 masak std: sub foo($a, $b --> Bool {}
13:42 camelia std 28329a7: OUTPUT«5===SORRY!5===␤Unable to parse signature at /tmp/d5F8WHwBdj line 1:␤------> 3sub foo7⏏5($a, $b --> Bool {}␤Couldn't find final ')'; gave up at /tmp/d5F8WHwBdj line 1:␤------> 3sub foo($a, $b --> Bool 7⏏5{}␤    expecting any of:␤    constr…»
13:42 masak std: sub foo($a, $b --> Bool) {}
13:42 camelia std 28329a7: OUTPUT«Potential difficulties:␤  $a is declared but not used at /tmp/pEuPk47vzO line 1:␤------> 3sub foo(7⏏5$a, $b --> Bool) {}␤  $b is declared but not used at /tmp/pEuPk47vzO line 1:␤------> 3sub foo($a, 7⏏5$b --> Bool) {}␤ok 00:00 139m␤»
13:42 masak std: sub foo($a, $b --> Bool) { say "yeah, yeah. using $a and $b. sheesh!" }
13:42 camelia std 28329a7: OUTPUT«ok 00:00 141m␤»
13:42 masak std: sub foo($a, $b, --> Bool) { say "yeah, yeah. using $a and $b. sheesh!" }
13:42 camelia std 28329a7: OUTPUT«ok 00:00 141m␤»
13:43 dalek specs/newio: ff4f647 | (Carl Masak)++ | S32-setting-library/IO.pod:
13:43 dalek specs/newio: remove extraneous comma before -->
13:43 dalek specs/newio:
13:43 dalek specs/newio: Syntax is allowed, it seems. But all the other siggies don't have that comma.
13:43 dalek specs/newio: review: https://github.com/perl6/specs/commit/ff4f647473
13:48 [Tux] HELP!
13:48 [Tux] resolve stage failed for Slang::Tuxic: Project Slang::Tuxic not found in the ecosystem
13:48 masak oh noes
13:49 * [Tux] now installed from git
13:50 [Tux] # Failed test ''0' in Boolean context'
13:50 masak |Tux|: right. that changed yesterday.
13:50 [Tux] why? why? why? (I read the discussion)
13:50 masak m: say ?"0"
13:50 camelia rakudo-moar 0b2092: OUTPUT«True␤»
13:50 [Tux] that is so NOT perl
13:50 masak |Tux|: because Perl 6 makes a clearer distinction between numbers and strings.
13:51 masak non-empty strings are truthy. only the empty string is falsy.
13:51 [Tux] what was the verdict: 51 to 49?
13:51 masak no, there was agreement pretty much across the board.
13:51 [Tux] hmmm
13:52 nine I abstained
13:52 * masak steps in front of nine, discreetly hiding him
13:52 masak complete agreement.
13:53 [Tux] I see someone in the back trying to raise a hand?
13:53 nine On the one hand PHP also considers "0" as true and it really sucks. On the other hand Perl 6 at least allows you to sanely state what data type you expect. So it's hard to say how it will be in practice.
13:53 masak I see April hath no release manager.
13:54 [Tux] method Bool {
13:54 [Tux] $.text.defined && ($.text ne "0" && ?$.text);
13:54 [Tux] }
13:54 [Tux] :P
13:54 masak m: say Date(2015, 4, 23) - Date.today
13:54 camelia rakudo-moar 0b2092: OUTPUT«Cannot find method 'Date'␤  in block <unit> at /tmp/e_gN0Bdox7:1␤␤»
13:54 masak m: say Date.new(2015, 4, 23) - Date.today
13:54 camelia rakudo-moar 0b2092: OUTPUT«12␤»
13:54 nine I guess most falsy "0"s will come as URI parameters or parsed files. In both cases, APIs should be able to deal with it sensibly.
13:55 masak |Tux|: what about "0.0" ?
13:55 masak |Tux|: and "0." and "0e1" ?
13:55 nine m: say ?+"0"
13:55 camelia rakudo-moar 0b2092: OUTPUT«False␤»
13:55 [Tux] CSV is strings: it does not know about Int
13:55 masak |Tux|: why do you only check for that particular string zero? seems very arbitrary.
13:55 nine [Tux]: it's so easy to numify
13:56 [Tux] this was the first thing that sprang to mind
13:56 masak well, you can only numify if you know you have a number.
13:56 [Tux] I think I want "" or "0"
13:56 nine [Tux]: CSV cannot distinguish, true. But the code that processes the data contained in the CSV should know the data types involved.
13:56 masak yes, but why? there are a lot of strings that can represent 0.
13:57 nine DBI even uses "0e0" to mean zero but true.
13:57 [Tux] $.text.defined && $.text ne "0" && $.text ne "";
13:57 nine A neat hack but still a hack :)
13:57 masak nine: so does the infix:<..> operator in list context in p5, IIRC.
13:58 nine masak: we have to admit though, that it's probably a bit less DWIM and makes thinking about data types less optional. Which _is_ a step away from P5.
13:58 masak [Tux]: so " 0" is truthy? or is whitespace already trimmed at that point?
13:58 masak |Tux|: what about "00" ?
13:58 masak |Tux|: how about "0x0" ?
13:58 [Tux] yes, truth, and trimming is an option
13:58 [Tux] 0x0 it trutch, just as 0e0
13:59 masak ok. for some reason. :)
14:00 nine [Tux]: so the rule is: an undefined or empty string is falsy, or if it contains a zero but only if the zero is spelled exactly as "0" not any of the other ways to write it.
14:00 nine [Tux]: the part about the zero drowns the rest of the rule
14:01 [Tux] sounds about right
14:01 [Tux] I might come back on thise once/if I implement typed fields
14:02 [Tux] btw, lots of perl6 talks on NLPW, and people seemed to be enthusiastic
14:02 nine [Tux]: and we have: numbers can be written as decimals, hex, or binary or in scientific notation everywhere, including in strings, except for the zero in a string that makes it evaluate to False in boolean context. That may only be written as a decimal number with no leading zeros.
14:04 [Tux] I only came to halfway my stuff because of the overwhelming amount of questions - which I asked for
14:04 nine [Tux]: it's just such a special special case for the sake of some DWIM. And I've seen people write code like "if $str" which misses this special case so many times and had to fix real bugs that come from this.
14:04 masak |Tux|: ooc, what did people ask about?
14:04 masak er, [Tux]
14:05 [Tux] longest subject was the difference between undef in perl5 and Nil, Any, Str, Int in perl6
14:06 [Tux] and why one would need it. which of course is easy to explain :)
14:06 moritz masak++ # blog post
14:06 masak I can see how that explanation might get long, yes :)
14:07 [Tux] masak, as I am "almost" done, what are the specifics that you require ?
14:08 [Tux] if I add "strict" to what I already have, would that suffice for you?
14:08 masak [Tux]: I don't require anything, I think. I'm willing to take my Text::CSV off the ecosystem now.
14:09 [Tux] and how do I then upload mine?
14:09 masak commit to https://github.com/perl6/ecosystem
14:10 [Tux] FWIW having Slang::Tuxic not available through panda makes Travis fail
14:10 dalek ecosystem: 7893ed3 | masak++ | META.list:
14:10 dalek ecosystem: remove my Text::CSV from the ecosystem
14:10 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/7893ed3940
14:10 masak [Tux]: ^^
14:11 [Tux] do I create a pull request?
14:12 moritz [Tux]: if you can't commit directly, tell me your github ID, and I'll give you access
14:12 [Tux] Tux
14:12 moritz [Tux]: invitation sent
14:16 anaeem1 joined #perl6
14:17 dalek ecosystem: 1a79bb1 | (H.Merijn Brand)++ | META.list:
14:17 dalek ecosystem: Add Text::CSV to the ecosystem
14:17 dalek ecosystem:
14:17 dalek ecosystem: This is work based on perl5's Text::CSV_XS
14:17 dalek ecosystem: Extended to support most of the beauty the perl6 has to offer
14:17 dalek ecosystem: Implemented some of the features that masak's Text::CSV had
14:17 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/1a79bb1634
14:17 masak [Tux]++
14:18 [Tux] docs is work in progress, as is the csv top-level function
14:18 anaeem1_ joined #perl6
14:19 robinsmidsrod joined #perl6
14:19 [Tux] shit, that means I just committed myself to some maint work :/
14:20 eli-se joined #perl6
14:20 BenGoldberg joined #perl6
14:20 jdv79 is the nlpw site down?
14:26 eli-se jdv79:
14:26 eli-se yes
14:26 eli-se hij is kapot
14:28 [Tux] eli-se, did I miss you yesterday or did you deliberately try to avoid me?
14:28 eli-se I did not try to avoid anyone!
14:28 eli-se But I was at home.
14:30 robinsmidsrod joined #perl6
14:36 n0vacane left #perl6
14:40 robinsmidsrod joined #perl6
14:43 RabidGravy joined #perl6
14:46 raiph joined #perl6
14:48 raiph .tell ptc http://www.reddit.com/r/perl6/comments/326wat/examplesperl6org/cq8q0yq
14:48 yoleaux raiph: I'll pass your message to ptc.
14:53 BenGoldberg I'm having a problem, which I *think* is caused due to gather/take.  Here's the version with a workaround (http://fpaste.scsys.co.uk/471895), but if I change lines 41 and 42, swapping which is commented, I get "uninitialized value" errors on lines 23 and 26.
14:54 molaf_ joined #perl6
15:01 dalek perl6-examples: ac2cbfc | (L. Grondin)++ | categories/best-of-rosettacode/binomial-coefficient.pl:
15:01 dalek perl6-examples: updating binomial coeff implementation
15:01 dalek perl6-examples: review: https://github.com/perl6/perl6-examples/commit/ac2cbfc515
15:01 dalek perl6-examples: c4decad | (L. Grondin)++ | / (216 files):
15:01 dalek perl6-examples: Merge branch 'master' of github.com:perl6/perl6-examples
15:01 dalek perl6-examples: review: https://github.com/perl6/perl6-examples/commit/c4decad750
15:03 robinsmidsrod joined #perl6
15:06 zakharyas joined #perl6
15:10 aborazmeh joined #perl6
15:10 aborazmeh joined #perl6
15:34 colomon BenGoldberg: like you’re getting the wrong $p?
15:36 aborazmeh joined #perl6
15:36 aborazmeh joined #perl6
15:41 BenGoldberg Somehow, $p is undefined, when it should be an Int (an earlier value from @primes)
15:48 skids joined #perl6
15:51 skids I uploaded https://github.com/skids/perl6xproto last night. It will need PR405 before an ecosystem add.
15:56 robinsmidsrod joined #perl6
15:58 ugexe can someone rebuild projects.json? Digest is missing and blocking all sorts of stuff
16:02 ugexe nqp-j is also broke https://travis-ci.org/ugexe/zef/jobs/58081560#L236
16:09 ugexe seems weird to include the #vim stuff in the examples
16:12 tinyblak joined #perl6
16:13 TimToady yes, npq-j build is broken badly; I did some investigaton yesterday but decided it probably needed someone more familiar with debugging on jvm
16:14 TimToady jnthn: ^^
16:16 ugexe well luckily it was building the day before yesterday
16:16 ugexe excuse my naivety, but is unboxing ala MODE_UNBOX_STR_NOT_EMPTY_OR_ZERO something that would affect '1..1' ?
16:17 TimToady that's not the problem
16:17 TimToady well, if so, it's at a lower level
16:18 TimToady the immediate problem is that it's passing 6 arguments to a *@args which somehow is losing the *
16:18 ugexe ah. the other commits from yesterday looked harmless and straight forward to me, which i guess isnt saying much
16:19 TimToady but I looked at all the slurpy descriptors I could find and they all looked numeric, so maybe something in (de)serialization
16:19 TimToady at that point my fogbrane drifted in
16:21 dalek joined #perl6
16:25 jnthn .tell FROGGS Please undo removing MODE_UNBOX_STR_NOT_EMPTY_OR_ZERO; it's probably useful for, for example, v5.
16:25 yoleaux jnthn: I'll pass your message to FROGGS.
16:27 TimToady and maybe the jvm stage0?
16:27 jnthn Uh, yes, very much that.
16:28 nwc10 take off and, er "full clean build". It's the only way to be sure
16:28 jnthn oh, hmm
16:29 jnthn I think it mighta been timotimo's patch
16:29 pullphinger joined #perl6
16:29 TimToady the patch desc seems a bit...moar-centric...
16:31 TimToady I guess there's a jvm-centric one too
16:31 TimToady "giving unknown data for now" is not terribly reassuring however
16:32 * TimToady goes back to working on val
16:33 nwc10 .tell FROGGS Ooops you're innocent. Please try harder next time :-)
16:33 yoleaux nwc10: I'll pass your message to FROGGS.
16:34 TimToady well, but would v5 still need it?
16:34 jnthn No, I still want that bit of the FROGGS++ patch reverted
16:34 nwc10 op
16:35 nwc10 .tell FROGGS Guess what, Problem *still* Exists Between (my) Keyboard And Chair.
16:35 yoleaux nwc10: I'll pass your message to FROGGS.
16:35 jnthn It's part of the 6model boolification API.
16:51 ugexe i think timotimos was fine because i was able to build jvm rakudo/nqp yesterday
16:52 ugexe 18 hours ago was my last successful jvm build
16:56 lolisa joined #perl6
16:58 Sqirrel joined #perl6
17:05 robinsmidsrod joined #perl6
17:05 dalek perl6-examples: 0c8e290 | paultcochrane++ | categories/best-of-rosettacode/prime-decomposition.pl.niecza:
17:05 dalek perl6-examples: prime-decomposition now works in Rakudo
17:05 dalek perl6-examples: review: https://github.com/perl6/perl6-examples/commit/0c8e29004e
17:05 dalek perl6-examples: d46ae5e | paultcochrane++ | categories/best-of-rosettacode/prime-decomposition.pl.niecza:
17:05 dalek perl6-examples: Indent code consistently
17:06 colomon joined #perl6
17:06 dalek joined #perl6
17:22 dalek doc: 4b29315 | moritz++ | lib/Type/Str.pod:
17:22 dalek doc: Str.ends-with
17:22 dalek doc: review: https://github.com/perl6/doc/commit/4b293152a8
17:22 telex joined #perl6
17:24 eli-se joined #perl6
17:29 moritz m: nqp::say(42)
17:29 camelia rakudo-moar 0b2092: OUTPUT«This type cannot unbox to a native string␤  in block <unit> at /tmp/SM8eWzlR7K:1␤␤»
17:29 moritz m: nqp::say("42")
17:29 camelia rakudo-moar 0b2092: OUTPUT«42␤»
17:31 aborazmeh joined #perl6
17:31 aborazmeh joined #perl6
17:32 robinsmidsrod joined #perl6
17:32 rindolf joined #perl6
17:40 aborazmeh joined #perl6
17:40 aborazmeh joined #perl6
17:42 robinsmidsrod joined #perl6
17:50 TimToady ugexe: nqp wasn't bumped till after then, so it could have been latent unless you force nqp to use the master branch
17:53 xfix joined #perl6
17:53 xfix joined #perl6
17:54 timotimo i'm fine? :S
17:56 dalek perl6-roast-data: 3b8310b | coke++ | / (9 files):
17:56 dalek perl6-roast-data: today (automated commit)
17:56 dalek perl6-roast-data: review: https://github.com/coke/perl6-roast-data/commit/3b8310b69d
17:58 ugexe TimToady: "Note: checking out '2015.03-92-gc4044af'." was from my last successful jvm build (timotimo's last commit)
17:59 robinsmidsrod joined #perl6
17:59 anaeem1_ joined #perl6
18:00 ugexe im not sure if that proves anything or not re: bumping versions
18:00 timotimo i don't remember changing anything in jvm code recently?
18:00 timotimo maybe i should backlog
18:00 anaeem1 joined #perl6
18:00 ugexe i think you're safe
18:00 timotimo thanks :)
18:03 robinsmidsrod joined #perl6
18:05 dalek perl6-examples: 2a252e7 | paultcochrane++ | t/categories/best-of-rosettacode.t:
18:05 dalek perl6-examples: Add tests for best-of-rosettacode examples
18:05 dalek perl6-examples: review: https://github.com/perl6/perl6-examples/commit/2a252e7621
18:11 robinsmidsrod joined #perl6
18:17 robinsmidsrod joined #perl6
18:18 robinsmidsrod joined #perl6
18:21 robinsmidsrod joined #perl6
18:31 kurahaupo left #perl6
18:35 ugexe the last nqp commit, d2d27cc, appears to be the culprit. however, the commit before that, 7238985 seems like it might be stuck at gen/jvm/stage2/NQP.nqp
18:35 awwaiid I gave a talk at DC-Baltimore Perl Workshop on Perl6/Rakudo today!
18:35 ugexe froggs other 2 commits from yesterday (the first 2) built ok
18:36 Sqirrel joined #perl6
18:37 TimToady awwaiid++
18:38 * TimToady imagines a point halfway between DC and Baltimore...
18:39 ugexe aaand 7238985 finished ok. so its the last commit
18:39 awwaiid We're in Silver Spring... which is on the DC side. We should find the geographical center of the last 4 years events
18:39 itz awwaiid: was it video'd?
18:40 awwaiid nope. OFF THE GRID
18:41 awwaiid (because: nobody volunteered to [organize] video for the conference)
18:44 tinyblak joined #perl6
18:44 TimToady my son used to live in Silver Spring when he was a terp grad student
18:44 awwaiid beautiful weather, feel free to pop over
18:45 awwaiid I will pair program with you on anything you like
18:45 awwaiid or if I get to pick it might be nrepl interface to rakudo
18:47 robinsmidsrod joined #perl6
18:52 awwaiid actually jupyter might be better
19:07 eli-se joined #perl6
19:13 bjz joined #perl6
19:19 virtualsue left #perl6
19:21 Zoffix joined #perl6
19:40 Possum joined #perl6
19:41 virtualsue joined #perl6
19:41 vendethiel- m: say ((^7 X ^7).item)
19:41 camelia rakudo-moar 0b2092: OUTPUT«0 0 0 1 0 2 0 3 0 4 0 5 0 6 1 0 1 1 1 2 1 3 1 4 1 5 1 6 2 0 2 1 2 2 2 3 2 4 2 5 2 6 3 0 3 1 3 2 3 3 3 4 3 5 3 6 4 0 4 1 4 2 4 3 4 4 4 5 4 6 5 0 5 1 5 2 5 3 5 4 5 5 5 6 6 0 6 1 6 2 6 3 6 4 6 5 6 6␤»
19:41 vendethiel- m: say ((^7 X ^7).item).perl
19:41 camelia rakudo-moar 0b2092: OUTPUT«$(0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 0, 3, 1, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 4, 0, 4, 1, 4, 2, 4, 3, 4, 4, 4, 5, 4, 6, 5, 0, 5, 1, 5, 2, 5, 3, 5, 4, 5, 5, 5, 6, 6,…»
19:42 vendethiel- m: say ([^7 X ^7]).perl #wat
19:42 camelia rakudo-moar 0b2092: OUTPUT«[0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 0, 3, 1, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 4, 0, 4, 1, 4, 2, 4, 3, 4, 4, 4, 5, 4, 6, 5, 0, 5, 1, 5, 2, 5, 3, 5, 4, 5, 5, 5, 6, 6, …»
19:42 vendethiel- oh, duh.
19:42 vendethiel- m: say (^7 X ^7).tree.perl # obviously, there's no "itemized comma"...
19:42 camelia rakudo-moar 0b2092: OUTPUT«(0; 0; 0; 1; 0; 2; 0; 3; 0; 4; 0; 5; 0; 6; 1; 0; 1; 1; 1; 2; 1; 3; 1; 4; 1; 5; 1; 6; 2; 0; 2; 1; 2; 2; 2; 3; 2; 4; 2; 5; 2; 6; 3; 0; 3; 1; 3; 2; 3; 3; 3; 4; 3; 5; 3; 6; 4; 0; 4; 1; 4; 2; 4; 3; 4; 4; 4; 5; 4; 6; 5; 0; 5; 1; 5; 2; 5; 3; 5; 4; 5; 5; 5; 6; 6; …»
19:43 TimToady that's obviously wrong
19:43 vendethiel- well, I'd expected to turn ((0, 0), (0, 1),...) into ([0,0], [0, 1]...)
19:44 TimToady or at least $(0,0)...
19:44 nbdsp joined #perl6
19:44 TimToady m: say (^7 X ^7).perl
19:44 camelia rakudo-moar 0b2092: OUTPUT«(0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 0, 3, 1, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 4, 0, 4, 1, 4, 2, 4, 3, 4, 4, 4, 5, 4, 6, 5, 0, 5, 1, 5, 2, 5, 3, 5, 4, 5, 5, 5, 6, 6, …»
19:44 TimToady m: say (^7 X, ^7).perl
19:44 camelia rakudo-moar 0b2092: OUTPUT«(0, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 3, 0, 3, 1, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 4, 0, 4, 1, 4, 2, 4, 3, 4, 4, 4, 5, 4, 6, 5, 0, 5, 1, 5, 2, 5, 3, 5, 4, 5, 5, 5, 6, 6, …»
19:44 vendethiel- I tried that locally :)
19:45 TimToady well, I didn't expect it to work, since the metop just sends X, off to X
19:45 TimToady *meta
19:45 TimToady but I'm pretty sure I fixed that at one point, so I dunno what broke it
19:46 TimToady m: say (^7 X, ^7)[0]
19:46 camelia rakudo-moar 0b2092: OUTPUT«0␤»
19:47 TimToady noticed it some time ago, but been hoping for a GLR soonish
19:47 nbdsp Greetings! Could someone advise please how to use the 'pack' function for UInt64? When I use 'my UInt64 $i = 0x1122334455667788; my $b = pack('C', $i) ' - I get : Buf:0x<88>
19:48 nbdsp m: my UInt64 $i=0x1122334455667788; pack('C', $i)
19:48 camelia rakudo-moar 0b2092: ( no output )
19:48 timotimo m: my UInt64 $i=0x1122334455667788; say $i
19:48 camelia rakudo-moar 0b2092: OUTPUT«1234605616436508552␤»
19:48 timotimo m: my UInt64 $i=0x1122334455667788; say $i.base(16)
19:48 camelia rakudo-moar 0b2092: OUTPUT«1122334455667788␤»
19:53 nbdsp m: my UInt64 $i=0x1122334455667788; say pack('C', $i);
19:53 camelia rakudo-moar 0b2092: OUTPUT«Buf:0x<88>␤»
19:54 TimToady C is not what you want
19:54 BenGoldberg joined #perl6
19:55 TimToady m: my UInt64 $i=0x1122334455667788; say pack('Q', $i);
19:55 camelia rakudo-moar 0b2092: OUTPUT«Unrecognized directive 'Q'␤  in block  at src/gen/m-CORE.setting:6914␤  in method reify at src/gen/m-CORE.setting:9710␤  in block  at src/gen/m-CORE.setting:9546␤  in method reify at src/gen/m-CORE.setting:9517␤  in method gimme at src/gen/m-CORE…»
19:55 * masak is open to hacking a hacking weekend on pack/unpack stuff with someone
19:55 TimToady m: my UInt64 $i=0x1122334455667788; say pack('q', $i);
19:56 camelia rakudo-moar 0b2092: OUTPUT«Unrecognized directive 'q'␤  in block  at src/gen/m-CORE.setting:6914␤  in method reify at src/gen/m-CORE.setting:9710␤  in block  at src/gen/m-CORE.setting:9546␤  in method reify at src/gen/m-CORE.setting:9517␤  in method gimme at src/gen/m-CORE…»
19:56 TimToady looks like we don't do that yet
19:56 nbdsp ok. )
19:58 HuRRiCuP joined #perl6
19:58 HuRRiCuP hi there
19:59 HuRRiCuP Can anyone tell me if there is a BNF form for perl6 grammar?
20:00 TimToady m: my UInt64 $i=0x1122334455667788; say Buf.new($i.polymod(256 xx *));
20:00 camelia rakudo-moar 0b2092: OUTPUT«Buf:0x<88 77 66 55 44 33 22 11>␤»
20:00 TimToady m: my UInt64 $i=0x1122334455667788; say Buf.new($i.polymod(256 xx *).reverse);
20:00 camelia rakudo-moar 0b2092: OUTPUT«Buf:0x<11 22 33 44 55 66 77 88>␤»
20:00 yqt joined #perl6
20:01 TimToady HuRRiCuP: we parse Perl 6 with its own grammar, which is similar to BNF but rather more extensible
20:01 HuRRiCuP that sad :( thanks
20:01 TimToady no, that's happy
20:01 nbdsp TimToady: thanks!
20:02 masak HuRRiCuP: the question has been asked before. it's entirely possible to make a BNF->p6grammar converter.
20:02 masak HuRRiCuP: I guess all the people who wanted to do that have found that Perl 6 grammars are pretty nice. :)
20:03 masak (or, I dunno, maybe they were distracted or had other priorities)
20:03 TimToady I think that direction has been done more than once already
20:03 HuRRiCuP I wanted to create  IDEA plugin for p5, but it requires BNF. And seems same problem with p6. And missing of good IDE is really bad
20:05 TimToady it's not bad enough to give up what we get with p6 grammars, and ide will happen anyway eventually
20:05 masak I doubt you'd get very far trying to describe either p5 or p6 with BNF anyway...
20:07 nbdsp BTW, is UInt64::polymod is some undocumented feature?
20:10 ugexe BNF is sad compared to perl6 grammars
20:10 HuRRiCuP i'm not talking about giving up something. just that it's sad :( "eventually" is really bad, cause I love perl with all of my heart and it's sad to see the trend of popularity of 5, and the same flaw (missing IDE) in 6. Production development is pretty hard in NP
20:11 dalek roast: 7c71d43 | usev6++ | S32-str/sprintf-b.t:
20:11 dalek roast: Add in-depth tests for '%b' directive
20:11 dalek roast: review: https://github.com/perl6/roast/commit/7c71d434cc
20:11 masak HuRRiCuP: I'm with you all the way on the desirability for an IntelliJ IDEA edition for Perl.
20:11 cschwenz joined #perl6
20:11 masak (6) :)
20:14 nbdsp PyDev plugin for Eclipse is pretty good. If Perl 5 for Eclipse is of similar quality, then that's a pretty good IDE.
20:14 TimToady nbdsp: look for polymod in http://design.perl6.org/S32/Numeric.html
20:14 virtualsue i have used EPIC, it's not bad
20:15 virtualsue i was working with another developer who used it, so i tried it for the nth time and got on better with it then
20:17 nbdsp TimToady: thanks!
20:21 masak virtualsue: that's the first nice review of EPIC I've heard in a while. I might take another look. :)
20:21 vendethiel- m: say (^7 X ^7).tree.grep: { any(@$_) == 3 } # TimToady: "for the comma-product of ^7 with ^7, grep the one where at least one element of the tuple is 3" <- is that correct?
20:21 camelia rakudo-moar 0b2092: OUTPUT«3 3 3 3 3 3 3 3 3 3 3 3 3 3␤»
20:21 virtualsue i'm not actually using it now. it was just convenient for me to work with this other person with the same dev setup
20:22 * masak .oO( 'course, with that name, expectations are bound to be high ) :)
20:31 TimToady vendethiel-: it's correct insofar as it ought to work but not insofar as it does work
20:31 vendethiel- right. I guess I can replace that grep with `grep(3 ~~ *)`
20:31 vendethiel- I'm talking theorically :)
20:32 espadrine joined #perl6
20:34 beastd joined #perl6
20:34 TimToady good thing I fixed ~~ to pay attention to * last week, then...
20:36 vendethiel- TimToady++ # better one-liners :P
20:37 eli-se vendethiel-: no can't
20:37 eli-se grep uses ~~ implicitly
20:37 vendethiel- gne?
20:37 eli-se you have to use just grep(3)
20:38 eli-se otherwise it'll be like grep({ (3 ~~ *) ~~ $_ })
20:38 eli-se which is, of course, horribly broken
20:39 vendethiel- eli-se: no. there's an overload for "Callable" in grep.
20:41 eli-se Not on my machine!
20:41 masak come to think of it, I wonder why we made Callable a role, and not a subtype.
20:41 vendethiel- eli-se: https://github.com/rakudo/rakudo/blob/2cb72b2141f2e37c0df4fb04fc2f5b68e34cdf01/src/core/Any.pm#L233
20:41 masak Callable ought to be *defined* by the presence of .() on the type
20:42 masak same deal with Positional and Associative, I guess
20:43 eli-se why can't you like
20:43 eli-se git blame
20:43 eli-se on GitHub? Is it just that primitive or is it hidden somewhere?
20:43 eli-se oh there's a blame button :D
20:43 masak :P
20:44 * masak .oO( they respond so quickly to user requests! )
20:44 TimToady 3 ~~ * isn't gonna scan a list for you anyway
20:45 TimToady m: say [1,1,2,2,3] ~~ [*,3,*]
20:45 camelia rakudo-moar 0b2092: OUTPUT«True␤»
20:45 masak :(
20:46 masak yeah, we never did something about that "feature".
20:46 vendethiel- * should match one elem, ** any number :P
20:46 TimToady well, only if you say please
20:46 TimToady overloading array literals for it is wrong
20:46 masak maybe we should instead think in terms of combinators, or matchers, that can go on the rhs of ~~
20:47 vendethiel- TimToady: I was joking :-)
20:47 masak I don't like our current solution, which cuts too close to the semipredicate problem.
20:47 TimToady m: say [1,1,2,2,3] ~~ scanlist (*,3,*) or so maybe
20:47 camelia rakudo-moar 0b2092: OUTPUT«5===SORRY!5=== Error while compiling /tmp/UaIygr7s0k␤Undeclared routines:␤    maybe used at line 1. Did you mean 'make'?␤    scanlist used at line 1␤␤»
20:48 masak TimToady: yeah, something like that, to indicate a DSL where * gets a special meaning.
20:48 dalek perl6.org: 99ad3cb | (Steve Mynott)++ | source/ (2 files):
20:48 dalek perl6.org: link to web pages rather than github for perl6-examples
20:48 masak or even something inspired by regexes.
20:48 dalek perl6.org: review: https://github.com/perl6/perl6.org/commit/99ad3cb02a
20:48 TimToady m: say [1,1,2,2,3] ~~ / <,> 3 <,> / or so maybe
20:48 camelia rakudo-moar 0b2092: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter < (must be quoted to match literally)␤at /tmp/zjnryZUeP1:1␤------> 3say [1,1,2,2,3] ~~ / <7⏏5,> 3 <,> / or so maybe␤Unrecognized regex metacharacter , (must be quoted to match literally)␤a…»
20:49 TimToady I think we actually have <,> reserved for that
20:49 TimToady but only on cat
20:49 TimToady matching non-strings is still pretty handwavingly not-pretty
20:50 masak @array ~~ ML[ .* 3 .* ]
20:50 eli-se <,> looks like a very sad Asian.
20:50 TimToady dunno, looks more like a penguin to me
20:50 vendethiel- we don't have type parameters splat, do we?
20:50 TimToady or maybe an owl
20:52 masak eli-se: clearly it's a ration of food with elbows :)
20:52 masak hashtag #angband
20:52 eli-se It's probably an obscure operator.
20:53 TimToady splat?
20:55 vendethiel- I keep using that word! I need to stop. "star", as in "*@a"
20:56 dalek perl6.org: 6d8feac | (Steve Mynott)++ | source/fun/index.html:
20:56 dalek perl6.org: remove defunct parrot link
20:56 dalek perl6.org: review: https://github.com/perl6/perl6.org/commit/6d8feac58d
20:56 masak vendethiel-: oh, slurpy! :P
20:57 * masak .oO( why didn't you *say* so! ) :P
20:57 vendethiel- right. too many names in different languages for this feature... naming is too hard :o
20:58 eli-se I call it "unpacking" regardless of what the language calls it.
21:03 masak also known as "destructuring"
21:03 masak 'night, #perl6
21:04 vendethiel- night!
21:04 eli-se I like to call it "destructing" when unpacking reassign already-existing variables.
21:05 eli-se s/reassign/reassigns/
21:11 vendethiel joined #perl6
21:11 robinsmidsrod joined #perl6
21:12 dalek nqp/sprintf: 6309355 | usev6++ | src/HLL/sprintf.nqp:
21:12 dalek nqp/sprintf: Improve handling of flags for '%b' directive
21:12 dalek nqp/sprintf: review: https://github.com/perl6/nqp/commit/63093556e0
21:13 gargamel joined #perl6
21:16 kinslayer How do I assign something that change later so that it wont change where I assign it, in a hash in iterations so that what is in the first iteration wont change even if the variable change after.
21:21 diana_olhovik joined #perl6
21:25 raydiak kinslayer: it might be helpful if you can show exactly what you're trying to do in a short gist
21:26 kinslayer I assign a list into an array in a loop but I end up with values from the last iteration in all the places
21:27 raydiak you might want something like "for @array -> $_ is copy { ... }" if you mean what I think
21:27 kinslayer http://lpaste.net/130553
21:27 kinslayer that is the code
21:29 kinslayer I will try that... thanks
21:29 raydiak put "my @c" inside the loop maybe?  you're binding instead of assigning on line 19, so just re-using the same array over and over
21:30 kinslayer Okay thanks.
21:31 raydiak you're welcome, good luck
21:32 kinslayer raydiak I had never figured that out by myself :D
21:32 robinsmidsrod joined #perl6
21:32 kinslayer but it does what it is supposed to now
21:33 raydiak nice :)
21:33 kinslayer yeah
21:37 raydiak m: my @a = 1; say @a.clone;
21:37 camelia rakudo-moar 0b2092: OUTPUT«This type does not support elems␤  in method REIFY at src/gen/m-CORE.setting:10470␤  in method REIFY at src/gen/m-CORE.setting:10978␤  in method reify at src/gen/m-CORE.setting:9517␤  in block  at src/gen/m-CORE.setting:9542␤  in method reify at …»
21:37 raydiak ^ known ?
21:37 raydiak m: my @a; say @a.clone;
21:37 camelia rakudo-moar 0b2092: OUTPUT«␤»
21:38 gfldex r: my @b; my @c; for 1..3 -> $a { @c = (); push @c, $a; @b[$a] := @c.clone; }; @b.perl.say;
21:38 camelia rakudo-jvm 0b2092: OUTPUT«cannot connect to eval server: Connection refused␤»
21:38 camelia ..rakudo-moar 0b2092: OUTPUT«[Any, 1, 2, 3]<>␤»
21:39 gfldex kinslayer: please note the Any
21:39 kinslayer gfldex sorry ?
21:50 BenGoldberg m: http://fpaste.scsys.co.uk/471895
21:50 camelia rakudo-moar 0b2092: OUTPUT«5===SORRY!5=== Error while compiling /tmp/YKyaNZ5jhd␤Confused␤at /tmp/YKyaNZ5jhd:1␤------> 3http:7⏏5//fpaste.scsys.co.uk/471895␤    expecting any of:␤        colon pair␤»
21:50 BenGoldberg Hmm, it was worth a try ;)
21:58 vendethiel BenGoldberg: only gist, iirc
22:01 BenGoldberg With gather/take, is there any convenient way to access the results-so-far?  Aside from assigning the gather to a named variable, that is.
22:02 vendethiel BenGoldberg: don't think so
22:02 BenGoldberg Something like @*GATHER would be kinda useful, I think.
22:04 BenGoldberg Especially if it behaved very non-magically, so I could do say "results so far: @*GATHER" (for debugging), without it trying to run the enclosing gather to the end to find how many elements there are.
22:11 BenGoldberg The perl5 module, List::Gather, provides a 'gathered' keyword which gives a list of items so far, or a count of said items.
22:13 yqt joined #perl6
22:28 n0vacane joined #perl6
23:07 bobkare joined #perl6
23:24 BenGoldberg m: https://gist.github.com/BenGoldberg1/c9f2a3f642c30fc343fc
23:25 camelia rakudo-moar 0b2092: OUTPUT«use-wheel: False␤1223␤In 5.1914275 seconds, we did 23 iterations.␤This is 4.4303806451662 iteration per second␤use-wheel: True␤1223␤In 5.0314319 seconds, we did 44 iterations.␤This is 8.74502544912387 iteration per second␤»
23:25 BenGoldberg camelia is about 2 or 3 times faster than my laptop.
23:46 davido_ joined #perl6
23:56 Sqirrel joined #perl6

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

Perl 6 | Reference Documentation | Rakudo