develooper Front page | perl.perl5.porters | Postings from September 2014

Re: [perl #122811] [PATCH] move assert_uft8_cache_coherent to DEBUGGINGbuilds

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
September 20, 2014 00:03
Subject:
Re: [perl #122811] [PATCH] move assert_uft8_cache_coherent to DEBUGGINGbuilds
Message ID:
541CC43C.8010008@iki.fi
On Friday-201409-19, 19:55, Father Chrysostomos via RT wrote:
> As you said, this has caught legitimate bugs in the past.  I think we should keep it in non-debugging builds for that reason.

Agreed.  The UTF-8 cache has been notoriously hard to get and keep
right.  And it is very important to keep right, otherwise our UTF-8
performance is not only slow, but also broken.  A quote for the weekend:

... Some compilers ... allow a check during execution that subscripts do 
not exceed array dimensions.  This is a help, but not sufficient.
First, many programmers do not use such compilers because "They're not
efficient."  (Presumably this means that it is vital to get get the
wrong answers quickly.) ...


(Kernighan and Plauger, "The Elements of Programming Style",
second edition 1978, don't know if the first edition had this
same sentence.)


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About