100 karma · joined April 26, 2015
Blog: https://blog.jamesolds.me
Don't rewrites, even in the same language usually lead to a better version of the software? I can't really imagine a seasoned C developer introducing completely new bugs in a code base they are already very familiar with
You COULD write a website in pure ASM[0], but should you?
1. Zero cost abstractions, namely the ownership system - No GC by default, provides memory safety without the overhead but at the cost of a higher learning curve.
2. Higher-level language features like FP, inheritance, and generics that optimize away to machine code that's equal to or faster than the equivalent C version.
3. Cargo / crates package management. You just include any external library you need in your Config.toml file and cargo takes care of the rest.
4. Best of both worlds type system - about as strongly typed as Haskell but type inference takes care of the tedium of having to annotate the type of every variable like C / java style giving the killer feature of "if it compiles it's basically bug free".
*It's basically CS minus the math.