back

by wglb·17y ago·view on hn ↗
As someone who has done some seriously low-latency projects on C++, there are really many levels that you can do this at. You can turn off exceptions, do constructors very sparingly, handle your own memory management and so on. As was said by its creator, C++ is a multi-paradigm programming language.

There is something to be said for doing a lot of kernel stuff in template metaprogramming.

1 comments
(Could've sworn this was in C++ FAQ Lite, but I can't find it) The language specifies exceptions as a feature, not an option. Turning off a language feature and how that works with other features that may reference it is a heavily compiler-specific endeavor, and isn't C++.
Yes, you are correct. In my high-performance version, I used an extension of the language provided by g++ which allowed turning off of exceptions, which sadly cost time even if you don't use them.