Jul 09
16:35:58.649 ▶▶ Permalink
So, Tim Bray wrote this hairy regex which he ran in Perl and in Java, and it ran faster in Java. He then posted this result to his blog. There is no sample data to try it yourself, it’s a single test involving unusual unicode stuff, and he says that “they don’t produce quite the same results, with occasional variation around international characters,” but this has not stopped Java fans from declaring that Java’s regex engine is faster than Perl’s. Then he goes on to say that perl 5.8.3 gives a different result from perl 5.6.1 and that this is somehow a strike against Perl’s suitability for “enterprise” work. This sounds like a result of the many bugfixes in unicode and regex stuff that happened between those versions to me, but he appears to be saying that the inability to fix bugs in Java is a positive thing, since it means you can get the wrong answer consistently.
previous    next