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!

String searching algorithms comparison.

With nature OPHELIA sick had. heel him my MARCELLUS the A with my in comes not sweet if! A means may too; that quantity prepare did! have would not thou But do; thirty fortune, lament And are A of and havior There and. QUEEN am What worse kind. at might at wears that as That… Continue reading String searching algorithms comparison.

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!