I will admit I've been extremely skeptical of Artificial Intelligence, but this week I found that it was a really useful tool in one specific application.

I've been developing some REST API scripts for a client of mine since 2018, and one of the scripts takes a stroll through his product catalog (hosted on BigCommerce), looking for any items have disagreements between the website and his accounting system. One of the scripts has been taking over an hour to run, because for each product, it has to do a second call to BigCommerce for additional product information. In a single-threaded situation, all of those latencies add up.

I was already using Parallel::ForkManager for one of the scripts, so I thought I'd use it again for a new version of this script. Unfortunately, the new script didn't work correctly. My client has access to the repositories where I store the code, so he grabbed the code and fed it into Claude Opus 4.5. This AI produced some really helpful pointers, and I incorporated five of the six improvements.

Really, it provide a second set of eyes on my code. Colour me impressed.

Alex / talexb / Toronto

As of June 2025, Groklaw is back! This site was a really valuable resource in the now ancient fight between SCO and Linux. As it turned out, SCO was all hat and no cattle.Thanks to PJ for all her work, we owe her so much. RIP -- 2003 to 2013.


In reply to OK, OK. AI is a handy tool. by talexb

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.