Re:Why is BIND 10 written in C++ and Python?
by Meai on Wednesday February 27, 2013 @01:09PM
(#5293830)
First you are saying c++11 is the far superior option (with that one caveat) and in the last sentence you imply that C would still be faster.
Can you clarify?
I'll add my opinion too:
I think all the readability you can get out of c++, will be wasted in layers upon layers of object oriented design and C compiles much faster, so there is that.
Re:Why is BIND 10 written in C++ and Python?
by alexgartrell on Wednesday February 27, 2013 @02:47PM
(#5294426)
C++11 is the superior option because it is easier to write correct code with it, plain and simple. And we aren't talking about orders of magnitude difference in throughput or latency, we're talking about a slight increase in CPU idle.
And layers upon layers of object oriented crap is also a problem in C (I've seen it). At the end of the day I've just been burned more by the complexities of building large things in C (particularly when people do reference counting in C) than I have been by the complexity of c++ in general.
Unique_ptrs are a total game changer, and the ability to use closures and lambdas when you want to set a callback function instead of a function pointer with a context pointer you have to cast and decode is absolutely huge for readability. maybe we aren't getting every last bit of performance out of it that we could with C, but it works at our pretty ridiculous scale, so I think C might have been a premature optimization for us.