News for hackers. Stuff that matters.
Re:From Stacks to Trees: A new aliasing model for Rust by FpUser on Sunday June 11, 2023 @09:14PM (#36287427)
>"Compiler afaik will never be able to correctly 100% identify"

Nobody here is talking about 100%. I responded to a post that has left me with the impression that it is up to the user to bend backwards and make their brains work as a compiler rather than try to improve compiler.

Re:From Stacks to Trees: A new aliasing model for Rust by Ygg2 on Sunday June 11, 2023 @11:08PM (#36288009)
> that it is up to the user to bend backwards and make their brains work as a compiler

What do you mean? You always have to track lifetimes and what outlives what (i.e. work of a compiler). Especially in C++. Not doing that results in UB.

In Rust you have a compiler double checking you. And it errs on side of caution. And no, errors aren't horrible, they come with suggestions for fixing them.