• Algorithms
  • Stern-Brocot tree’s.

    I’ve encountered this mirable structure this weekend when dealing with cleaver ways to represent fraction of rational numbers n/m where gcd(n,m)=1 (nominator and denominator are relatively prime), Stern-Brocot tree’s are just all about building all the possible fractions that are in they lowest form. What’s interesting (but that came as evident once one understand this structure) is […]

  • C++17
  • C++17: Folding expression.

    That is one of those new additions to the language that for the most part is not understood, but that’s not a surprise since most of the people do not understand as well for what reason on heart someone included something diabolic as the variadics in the C++ language. The folding expressions was added to the […]

  • C++17
  • C++17: map splicing

    Std::list have a very useful operation which allows you to move elements from one list to another, it’s called splicing. Splicing come’s almost for free, no elements are really moved but only the pointers internally used by std::list are copied from one container to another. Here’s how splicing work: The first invocation of the splice function […]

  • C++
  • Rendering text, not that simple at all. (part 1)

    It was a kind of surprise to discover that there’s no straightforward way to render text using OpenGL, for people new to graphics programming like me drawing a text looks like a very primitive functionality which I expect to be available by default as functions like glDrawText(some context,const char*). But that’s not the case, and rendering text […]

  • C++
  • C++17: let’s have a look at the constexpr if

    There was a long discussion in the C++ community about when and how to implement the static if, the original proposal from Bright, Sutter and Alexandrescu which was aiming to define a possible implementation of this feature was resurrected after a quite long silence, just to be included in the upcoming C++17. The actual implementation of the […]

  • blog
  • Slippers

    We all have our weak sides, areas of knowledge that are way too far from an acceptable level. What is an acceptable level then, is all a matter of what you do and what’s the purpose of your knowledge. Changing job or project is going to greatly influence what will be your skill set in […]

  • blog
  • Moving on my own!

    I was thinking about moving on a dedicate hosting since a while, the free wordpress hosting from wordpress.com is good for the first few months, afterwards when you start wanting something more the free account is not good anymore, there are plenty of limitations: You cannot setup any custom theme nor modify the existing theme in […]