Time is an illusion. Compile time - doubly so.

Posts from: December '10

Random ramblings

Some miscellany, non-serious stuff around programming that recently occurred to me:

First, I got the impression that working as a law maker (or, more accurately, a law maintainer) is not much different than working as a programmer. Both the programmer and the lawmaker have to be very explicit and unambiguous; they are working on laws (directories), consisting of parts (files), filled with articles (classes), constituting of paragraphs (methods). Everything is in strict order. Changes to these laws come (at least in my country) through a state-issued paperwork (called the State Gazette in my case), which explains that law AAA, Part BBB, Article CCC, paragraph DDD, which formerly stated XXX, should now read YYY. Just a plain diff, that is.

So, in spirit of this comparison, here I demand: when will the Bulgarian lawmakers finally put up a Subversion access to all of the Laws, and stop applying patches through the State Gazette? This is so 20th-century...

Anyways, what else... I was pondering through some Linux kernel sources recently, more precisely within intel.c and amd.c... and got just truly convinced that there is nothing hardware-y in these processors anymore. They are full of bugs! So, did you actually think that your $150 you prepared for the shiny-new quadcore CPU pays for the silicium/hafnium in the crystal, or for the gold in the pins (for those of us who actually got pins; Intel owners are exempt from this)? Think again...

And I did some fun coding for valgrind, out of a necessity at work. I'm really glad when I can purposefully use work time to help open source projects like this. I love my job :p

Posted in category Programming -- clock 6 Dec 2010, 02:25, 0 comments


AGG 0.2.5

I've released yet another version of my gallery editor/generator AGG. It is mostly a bugfix and optimization release. The major bug that prompted this release is: when you process a huge gallery on a lot of threads (e.g., two 4-core Nehalem-based Xeons, resulting in 16 "cores"), the working memory gets awfully fragmented, and malloc()s start to fail (you get NULLs) - because it can't allocate the large contiguous regions needed to store the pixel data. In 0.2.5, the images are stored using lots of small chunks.
There are some optimizations as well: I'm using libjpeg-turbo for decoding/encoding JPEGs, and also did a rehaul of the resizing algorithms. Another major thing is the 64-bit support (there are 64-bit builds for Windows and Linux). See here for a more detailed change list.

Some performance figures: while the new libjpeg and the resizer optimizations are significant by themselves, the convoluted image storing reorganization (creating a mess in the memory due to data fragmentation) offset the performance win by some margin, so I did some real-life tests to assess how is the new version scores, compared to 0.2.4. So here is it: on a dualcore laptop, a 325-image 8 MPix gallery is produced in 2m 11s (as opposed to 2:28 for 0.2.4), which is a 12% win. On my other (six-core) machine, there is no performance difference between 0.2.4 and 0.2.5 (64-bit), but I think it's the disk throughput that is the bottleneck there ;)

Posted in category Open source -- clock 2 Dec 2010, 01:40, 0 comments




Open source


+ 2008 (9)
March '08 (2)
April '08 (2)
May '08 (2)
October '08 (1)
December '08 (2)
+ 2009 (8)
January '09 (2)
March '09 (1)
August '09 (2)
September '09 (1)
November '09 (1)
December '09 (1)
+ 2010 (9)
January '10 (1)
April '10 (2)
June '10 (1)
July '10 (1)
September '10 (1)
November '10 (1)
December '10 (2)
+ 2011 (9)
January '11 (3)
February '11 (1)
August '11 (2)
September '11 (1)
October '11 (2)
+ 2012 (14)
January '12 (3)
March '12 (1)
April '12 (2)
May '12 (3)
August '12 (1)
September '12 (1)
November '12 (1)
December '12 (2)
+ 2013 (1)
March '13 (1)
+ 2014 (3)
September '14 (3)
+ 2015 (5)
January '15 (1)
March '15 (3)
May '15 (1)
+ 2016 (4)
June '16 (1)
July '16 (1)
November '16 (1)
December '16 (1)

Last comments:

21 Jan 2020, 09:01 by anrieff
20 Jan 2020, 11:38 by Владо
30 May 2017, 02:02 by anrieff
26 May 2017, 01:00 by Mathew
30 Mar 2017, 13:59 by antfarmer
26 Dec 2016, 17:52 by Private

Valid XHTML 1.0 Strict


linkJoel on Software
linkRidiculous Fish
linkXKCD blag