Re:Zig: a system language which prioritizes optimality, safe...
by qwertyuiop924 on Monday August 29, 2016 @06:36AM
(#12381044)
C didn't fully replace asm
Asm is still a language that is used. If we're talking about fully replacing a language, than yes, you cannot have it in your toolchain.
Re:Zig: a system language which prioritizes optimality, safe...
by Ygg2 on Monday August 29, 2016 @07:00AM
(#12381123)
Right, and C is widely used/successful language.
As a poet once said - "Perfect is the enemy of good".
Rust never aimed to replace all of C/C++ forever, everyhwere. That's nigh impossible. Much in the same way, it's impossible for ASM to replace machine code or 386 processors to replace Commodore 64 or Analytical engine. There will always be some shop that programs in ASM/C/C++, like there are shops that program in COBOL.
Rust point was - to replace C/C++ in domains that require safety and speed.
Re:Zig: a system language which prioritizes optimality, safe...
by qwertyuiop924 on Monday August 29, 2016 @09:41AM
(#12381755)
No, Rust didn't. Zig does.
Replace your example with assembly and C. According to this, C can't replace assembly and assembly can't replace machine code, which is an absurd statement.
No modern development of OS is done in assembly only.