Demystifying constexpr

Posted by user on 22 Nov 2016

C++ 11 and C++ 14 came with a lot of new features. People tend to focus on lambdas and rvalue references, but today I’d like to talk about constexpr.

Read More

Tags: c++, constexpr, Uncategorized

Boost.Filesystem and error handling

Posted by user on 04 Feb 2015

Many Boost.Filesystem functions and methods (and the pattern also exists in Boost.Asio) will throw a boost::system::error_code in case of error, and sometimes it is not as obvious as you might expect, case in point:

Read More

Tags: boost, c++, error, exceptions, tie, Uncategorized

std::chrono ambiguities

Posted by user on 30 Jan 2015

Precision is costly - As you saw in our previous post getting a timestamp as precise as possible is expensive in precious cycles. We do it only when we really need it because we really care about writing the world fastest database.

Read More

Tags: c++, chrono, libc++, stl, Uncategorized, visual studio

The Nagle Algorithm

Posted by user on 25 Nov 2013

I'm used to read technical inaccuracies when it comes to system programming, and writings about the Nagle algorithm are very high in the list.

Read More

Tags: asio, c++, nagle, networking, Uncategorized

How fuzzing helped us find a nasty bug

Posted by user on 08 Jul 2013

> The issue described in this post has been fixed in quasardb 1.0.1 released today. We strongly encourage our customers to upgrade their clusters. This issue can cause a denial of service if an attacker has access to the network where your quasardb cluster is installed.

Read More

Tags: c++, fuzzing, quasardb, testing, Uncategorized

Scaling with C++ 11

Posted by user on 21 Jun 2013

My "Scaling with C++ 11" talk is online.

It's really great to see yourself in video because everything bad about your presentation becomes obvious. I already have a lot of ideas to improve this one and I hope I can deliver something much better at Meeting C++. I hope to see you there!

Read More

Tags: boost, c++, conference, Uncategorized

Lockheed SR-71 Blackbird

Posted by user on 12 Jun 2013

In my C++ Now 2013 presentation, I talked about the Lockheed SR-71 Blackbird as an example of how you sometimes go around problems by "leaking":

Read More

Tags: blackbird, c++, sr-71, Uncategorized

String to int and vice versa

Posted by user on 15 May 2013

> Hope you guys are enjoying C++ Now!

We use Boost.Spirit for all our parsing and generation. What I mean by that is that when you have to parse input or generate output, we don’t use std::stringstream, we don’t use the C libraries and we definitely don’t write custom parsers or generators.

Read More

Tags: boost, c++, conversion, spirit, Uncategorized