←back to thread

205 points michidk | 1 comments | | HN request time: 0s | source
Show context
Do123 ◴[] No.41835611[source]
Didn't they just have a shitty implementation written in C (could have been any other language...it's not the language!) and than learned from the past mistakes and written a new implementation in Rust(could have been any other language)? And now the author tries to attribute it's success to Rust?
replies(2): >>41835651 #>>41836185 #
1. pornel ◴[] No.41836185[source]
I've done many rewrites of C in C, and C in Rust, and there is a big difference that is directly attributable to Rust.

The safety of references, no raw malloc, no null pointers, compiler-checked thread-safety of types, consistent and enforced error handling help a lot to make robust programs, and allow making bigger refactorings without fear of screwing something up.

The Turing Tarpit means that theoretically everything you can write in Rust you could have written in C, but in practice Rust enables things that wouldn't be worth the risk/effort in C, even when doing a ground-up rewrite.