Remix.run Logo
▲ nostrademons 11 hours ago

The context of this thread is AI-assisted code. You are writing the app in English, and all of these religions about C vs. Rust vs. Java vs. C++ are irrelevant because we're all going to be out of a job.

The sole advantage of Rust over C or C++ is that the borrow-checker provides a set of guardrails for the AI so that certain classes of bugs become impossible to generate, and then the compiler error will feed back to the AI so that it knows it's gone off the rails. This is a common failure mode for AI: frequently it does what you tell it to, but then its attention mechanism isn't on things like security or robustness and so it unknowingly introduces a crash or memory safety violation. The sole advantage over Java is that it generates faster code, which is normally something you have to prompt the AI to do. All the stuff about programmer ergonomics or ecosystem health is meaningless, because there are no programmers.

▲hollowonepl 10 hours ago | parent [-]

I understand advantages of rust as they are sales pitched but I also see disadvantages which even experienced rust developers start pitching too. My point is that rust is not ultimate answer to every programming issue regardless of AI being used or not.

I also disagree that even if you vibe code in natural language (English or any other), platform selection still matters and it’s naturally a preference and experience related reflection of a vibe coder who positions himself as architect, product owner and analyst more than a single platform choice zealot.

In such case selection of modern C/C++ is equally revenant as religiously pitching about a single rust feature as differentiator here. It simply reflects the ability to control author’s vision of the outcome and ability to control it.