Rust Is The Language For AI
The borrow checker and a great guarantee at compile time that your code has no memory leaks or segfaults sounds like a wet dream for C++ programmers. Yet many C/C++ programmers absolutely disdain the language written by Mozilla. Maybe it's just not human, and I feel like they're right. The constraints Rust puts on you just don't fit the mental model of most programmers. We are used to trusting ourselves with memory: allocate it, free it, pass a pointer around, and hope nobody else touches it at the wrong time. Rust says you cannot do that anymore. You have to prove to the compiler who owns what, and when, before your code is allowed to run.
I think that's why the language feels hostile at first. It's not that the borrow checker is smart; it's that it refuses to accept the shortcuts you've been taking for years. Fighting it for a week is miserable. Then one day the rules click, and you start writing code that is correct by construction instead of correct by convention.
So why do I think Rust is the language for AI? Not because you'll train a transformer in it — Python still owns that layer. It's the infrastructure around the model: tokenizers, inference servers, vector stores, schedulers, anything that has to be fast and handle a lot of work at once. That's exactly where C++ used to be the default, with all the memory bugs that come with it. Rust gives you similar performance without the footnote that one bad pointer can take down the whole service.
Is it worth the pain? I think so, if you're building something that has to stay up. If you're writing a weekend script, just use Python and go outside. But if you're building the thing that serves a model to a million people, the compiler yelling at you at build time is a lot better than a pager going off at 3 a.m.
Maybe that's the real pitch: Rust doesn't make you a better programmer. It just makes it really hard to be a bad one.