on documentation

People often debate on reasons of PHP’s success and “not so big success” of it’s more powerful competitors. My belief is, that one of the major parts of PHP’s win was it’s manual. All of the competitors had basic API documentation, but they didn’t have:

syntax-highlighted examples for the majority of functions
user-contributed comments

It’s actually getting better [...]

trac for haskell

Trac is one of the best things which happened to open-source software. But that is not news, really.
The good news is, that haskell software community started to adopt Trac for their needs too. One of the examples is MissingH library. The reason of “tracification” is simple: there is a stable darcs plugin available for trac

regexps in PHP, again

People keep on insisting, that preg_match is better for non-unicode lookups than mb_ereg. So, here are actual benchmarks to make it clear.
Here are results:

preg_match: 19.8039090633
mb_ereg: 15.9386620522
mb_ereg_search: 1.24934506416

Here is the source:

<?php
$regexp = ‘[\w]+@[\w]+\.com’;
$pcre_regexp = ‘/’.$regexp.’/';

$regexp2 = ‘[\s]+@[\s]+\.com’;
$pcre_regexp2 = ‘/’.$regexp2.’/';

$text = ‘blabla bla [...]

lcache

Does anyone know what this is going to be?
I was going to name my extension (soon to be published) to PHP “lcache”, when I suddenly noticed, that there is, already something named “lcache”. The most funny part that it is php-related too…