News for hackers. Stuff that matters.
Re:Rust sucks because by chrismorgan on Monday January 23, 2017 @09:17AM (#13462261)
> LLVM's optimizer considers undefined behavior a license to kill. Of course, that only matters in unsafe code,

We’re not quite there yet with defining rigorous semantics for unsafe code (there are still a couple of undefined things at present), but Rust does intend to rigorously define all behaviour. So this is a quibble which is being dealt with.

(Note that there’s still the odd rustc bug involving LLVM doing something it shouldn’t, but those are just bugs. See https://github.com/rust-lang/rust/issues?q=is%3Aopen%20label... for a couple.)

> but you need unsafe code for anything complicated.

… what? Somewhere deep down in your dependencies, maybe, but for most things you really don’t need unsafe code.

----

Most of the rest of the issues are either Rust immaturity (compiler is slow, &c.) or tradeoffs that the language has made (String vs. &str). There are definitely some legitimate criticisms in it.

Re:Rust sucks because by hyperpape on Monday January 23, 2017 @10:57AM (#13463029)
>> but you need unsafe code for anything complicated.

> … what? Somewhere deep down in your dependencies, maybe, but for most things you really don’t need unsafe code.

If anyone has an account or feels like creating one, that line really should be changed to "unsafe code can't always be avoided" or "fundamental types like Vector are implemented with unsafe" or something similar.

Re:Rust sucks because by all2well on Monday January 23, 2017 @11:27AM (#13463307)
>fundamental types like Vector are implemented with unsafe

That's kind of the point, though: Vec provides a safe interface over behavior that would otherwise be unsafe. You could as easily complain that C is fundamentally implemented in machine code without any type safety.

Re:Rust sucks because by hyperpape on Monday January 23, 2017 @11:48AM (#13463512)
I agree that it's not a huge problem. But it does communicate accurately where unsafe appears, unlike the existing text.