Unexpected stuff!

Let’s have a look at this code: int main() { for(int i{0};i<500;i++) { std::cout<<“This is a big number: “<<i*20000000<<std::endl; } } And let’s compile it with g++ using the flag -O3, what’s going to happen? Before answering, let’s have a look at the assembly, shall we? L16: movsbl 39(%ebx), %eax L6: movl %esi, %ecx movl… Continue reading Unexpected stuff!

Almost useless knowledge

Is almost useless because nobody is going to raise yours salary for that! Or maybe someone will?!? Let’s say we ignore all the benefits of all the optimizations our benevolent compiler is going to made on our code, and have a look at what happen when we execute some hundreds of thousands of times two very… Continue reading Almost useless knowledge

Corporate people!

I’ve been in the IT industry since a while and since much longer I hang out with IT people. I now have a certain idea about what kind of people populate the cubicles of our lovely corporations! Understanding who is what is crucial in order to be sure that each and everybody is placed in the… Continue reading Corporate people!

Longest subsequence with K

Maybe some of you may wonder why lately I wasn’t posting any algorithm, or maybe not. But, I feel the compelling need to explain You the reason behind this behavior! Well, I’m working on my combinatorics book, which just happen to be a very demanding one, and it takes all my free time and free energies.… Continue reading Longest subsequence with K

The Pragmatic Programmer!

Is your first day at your new Corporation, you’re introduced to the company set of CORPORATE VALUES after a brief epistemological digression on the history of the world after the company was founded. A pretty HR girl talks excited of how the company you’re joining is the best place to work on the whole planet and… Continue reading The Pragmatic Programmer!

The benefits of SSH

Nowadays people have access to the internet almost from everywhere at every time, and Internet is going to be even more accessible in the near future thanks to brilliant ideas like flying drone with WiFi AC functionlities which are going to allow people from more and more remote areas of the planet to access facebook or… Continue reading The benefits of SSH