News for hackers. Stuff that matters.
Re:Microsoft is Getting Rusty [video] by ramon156 on Wednesday February 26, 2025 @06:09PM (#43189334)
Close! Depends what you call 100% I suppose. Even C isnt 100% C
Re:Microsoft is Getting Rusty [video] by estebank on Thursday February 27, 2025 @11:44AM (#43196024)
I suspect they are arguing that it is not because the default codegen backend produces LLVM IR, which C++ code turns into the final executable. The Cranelift backend which is pure Rust exists, but because it is not the default some people discount it. I personally believe that leveraging existing codegen infrastructure is sound engineering. Having a "pure" implementation is not a goal of the project, having solid tooling is. That might translate in the future to tackling codegen more directly, but it isn't a huge pain point today.
Re:Microsoft is Getting Rusty [video] by no_wizard on Thursday February 27, 2025 @07:36PM (#43200291)
The real contention is how do you know it’s memory safe if Rust itself isn’t pure safe Rust?
Re:Microsoft is Getting Rusty [video] by steveklabnik on Thursday February 27, 2025 @07:42PM (#43200322)
Because that’s not really relevant; Java is a memory safe language and the JVM is written in C++, Ruby is a memory safe language and it’s written in C.
Re:Microsoft is Getting Rusty [video] by no_wizard on Friday February 28, 2025 @09:14AM (#43205811)
Both of those have had memory related exploits, as I recall
Re:Microsoft is Getting Rusty [video] by steveklabnik on Friday February 28, 2025 @11:28AM (#43207424)
Bugs happen. That’s true of any program.