Random &Rants 10 Jan 2014 17:25:23

EU Copyright Review 2014

There is an ongoing Public Consultation on the review of the EU copyright rules questionnaire with deadline February 5th, 2014, and here are my answers. I did not answer all questions; some due to lack of opinion, some due to lack of standing, and some due to lack of knowledge about the domain.

Type of Respondent

  • End user/consumer (e.g. internet user, reader, subscriber to music or audiovisual service, researcher, student)
  • Author/Performer
  • Intermediary/Distributor/Other service provider (e.g. online music or audiovisual service, games platform, social media, search engine, ICT industry)


Continue Reading »

Code &Random 06 Jan 2014 15:53:14

The Competency Matrix and Me

I recently stumbled upon the well known Programmer Competency Matrix again, so I figured this time I’d store where I think I fit on it. I’ll use the linear 0-3 scale, since that’s easier for the in-between values.

Continue Reading »

Random 14 Dec 2013 01:26:51

Thought Experiment: Population

Imagine a community of N people following these three rules:

  1. Every day, at most 1 person is born
  2. Every day, at least 1 person dies
  3. Over time, the population does not decrease (tomorrow, N must be ≥ the N of today)

What is the minimum value possible for N to start as?

What other social or biological constraints you choose to enforce is up to you, but it is probably most fun if your initial simulation follows modern norms. Then you can skew the variables to see how bizarre a community you can create.

Continue Reading »

PHP 26 Apr 2012 17:00:00

I Like PHP

While there is no doubt PHP is broken beyond repair, it does have a few virtues that keeps it as one of my first choices when writing certain kind of web frontends and minor tools.

There is a huge laundry list of how PHP is broken at “PHP a fractal of bad design“, which I almost entirely agree with. What I will do here is point out the few things on that list that I do not agree with, and why.


Continue Reading »

C++ 25 Feb 2012 13:19:21

C++ vector vs realloc()

A comparison of how many reallocations a worse case poorly coded use of realloc() does, compared to just using std::vector. 10000000 integers are added to the containers one-by-one. Clearly you would never abuse realloc() like this in real code, but it’s interesting nonetheless. Idea from sacrebleu at Freenode’s ##C++.

The full source is available in svn as a CMake project for easy cross-platform testing. Primary source vector-realloc.cpp

Allocs / OSstd::vectorrealloc()
Windows 7409526
Linux: Arch24367
Linux: Fedora 1024438
Mac OS X2431
  • Mac OS X: OS X 10.7.3, 2.3 GHz Core i5, 8 GiB RAM. XCode 4.3, clang++ 3.1 -std=c++0x -stdlib=libc++ -O3.
  • Windows 7: 64 bit, 1.60GHz Core i7 Q720, 8 GiB RAM. MSVC++ 2010 _SECURE_SCL=0
  • Linux: Arch: VirtualBox on the Windows machine, VT-x, Arch Linux, kernel 3.2.7-1-ARCH x86_64, 1 GiB RAM. GNU g++ 4.6.2 -std=c++0x -O3
  • Linux: Fedora 10: Fedora 10, kernel 2.6.27 x86_64, 2.66GHz Xeon, 8 GiB RAM. GNU g++ 4.4.1 -O3

Next Page »