News for hackers. Stuff that matters.
Re:Why is BIND 10 written in C++ and Python? by axylone on Wednesday February 27, 2013 @12:56PM (#5293751)
Does anyone know of large projects where C++ handles memory allocation failures gracefully? For services that need to stay up and never crash under memory pressure, I would think C is the way to go. It's too hard to reason about control flow with exceptions.
Re:Why is BIND 10 written in C++ and Python? by berkut on Wednesday February 27, 2013 @01:04PM (#5293807)
You don't have to use exceptions in C++. You can do stuff the same way as in C by checking the return pointer.

I've worked on C++ apps that had built-in garbage collection (basically asset (geometry) paging) for huge amounts of data that would allocate/free/page on demand based on what was going on.

Re:Why is BIND 10 written in C++ and Python? by axylone on Wednesday February 27, 2013 @01:10PM (#5293836)
Sure, but then you can't use the standard library or any other libraries. Even a single exception sneaking into the codebase breaks everything.
Re:Why is BIND 10 written in C++ and Python? by berkut on Wednesday February 27, 2013 @01:28PM (#5293932)
We did - loads of Qt and std:: stuff - admittedly we used a custom memory allocator for the std:: stuff, but it worked fine.