Hello world demystified

Hacking, Uncategorized
Hello all, in the finest programming tradition, I take it that every time one took a programming course or decided to have a quick look into a programming language, writing a "Hello World" program was one of the first things done. However, even in such a small program, do you really know what it does behind the scenes? Yiannis blogged about it here, giving a Java test case (and by the way, allow me to extend my welcome!) and Dimitris provided a C equivalent there. However, let's do a roundup. After whacking some Perl code, I got the following results Let's start with the old workhorse, Perl: ################################################################################ The Perl version ################################################################################ strace -c -f -q perl hello.pl % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- ---------…
Read More

CPython threading vs multiprocessing – the 5 minute introduction

Hacking, Uncategorized
MJC brought to my attention the following piece of code which attempts to provide some empirical data comparing the use of threads vs processes in CPython. This code, which I understand that it is stored for historical purposes, has some bugs, which I have pointed out in the comment section, but this is not the point of this article (something like this would be not constructive). I believe that a far better contribution would be to write a short piece attempting to point out a few "gotchas". Bit rot took hold and the post above has disappeared but the rest of the article still applies ... For the rest of this small article, I assume that you are familiar with how threads work in CPython, especially the GIL "issue". If…
Read More

Some random thoughts on Greek startups

Rants, Startups, Uncategorized
[The article below is somewhat of a rant, read it at your own peril and yes I know this is not the proper way to resume blogging after months and months of inactivity] So it seems that the Greek IT market lately has seen an influx of "startups". Their implied cause appears to be quite a noble one, "be not what is traditionally associated with the words "Greek IT" (or "get-rich-quick-or-die-trying" for the more pragmatic amongst you). However, the whole thing reeks of the "Johnny-come-lately" syndrome, at least for me. Below is a partial list of my pet-peeves: 1) i-somethings will NOT make you a millionaire. Sure, there are more than enough success stories doing the rounds but the whole market is rather hit-n-miss, with the miss part taking the…
Read More

The trouble with OSSIM

Rants, Uncategorized
If you fiddle with MSSP, then you will most likely have heard of OSSIM. While the software itself appears quite powerful, it lacks in the MOST critical aspect of all: there is little if any documentation. Most of it is outdated and sources of information include a forum and a blog/tweeter feed. Come on OSSIM guys, you have the ball rolling, now you have to make it a nightmare for us to use the (otherwise quite good) product? To their defense, they have an open job posting about writing documentation but looks like there are no takers.
Read More