profile picture

9 pages tagged with "perl"

Sorting Chinese characters

December 28, 2013
<p>Recently we decided to localize country selection list at work and there was some confusion about how to sort Chinese characters. I asked my wife and she told me that sorting by pinyin is seems most reasonable to her. So here's how to do it in Perl read more

Packing timeval

December 05, 2012
Recently I got a lot of failures from CPAN Testers for RedisDB on NetBSD i386. After investigating a bit I've found that NetBSD 6.0 comes now with 64-bit time_t on all architectures. It means that the way I used to pack struct timeval value to set timeout on socket, didn't work anymore. Previously i… read more

Memory leaks

October 08, 2012
<p>Spent the whole day looking for sources of memory leaks. One of them was because I decided to use named captures. It so happened that perl leaks some memory if named capture doesn't match. read more

RedisDB 2.00

June 27, 2012
Uploaded RedisDB 2.00 to CPAN yesterday. It features XS parser which improves performance about 25%. It still loses to Redis::hiredis in pipelining mode, but in synchronous mode it is faster. read more

RedisDB 1.03

March 19, 2012
Just uploaded RedisDB-1.03 to CPAN. In this version I extracted parser code into a separate module and cleaned it up a bit, I have in plans writing XS version of the parser. Another significant change is that I dropped Module::Install and switched to plain ExtUtils::MakeMaker. The size of the distri… read more

RedisDB 0.16

July 13, 2011
Just uploaded RedisDB 0.16 to CPAN. Hopefully now it will work on Windows. The problem is that Windows don't support MSG_DONTWAIT flag for recv, so I have to switch socket into non-blocking mode before checking for data. And I got just a single test report for MSWin32 for three months, apparently it… read more

Modern Perl book available

November 12, 2010
Modern Perl book by chromatic is out. You can download free PDF version of the book right now, read it, and transfer some sum to the author later if you like the book and have money. Isn't this how all books should be distributed? If you learning Perl, or switching to Perl from the other language, t… read more

What are the most important features of employer

May 09, 2010
Gabor Szabo started the poll for Perl developers What are the 8 most important features of an employer or a job opportunity for you?. Here are my answers with comments sorted by priority: The company allows and encourages the contribution to open source projects That's the question of personal fr… read more

Creating preforking server with POE::Component::Daemon

November 28, 2009
After upgrading Perl to 5.10.1 at Friday I found that POE::Component::Server::PreforkTCP, which we use in one of our products, doesn't pass its tests anymore. Perhaps it's possible to fix, I don't know yet (it was Friday evening...), but as the module hasn't been updated since 2002 I decided to chec… read more