Hacker News new | ask | show | jobs
by paulfurtado 2590 days ago
That's due to no shortage of effort by the maintainers, however: one small bug can easily lead to memory safety problems.

Rust is great in this sense because you don't have to think about those issues.

That said, I'd pick rust over C for most projects simply because it's a nicer language to write IMHO. It feels like a modern high-level language with things like iterators, traits, etc, and it has a great package manager too. In comparison, I find writing C to be a huge chore, especially if you're doing much string processing

1 comments

Very importantly, Rust's safety guarantees help with "fearless concurrency", and better multithreading accounts for most of the performance gain we see in these new tools.
You can have fearless concurrency in C too if you use async queues and handover data completely without sharing references to data between threads (other than via the queues) - including using thread safe functions.

Rust will not help you with other multi-threadding issues, that arise from how OS implements processes/threads/signals/syscalls etc.

So I wouldn't call it fearless. Concurrent data access is just one issue you have to tak care around.