While I'm waiting for my password ....

My computer is a new Dell Inspiron with an Intel i9 3900.

I wrote a cli similation of a simple solitaire card game that I knew the winning stats for.

I was disappointed in the results; but here is the culprit.

pops and shifts and individual selections from lists were unstable about 5% of the time.

Lots of run-time warning msgs about uninitiated values and more failures that went undetected.

Unitiated cards in the source list, and uninitiated variables supposed to have receive popped or selected cards

The code sequence causing the problem was : search a nine card list for a pair, cover both cards of a pair with cards from the stock, search the updated list for a pair or pairs.

One or both of the covering cards never arrived maybe 5% of the time.

So, the basic question is : with twenty some CPU cores looking for work, is Perl really up for this environment?

And obviously, any other posts on this?


In reply to pop() on a fast multi-core cpu by Anonymous Monk

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.