News for hackers. Stuff that matters.
Re:Driving with D by haolez on Tuesday June 01, 2021 @11:36AM (#27356115)
Except that Rust compilers seem incredibly hard to implement, as opposed to C.
Re:Driving with D by pas on Tuesday June 01, 2021 @12:35PM (#27357221)
To give some perspective: mrustc is written mostly by one person, in C++ and it caught up to 1.39.0 recently - meaning it can "compile" rustc itself (without any type safety validation) as opposed to arbitrary Rust code.

Also C++ compilers are hard too. And optimizing C compilers are hard too...

Re:Driving with D by maxpert on Tuesday June 01, 2021 @12:22PM (#27356985)
That is very true but absolutely fine because then some fine set of engineers can do the hard lifting parts and rest of the ecosystem can thrive on stable base that core establishes. That is how things work in most of industries, not everybody is writing a compiler (or even suitable for writing one!), but the complexity compilers remove lets you build more complex pieces of engineering.
Re:Driving with D by echelon on Tuesday June 01, 2021 @12:01PM (#27356621)
I don't think minimal compiler complexity is a real requirement as much as safe and reliable software is.

CPU fabs aren't easy, yet we're fine with that.

Re:Driving with D by haolez on Tuesday June 01, 2021 @12:19PM (#27356942)
It matters for portability. I'm not saying it's the most important requirement, of course, but it's C strongest point.
Re:Driving with D by Zababa on Tuesday June 01, 2021 @12:33PM (#27357176)
Do you need to build an entire compiler or "just" the backend/code generation to port something? Although "just" a code generation for Rust means building one for LLVM, which I'm sure is harder than some C compilers out there.