-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port the questions to C++23 #293
Comments
I'm ready to help. But which links to use? There is https://timsong-cpp.github.io/cppwp/std20 now, but no https://timsong-cpp.github.io/cppwp/std23 yet. |
Fantastic, thanks! Yeah we'll have to wait a bit with starting on this until we have https://timsong-cpp.github.io/cppwp/std23. |
I vote for porting cppquiz to C++20 first. The main reason - target audience:
So it would be really cool to have bleeding-edge questions in cppquiz but this will probably reduce the target audience for some years. I understand the time trade-off but I have plenty of free time for help with porting questions and here are scripts to generate an improved version of the GitHub repository for porting questions based on the 11->17 one: https://github.com/vsklamm/cpp20quiz |
I would really appreciate your help in porting the questions! Good point about the target audience. But just to clarify: Porting the questions to C++23 is only about updating the references to and quotes from the standard. I don't think we have any questions on the site that change behaviour from 20 to 23, and probably not from 17 to 20 either. So porting to 20 or 23 will not invalidate any of the current questions for people still stuck at 17. We could, of course, avoid publishing new questions that are only valid in 23, if we want all questions to be relevant to most people. On the other hand, maybe it could also be refreshing for people to see some new stuff even if they can't use it yet? In my experience, talks about new language features are well received at conferences even if many in the audience probably can't use them in prod at work yet. Even with several people helping, it's a lot of work to update 160 questions and figure out where everything moved in the new standard. I think it would be nice to avoid doing that work twice. And in any case I still won't have time to start the porting effort for some months. In the meantime, let's figure out when https://timsong-cpp.github.io/cppwp/std23 will be ready. |
I think we can move forward with https://timsong-cpp.github.io/cppwp/n4950 It seems to be the last draft of C++23, according to https://github.com/timsong-cpp/cppwp , https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/n4951.html , and https://w.wiki/9Dj9 (which refers to n4951). What do you think about it? |
timsong-cpp/cppwp#9 |
Hah, there we go! https://timsong-cpp.github.io/cppwp/std23/ Nice, then we can start. I've been very busy finishing my book lately, but some time is about to free up again. I'll make sure to set everything up shortly so we can get this going. |
The porting repo is now ready, and we can start! https://github.com/knatten/cppquiz23 I haven't written a blog post about this or really gotten started yet, since I don't have time for a little while more. But if anyone wants to test out the process, or just start porting, I'd really appreciate it! |
Do not think that this the case nor a problem because from my view in Germany people either stick to the recent standard or stay with older tools than C++17 e.g. C++03 |
|
Thanks! Updated the check list in the issue |
The site has now been updated. We need to fix the godbolt link, I don't have time right now. Planning to do that and publish the blog post tonight (unless someone fixes the godbolt link in the meantime). Need to check whether msvc supports C++23 now before updating the link. |
Shouldn't we also update this link to https://timsong-cpp.github.io/cppwp/std23? |
Yes, we should. Fixed in #360 and deployed now. |
Closing the issue now, handling the last bullet point offline. |
All the questions on the site are currently describing the behaviour as of C++17, and also quoting the C++17 standard. We need to get with the times. Let's just skip 20 and go straight to C++23.
The plan will be very similar to what we did in #77, where I got some great help from the community. If you're interested in maybe helping, please make a comment in this thread, and I'll tag you when we start porting. I don't take those comments as commitments, so it's perfectly fine to just ignore it when I tag you in the future.
Plan (mostly copied from #77)
README.md
at the root, and then each question has a separate directory named as the number of the question. Each question gets it's ownREADME.md
too, for convenience.README.md
for that question.Checklist:
Preparation
Porting
Import
Create "CppQuiz is offline for $reason" pagePut warning about planned maintenance in headerTweet about planned maintenance/std:c++latest
(unfortunately,/std:c++23
is still not recognized) (thanks @tocic )The text was updated successfully, but these errors were encountered: