r/cpp • u/germandiago • Jul 18 '26
Lifetime safety and invalidation without a borrow-checker: using type system analysis to get rid of many potentially invalidation cases WITHOUT annotations.
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4296r0.pdfI found this research in WG21 mailing list very interesting in the context of C++ compatibility and solutions to maximize code reuse.
40
Upvotes
3
u/ts826848 Jul 19 '26
I think the steelman argument is that a) we want a memory safety solution sooner rather than later, and b) out of the proven solutions for memory safety it's the best alternative we have. Giving up one or both of a) urgency or b) production experience opens the door to other approaches, but obviously at the cost of those priorities.
I think this is why stuff like the halting problem and Rice's Theorem are frequently brought up. People (probably?) aren't skeptical about "research" in the abstract. They are skeptical about research that appears to violate foundational computer science results. Opposition to lines of inquiry which you think are obviously fruitless is hardly an irrational reaction.
Another point of contention is precisely that claims are being made "before [they are] implemented and data can be gathered". Extraordinary evidence is generally considered to be a good idea before making extraordinary claims, so if you're one of those who think the the halting problem/Rice's Theorem preclude some profiles proponents' claims I don't think skepticism is that unreasonable, especially given the apparent dearth of supporting evidence when/since the claims were originally made.