For compatibility reason to C the C++ language include the union construct which allows to manipulate several different types in a uniform manner. The reason I’m writing that this feature exist for compatibility reasons is that is almost completely useless when you’re doing object oriented programming, the only allowed types to be used with union are POD’s, non […]
Author: Filip Janiszewski
Short post about the GCD.
You probably think you know everything about what the Greatest Common Divisor is and how to calculate it quickly! Well, that’s most probably the case, but just in case you do not remember all the details then here’s a short post about the GCD! (All the code is available here) Simple GCD Let’s start with the basic […]
I received a book for Christmas, the author is Marie-Monique Robin and the title is “Our Daily Poison..”. This is perhaps the second book I read about the food business, the other one is “Salt Sugar and Fat” by Michael Moss, those books has strengthened my gut feeling that what we eat isn’t safe and […]
End of the year.
Also this year is over, like the one before and presumably the next one. I’m rather not very satisfied about this 2016, have been planning many things but just very little has changed, most of the things remained the same with just some variation on the theme. The only good news from this 2016 is that […]
When someone tell me that he know’s C++ and that he actually is a C++ programmer I believe him, but, this statement need some further explanation about which version of C++ the fellas is talking about!. Most C++ programmers knows C++03, eventually a little of C++11 and that’s all. Nowadays the tag C++ is used by […]
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: 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: 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 […]
Rendering text, not that simple at all. (part 2)
Finally I’m back! September was a long and busy month, as you probably know I changed my job and had a lot of paperwork to do in relation with this event! But now it’s done! I’m on-board of a great project with great people, its gonna be cool I think. Before sharing details about my duties […]
Hi there! I was supposed to write down a technical post, but instead I’ll just update you with what’s going on, like an overall picture of the facts of my life now! There are some changes going on which are impacting how I can manage my free time, let’s have a look then: Sport I […]