Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
1–7 of 7 posts
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#2> 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.
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#3The best quote is at the end, IMHO: > 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!
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#4The best quote is at the end, IMHO: > 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.
So say we all. > 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!
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#5Earlier quoted context omitted.
So say we all. > 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!
Rust is awesome, but coming from usual languages is... frustrating. You need to internalize that the compiler _really_ knows better what's safe and what isn't and it takes a while.
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#6The best quote is at the end, IMHO: > 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.
Re: Using Rust to Make a Safer Interface for Yahoo’s Fast MDBM Database
#7The best quote is at the end, IMHO: > 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.
It seems like this is the ideal use case for Rust. I understand the allure of type safety and everything that the Rust compiler can guarantee but I think the sheer difficulty and complexity it creates (and it does necessarily create complexity sometimes) makes it somewhat prohibitive. So maybe Rust's niche lies in smaller memory-sensitive roles?
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.