Tree cats see your code!

John MelonakosArrayFire Leave a Comment

From time-to-time we stumble across funny quirks while using MATLAB®.  The latest came as one of our developers accidentally mis-keyed a few characters.  With 5 characters on the command line, you too can get a message about tree cats seeing your bad code (followed by a nasty seg fault, so beware).  Try this:

>> a()@a
tree_cat sees bad code
* Subsref  [4]
     * M_ID  0(5) which
     * M_LRB  5(1)
     * ExprList  [1]
         * M_ID  6(1) e
     * M_RRB  7(1)
tree_cat sees bad code
* Subsref  [4]
     * M_ID  0(5) which
     * M_LRB  5(1)
     * ExprList  [1]
         * M_ID  6(1) e
     * M_RRB  7(1)

Top Secret:  Part of Jacket’s GPU runtime involves monkeys obtaining bananas for optimal performance. While we can’t verify it, we do believe that our monkeys have formed a synergistic relationship with the cats in the trees, leading to great performance results. The cats look out for bad code, the monkeys use bananas to make it better.

Have you ever stumbled upon interesting programming quirks?

 

Leave a Reply

Your email address will not be published. Required fields are marked *