There are some very promising plans in place to fix exceptions by gutting them of useless functionality, I'm not a fan of Herbceptions i'd rather they just removed them from the language altogether but it's a definite improvement.
-
-
-
Herbceptions would help with the kind of code I’m trying to write, where performance relies on building up data structures through large NRVO chains whose construction may fail at arbitrary points.
@herbsutter - 2 more replies
New conversation -
-
-
Is it with /EHa or /EHsc? I don't understand the os hooks if you are using the latter.
-
With /EHsc, the Visual C++ runtime decides to call a Windows debug hook on every throw, necessitating a task switch if a debugger is attached. That’s the 16K clocks.
- 2 more replies
New conversation -
-
-
Throwing is meant to be the exceptional path: not throwing is very cheap. Throwing as normal control flow is a terrible idea. Arguable as to whether it's better than a proper return ok/error type.
-
You wrote the tweet I wanted to write

- 1 more reply
New conversation -
-
-
Is C++ particularly inefficient here or is this the same no matter the language ?
-
I noticed JavaScript in Chrome is similar. Exceptions are super slow unless the debugger pane is open, and then they are ultra slow.
- 2 more replies
New conversation -
-
-
Unrelated question.. How are you not verified on Twitter yet? lol
-
Epic is tight with Twitter, as seen with when they deleted all their tweets and got them back. I think Tim probably requested to stay unverified as a personal choice
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.