cubloid.blogspot.com
Random thoughts: Faster composite regular expressions
http://cubloid.blogspot.com/2009/10/faster-composite-regular-expressions.html
Sunday, October 25, 2009. Faster composite regular expressions. Regular expressions is a powerful tool, but they quickly become too long to be readable. Some people use / x modifier. I prefer split into many smaller regular expressions, for example:. My $re num = qr/./; my $re quoted = qr/./; my $re value = qr/$re num $re quoted/;. It works just fine and usually I compile them in package space beforehead and then use in functions with / o:. Should you use this? Yes All the time? No For example if you wri...
cubloid.blogspot.com
Random thoughts: May 2010
http://cubloid.blogspot.com/2010_05_01_archive.html
Monday, May 17, 2010. Краткое интервью для DevConf. Как тебе идея DevConf? Идея отличная. Все современные языки обладают интересными технологиями. Постараюсь посетить как можно больше не-Perl-овых докладов. Уже распечатал расписание. "Пришлось" округлить свой доклад и еще над одним, из той же колонки, поставить вопрос, а так все в других секциях. Для меня это возможность познакомиться с интересными людьми. Также увидится и пообщаться в офлайне с теми, с кем до этого общался только в онлайне. На всех тех,...
cubloid.blogspot.com
Random thoughts: Debugging perl programs/internals in gdb
http://cubloid.blogspot.com/2009/07/debugging-perl-programsinternals-in-gdb.html
Tuesday, July 28, 2009. Debugging perl programs/internals in gdb. When it comes to perl internals, print based debugging doesn't work that well. Compilation and installation are too slow and you can not place a print and quickly see output. At some point gbd should be used. In perl world we have Devel: Peek's Dump function to look behind curtain. In C world there is sv dump. Threaded perl: (gdb) call Perl sv dump(my perl, variable) # not threaded perl: (gdb) call Perl sv dump(variable).
cubloid.blogspot.com
Random thoughts: October 2009
http://cubloid.blogspot.com/2009_10_01_archive.html
Sunday, October 25, 2009. Faster composite regular expressions. Regular expressions is a powerful tool, but they quickly become too long to be readable. Some people use / x modifier. I prefer split into many smaller regular expressions, for example:. My $re num = qr/./; my $re quoted = qr/./; my $re value = qr/$re num $re quoted/;. It works just fine and usually I compile them in package space beforehead and then use in functions with / o:. Should you use this? Yes All the time? No For example if you wri...
cubloid.blogspot.com
Random thoughts: Improving development environment on MacOS Snow Leopard
http://cubloid.blogspot.com/2012/04/improving-development-environment-on.html
Monday, April 16, 2012. Improving development environment on MacOS Snow Leopard. Spent weekend improving terminal, bash and vim configs and learning some new tricks. I was using astrail's dotvim. Solution. It worked good, but braids are terrible. So I was playing with git submodules to see if they can do better. They can not, but during investigation I've spotted vundle. In five you'll get everything installed. I don't use apple's bash, but one from gentoo prefix. Found helpful discussion on StackOverflow.
cubloid.blogspot.com
Random thoughts: Compiling perl for debugging with gdb
http://cubloid.blogspot.com/2012/04/compiling-perl-for-debugging-with-gdb.html
Thursday, April 19, 2012. Compiling perl for debugging with gdb. If you ever looked inside of perl source then you know code uses tons of C preprocessor macroses. GDB has a nice feature to expand them for you. However, you have to compile program to contain information about macroses and it took me a while to figure it out how to do it. Configure -des -Dprefix=/Users/ruz/perl/blead -Dusedevel -Doptimize='-O3 -g3' -DEBUGGING -Dusemymalloc -Dusethreads -Dinc version list=none. Script will be improved.
cubloid.blogspot.com
Random thoughts: Performance regression in perl with precompiled regexps
http://cubloid.blogspot.com/2012/04/performance-regression-in-perl-with.html
Tuesday, April 03, 2012. Performance regression in perl with precompiled regexps. Some time ago I wrote about preparing regexpes earlier. For cases where you can not use /o modifier. For example you have:. My $re = qr{ d };. And often you need to match:. Str = / $re$/;. You can not use /o modifier if $re may change. In the blog post I've described precompiling and showed that it works as fast as regexp with /o modifier:. My $re = qr{.}; my $re prepared = / $re$/; $str = $re prepared;.
cubloid.blogspot.com
Random thoughts: March 2012
http://cubloid.blogspot.com/2012_03_01_archive.html
Wednesday, March 28, 2012. Impact of index only scans in mysql. Index only scans is an access method when information is retrieved from the table using only information in the index tree without having to do an additional seek to read the actual row. It's a well known concept that is implemented in mysql, Oracle, Pg 9.2 has patches. So I've decided to see for myself how big impact can be. We have a big table 'CGM' with g, m and disabled columns. Users table with id and name. Rate g g,m g,disabled g,m,dis...
cubloid.blogspot.com
Random thoughts: February 2013
http://cubloid.blogspot.com/2013_02_01_archive.html
Thursday, February 21, 2013. My play-perl and perl5 core quests. If you don't know about play-perl. Then check this out. I've decided how I'm going to use this site. Participating in Perl5 core development. I would love to participate more in perl5 core development. From time to time I read perl5-porters mailing list. Here comes play-perl to the scene. I'm going to push my ideas as quests. With link to this blog post and some common wording in the comment. The goals are:. Sharing ideas very early.
cubloid.blogspot.com
Random thoughts: April 2010
http://cubloid.blogspot.com/2010_04_01_archive.html
Monday, April 05, 2010. A challenge for a XS hacker. Recently we at Best Practical was discussing penalties of callbacks in RT. Callbacks are proved to be very good way to extend the web UI. We call a function from component, function checks for registered customizations for this particular place and calls them, so custom code can either change arguments or inject something into result stream. Links to this post. Subscribe to: Posts (Atom). View my complete profile. Request Tracker по Русски.