I recently put a kprobe using eBPF for a function that accepts 8 parameters. The trouble is that BPF_KPROBE macro can only handle functions with up to 5 parameters but I was interested in most of them. It took a bit of fiddling to get to all of them and...
[Read More]
Google C++ Style Guide is No Good
The Google Style Guide (GSG) for C++ has become popular outside of just Google.
But I don’t like it at all. There… I said it.
Now I want to take this opportunity to explain why I feel so strongly about it.
[Read More]
Smart Pointers in Function Arguments
The guidance around function arguments and smart pointers is quite old, yet I still see it used incorrectly. In this post, we’ll explore the guidance and the costs of not following the advice.
[Read More]
Break open that container!
If you happen to follow the world of IT infrastructure, DevOps, or just happen to be an IT professional, you, no doubt, have heard of the container revolution. Propelled into popularity by Docker, containers (and the ecosystem around them) seem to be the answer to all things ops. I, too,...
[Read More]
Factory functions and their return types
Suppose we need to write a factory function that constructs a runtime polymorphic object.
For the purposes of this post, let’s say we want to construct a concrete shape object – a rectangle, triangle, or an ellipse.
Here are our basic declarations:
[Read More]