C's heritage: bitwise and equality operators

Posted on Thu 29 December 2011 in articles • Tagged with programming, C, JavaScript

The design of C made by Brian Kernighan and Dennis Ritchie has influenced the whole software and hardware industry. Sometimes you can feel the heritage of C even in modern high-level dynamic languages like Javascript.


Continue reading

Inside Python: understanding os.listdir()

Posted on Sun 08 May 2011 in articles • Tagged with programming, Linux, Python, C

If you've been using python for a long time, then you surely know that os.listdir() function returns an unsorted list of file names. I didn't care much until facing a situation, in which the sorted-sequential processing of files was crucial, and I could not remember whether the previous file processing were done in sorted order. Well, luckily they were. But hey, this is a little bit annoying, isn't it? Why os.listdir() returns an unsorted list of files? Would you like to find out?


Continue reading

Big and Little endianness quest

Posted on Sat 01 August 2009 in Articles • Tagged with programming, G.729, C, VAD

Sometimes the bugs in programs do not depend on a programmer. For example, when a programmer expects a certain result from a built-in function, that would be the last place to check for bugs. But sometimes weird stuff happens, and it also happened to me.


Continue reading