Rakudo does not yet attempt parallelization of any Junctions. Even if/when it one day does, overhead will sometimes dominate, especially when trying to parallelize really tiny computations. I'm curious what you meant by "duplicate removal phase" and would enjoy reading an elaboration of that.


Here are the two rules which drive how the grammar distinguishes a Whatever * from a multiplication *:

  1. If a token appears where an operator is allowed and there's a corresponding operator definition then it's that operator.

    For example, an operator is allowed between values, and an infix:<+> definition is in scope in ordinary code (here's the built in Numeric role's contribution to that definition), so the token + in 2 + 3 is treated as invoking infix:<+>. The same thing applies for other infix operators including multiplication with Infix:<*>.

  2. If an asterisk is NOT treated as an operator and appears where a value is allowed then it's a Whatever.

    For example, 2 + 3 includes the two values 2 and 3 and there is no prefix:<*> so one could write * + * to express "Whatever plus Whatever".


In reply to Re^4: Elegantly map fizz to buzz by raiph
in thread Elegantly map fizz to buzz by oiskuu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.