Switching from C++ to Rust
laplab.me
Switching from C++ to Rust
1–10 of 289 posts
Re: Switching from C++ to Rust
#2And, as someone who's spelunking in the depths of a large CMake project right now, cargo sounds pretty nice.
Re: Switching from C++ to Rust
#3Re: Switching from C++ to Rust
#4I'm glad to hear about your experience with the language as a developer. It's also been my experience that Rust has the magical power where your compile errors are almost always logic bugs. That's pretty cool from a psychological perspective, because you really feel like your C++ compiler is your enemy (or worse, your lawyer) while the Rust compiler is your friend.
The C++ developer experience is absolutely horrendous (with far too much of the unholiness that is cmake), and I hope that shedding some light on the situation can help people understand how to make it better.
Re: Switching from C++ to Rust
#5Re: Switching from C++ to Rust
#6The call out to sum types is something I feel. I've been using Rust daily for almost 10 years now, and sum types are absolutely still one of the things I love most about it. It's easily one of the things I miss the most in other languages that don't have them. I'm usually a proponent of "using languages as they're intended," but I missed exhaustiveness checking so much that I ported a version of it to Go[1] as a sort…
It's one of those patterns that just comes up again and again and it's wonderful when the language offers a good solution.
Re: Switching from C++ to Rust
#7Nice to see some level-headed anecdotes on the experiences of actually _using_ each language, as opposed to the usual "z0mg rustc fixez all yur mem0ry bUgz!!111one" And, as someone who's spelunking in the depths of a large CMake project right now, cargo sounds pretty nice.
Bryan Cantrill has a number of talks about Rust which are similarly pragmatic
Re: Switching from C++ to Rust
#8I appreciate the inclusion of this section. Different people writing C++ can have wildly different experiences, based on the type of things they are working on. This section offers a good reminder about this, and that one person's perspective is not more or less correct than anyone else's.
Re: Switching from C++ to Rust
#9Nice to see some level-headed anecdotes on the experiences of actually _using_ each language, as opposed to the usual "z0mg rustc fixez all yur mem0ry bUgz!!111one" And, as someone who's spelunking in the depths of a large CMake project right now, cargo sounds pretty nice.
Re: Switching from C++ to Rust
#10The most fun thing reading this comparision is again that for an experienced C++ programmer who is used to managing memory by hand (and fixing segfaults), Rust's memory model doesn't seem that hard, because it makes sense, and he understands why the checks are important.