Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
erickt.github.io
erickt.github.io
> Baring bugs, this mdbm library should perform at roughly the same speed as the C library, but eliminate many very painful bug opportunities that require tools like Valgrind to debug.
This is exactly why I'm so excited about Rust.
> but eliminate many very painful bug opportunities that require tools like Valgrind to debug.
That's an understatement. Rust won't just eliminate many very painful bugs, but probably the most common class of errors too!
Coming from a managed language, yes, it's a bit harder.
What I've found is that there's an initial hump, but then it gets easy. I haven't had a serious fight with the borrow checker in a while. I'd say I'm about 70% as productive with Rust as I am with Ruby, and most of that missing stuff is due to a lack of libraries, not due to the language itself.
I also am less likely to try the kinds of unsafe-but-i-know-they're-safe things that someone doing C++ for the last decade would, so that might bias my opinion.