Home
C++95
Cancel

Don't compile template code on every build ⌨️

I have a “childhood trauma”, I don’t really like templates - I think it’s better to use them in exceptional cases. There are not many cases where classes/methods must be templated. I use my own in...

How does the compiler measure compilation speed? 🕰

In C++, it’s very easy to make that a project takes very long time to build. In my personal top, a unit test (in the form of a single .cpp file) used to compile for 4.5 minutes. Fortunately, the c...

Iterators with conditional end 🏁

Iterators are one of the core concepts of C++. C++ has its own corresponding iterator class for each container class (set/vector/list/…) used to access its own data. The class for which the corres...

Simulating physics in C++ using numerical analysis 🌊

Programs for all kinds of simulations (water, fire, smoke, glass, heat exchange, etc.) take a large part in the world of C++. In addition to academic research, this is applied in films and games. W...

How clang-tidy works 🧹🧹🧹

clang-tidy is used to automatically fix common mistakes in C++ source code (or to emit warnings, at least). Similar tools in other languages are called “linter”, they are often embedded into the la...

Classical mechanics in C++ - overview of the Box2D engine 🚀

Box2D is a popular physics engine used mainly in games. You can see which games were created with Box2D in a YouTube video. I guess the most popular game using Box2D is Angry Birds. Box2D calcul...

(Python) How not to write a compiler 🌾🚜🐄

There is a brand new Python compiler, which is being discussed on Reddit. https://www.reddit.com/r/Python/comments/w7vlim/i_made_a_python_compiler_that_can_compile_python/ https://github.com/Omyy...

📚 Book review: "C++ Lambda Story" (2021)

Link to Leanpub. As you know, the C++ language is very simple, in just 157 pages you can understand how lambdas work in C++ ✨ (pun intended) I’d recommend to watch a video joke before reading t...

📚 Book review: "The Small C handbook" (1984)

Link to Amazon. This book has quite an interesting story. There are two versions of the book on the photos. The photo on the left represents the original 1984 “The Small C Handbook”. The phot...

The Carbon language - what are its authors silent about? 🕵️

Many have already heard about the Carbon language, which Google presents as a “successor of C++”. In just a few days, people gave it 16k stars on GitHub. We can observe it from three points of vie...