News for hackers. Stuff that matters.
Re:Why Safety Profiles Failed by j16sdiz on Friday October 25, 2024 @03:57AM (#41943191)
> A C++ compiler can infer nothing about aliasing from a function declaration.

True. but you don't solely rely on the declaration, do you? lots of power comes from static analysis.

Re:Why Safety Profiles Failed by steveklabnik on Friday October 25, 2024 @09:53AM (#41945302)
It’s important to only rely on the declaration, for a few reasons. One of the simpler ones is that the body may be in another translation unit.
Re:Why Safety Profiles Failed by seanbax on Friday October 25, 2024 @12:32PM (#41946871)
You do solely rely on the declaration.

From P3465: "why this is a scalable compile-time solution, because it requires only function-local analysis"

Profiles uses local analysis, as does borrow checking. Whole program analysis is something you don't want to mess with.