Open wg21bot opened 3 years ago
P2370R1 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin)
Mailing review 26-07-2021-13-09-2001
Lots of interest for this paper to land in 23 along the already approved stacktrace proposal. A R1 was provided during the review addressing most of the concerns and feedback offered during the review. A core expert offered some wording review
We probably still want to hear from implementers directly about the potential issues pertaining to ABI stability.
Given all the feedbacks were addressed and reviewers are happy with the general design and wording, I recommend that this paper is reviewed during a LEWG telecon.
Deferring to C++26 due to lack of time.
@brycelelbach : Can you elaborate a little more about this? While the "infrastructure" is very nice, the killer feature for many is for existing code, and the standard library especially, to throw exceptions with stack traces.
@brycelelbach : "Lack of time" means lack of time. It means the committee doesn't have the bandwidth to work through the issues of the proposal (while still doing what's already on their plate) before C++23 needs to be feature complete.
@NicolBolas : I think you meant to address me. Anyway, there seem to be issues with the proposal. I was hoping for a few words about what issues have come up.
P2370R2 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin)
P2370R2: Stacktrace from exception
2022-06-21 Library Evolution Telecon Minutes
P2490R0: Zero-overhead exception stacktraces
2022-06-21 Library Evolution Telecon Minutes
Chair: Bryce Adelstein Lelbach
Minute Taker: Ben Craig
Champion: Antony Polukhin (P2370) & Ed Catmur (P2490)
Start: 2022-06-21 11:51 Eastern
Does P2370 have:
This needs to be seen by Evolution.
P2380R2 proposes capturing the stacktrace at the throw side and allows you to globally or per-thread enable/disable capturing stacktraces.
P2490R0 proposes to capture the stacktrace at entering the catch block rather than at the throw side.
End: 12:17
P2380R2 (Stacktrace from exceptions) and P2490R0 (Zero-overhead exception stacktraces) propose mechanisms for attaching stacktraces to exceptions. P2380R2 proposes capturing the stacktrace at the throw side and allows you to globally or per-thread enable/disable capturing stacktraces. P2490R0 proposes to capture the stacktrace at entering the catch block rather than at the throw side.
It became apparent during Library Evolution's review of these papers that they should be seen by Evolution first. Once Evolution has decided upon a design direction for this feature, Library Evolution can review the Standard Library exposure of the feature.
Send P2380R2 (Stacktrace from exceptions) and P2490R0 (Zero-overhead exception stacktraces) to Evolution.
It became apparent during Library Evolution's review of these papers that they should be seen by Evolution first.
Can you elaborate slightly on why that is? i.e. will changes to the language be necessary?
How to enable/disable stacktraces and how to access them from an exception are properties of the exception handling mechanism, which is a language feature. One of the proposals has an implementation in a compiler and involved changes to the compiler and language runtime, not just new library APIs.
EWG saw this paper in the February 9th, 2023 morning session, and the following poll was taken:
Knowing our time is limited, EWG would like to see P2370R2 again, provided it includes language-level exploration/implementation experience.
SF | F | N | A | SA |
---|---|---|---|---|
1 | 12 | 12 | 4 | 0 |
Result: Not Consensus
@erichkeane : Is consensus necessary for just "seeing again"? Also, what were the arguments against "seeing again"?
@erichkeane : Is consensus necessary for just "seeing again"? Also, what were the arguments against "seeing again"?
@eyalroz : This paper tracker is not for discussion, just for organization of the papers by chairs. Please take dicussions like this to the reflector.
Please contact your National Standardization Body (a list is here: https://www.iso.org/members.html ) to join ISO/IEC JTC1 SC22 WG21. Once you've joined, you'll then get access to the reflectors ( = mailing lists ).
@eyalroz - I'm the NB chair, you have my contact details (email and LinkedIn). I sent you a message on both, let's chat there.
@eyalroz reached out and got all the relevant details (for this paper and in general). :) Removing procedural WG21 info from the thread.
P2370R0 Stacktrace from exception (Andrei Nekrashevich, Antony Polukhin)