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…
</p>
read more
Packing timeval
December 05, 2012
<p>Recently I got a lot of failures from CPAN Testers for RedisDB on NetBSD i386.
After investigating a bit I've found that <a
href="http://www.netbsd.org/releases/formal-6/NetBSD-6.0.html">NetBSD 6.0</a>
comes now with 64-bit <code>time_t</code> on all architectures. It means that the
way I used to pack <code>struct timeval</code> value to set timeout on socket,
didn't work anymore. Previously it was the same as <code>long, long</code> on all
systems and pack looked like this…
</p>
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.…
</p>
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
<p>Gabor Szabo started the poll for Perl developers <a href="http://bit.ly/99WCKQ"> What are the 8 most important features of an employer or a job opportunity for you?</a>. Here are my answers with comments sorted by priority…
</p>
read more
Creating preforking server with POE::Component::Daemon
November 28, 2009
<p>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 check if there's some replacement for it. I found <a
href="http://search.cpan.org/dist/POE-Component-Daemon/">POE::Component::Daemon</a>,
it looks very promising for now and I really like it. Here's TCP echo service
that I wrote as example while playing with it…
</p>
read more