News for hackers. Stuff that matters.
Re:Investigating the Performance Overhead of C++ Exceptions by pjmlp on Wednesday February 12, 2020 @10:02AM (#22309300)
I imagine that if value type exceptions get added, they will be exposed in the type system just like noexcept is.
Re:Investigating the Performance Overhead of C++ Exceptions by gpderetta on Wednesday February 12, 2020 @11:53AM (#22310405)
oh, yes. As far as I can tell, these static exceptions are basically syntactic sugar over an either<T, Except> return type, possibly with a custom ABI that stores the discriminant implicitly in a flag register (so on the call side you do not even need to load the discriminant and compare it and instead directly do a JMPcc ).