Hacker News new | ask | show | jobs
by simon_void 612 days ago
> Rust takes longer to write than C

> but spent basically zero time debugging

that's the difference to rewriting it in C

1 comments

One could argue that when the program is finished without bugs, then it is maybe completed. So does it take actully longer to write with Rust?
It depends how proficient you're in Rust. Once Rust itself is not a difficulty for you, there's a lot of productivity gained from having a modern language with many conveniences, and great tooling.

Rust moves more bugs to compile time, so you will technically spend more time getting the code to compile, but in my experience in 99% of cases it's a time saving. And it lets you be more confident about a program correct by construction, rather than merely fuzzed and not observed to crash. The 1% of counter-examples is trying to be too clever with generic interfaces and hitting Rust's limits.