logoalt Hacker News

worrycueyesterday at 12:57 PM3 repliesview on HN

> Rust may have a tremendous success in the future, because it's much easier to write it with AI (ignoring for a moment whether that's really a good thing).

It’s interesting that Rust could become the most deployed but the least written (by humans) programming language if the dreams of AI bros come true.

If AI gets good enough to competently translate other languages to Rust then there is no point writing in Rust (a language with a steep learning curve and is high friction in use), you can just write in a low friction language like C, C++, Odin, Zig, … etc. and have AI translate it to Rust catching all the memory bugs in the process.


Replies

vlovich123yesterday at 2:08 PM

C/C++ is low friction compared to Rust? Wow. We have very different experiences.

show 1 reply
maleldilyesterday at 4:08 PM

> translate it to Rust catching all the memory bugs in the process

That's not possible. If it were, you'd just fix the memory bugs directly in the original language.

Your best bet is to have a translation littered with unsafe blocks, so you still have to do the work of nailing down the specifics to make them safe. There's no magic "unsafe language" -> "safe Rust" pipeline, even with GenAI.

show 1 reply
moomoo11yesterday at 2:06 PM

i’d rather have a run time than this way of working.