Re:Optimizing C++ Const Objects in LLVM
by twoodfin on Sunday December 27, 2015 @05:37PM
(#10799008)
Can you link to more information about this? Googling for "c++ core lifetime profile" just takes me to the Core Guidelines.
Is the idea that they'll codify a bunch of static analysis that disallows problematic constructs & patterns? Could implementers then add something like Rust's ownership checks (assuming full source visibility)?
Re:Optimizing C++ Const Objects in LLVM
by steveklabnik on Monday December 28, 2015 @10:10AM
(#10801406)
My sibling commentators have given you good links, but it's worth noting that these systems and Rust have a lot of differences. For example, they're explicitly not trying to tackle data races, and the way that they work is different.
I'm excited to see this all play out though!
CppCon 2015: Herb Sutter "Writing Good C++14... By Default":
Sutter comments on const_cast around 11m15s.
(I have my reservations about whether ISO Core C++ with the lifetime profile really qualifies as C++ anymore due the massively backwards incompatible nature of the changes, but it'll be interesting nonetheless.)