Counting IPv4 addresses with a bitmap

I had this task to count IPv4 addresses, but the typical way of counting with a hash has problems. With Perl, you might think to just use each item as the hash key and increment its value each time you find one. However, when you are looking at most of the IPv4 space, or even half of it, that’s a couple billion keys that might not fit into memory. Remember, each of those values are a scalar value (SV) that take up several bytes merely by existing, and that SV takes up several octets.


Read More

Indirect measures and bad conclusions

There are several things to consider when people show you data. Although outright lies are a concern, I’m more worried that they don’t understand their own data. With machine learning and big data analytics being a Thing, it’s more common to find people who know how the turn the crank who don’t understand what they are putting in the sausage.

I originally wrote this as a reply to something on the internet about a study that claims to have measured the energy efficiency of programming languages, but decided it wasn’t worth it. I didn’t think that anyone would really disagree, but I also didn’t think anyone would read the whole thing.

This concerns Ranking Programming Languages by Energy Efficiency, a paper that thinks it is interesting to think about the energy a program uses based on the programming language it used.


Read More