News for hackers. Stuff that matters.
Re:Why is BIND 10 written in C++ and Python? by antirez on Wednesday February 27, 2013 @11:42AM (#5293237)
I was referring about how to do it with C.
Re:Why is BIND 10 written in C++ and Python? by muks on Wednesday February 27, 2013 @12:35PM (#5293599)
Hi antirez

C doesn't have a destructor that gets called when something goes out of scope. That's taken advantage of in C++ (RAII) to implement various things (like scoped_ptr that helps avoid leaks).

Refcounting is also not perfect for every case.

But I like and prefer C. ;) Just pointing out one thing different in C++.

Re:Why is BIND 10 written in C++ and Python? by thwest on Wednesday February 27, 2013 @12:25PM (#5293533)
How is a C implementation of std::shared_ptr safer?