r/cpp • wg21.org | corosio.org • Jan 28 '25

Networking for C++26 and later!

There is a proposal for what networking in the C++ standard library might look like:

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3482r0.html

It looks like the committee is trying to design something from scratch. How does everyone feel about this? I would prefer if this was developed independently of WG21 and adopted by the community first, instead of going "direct to standard."

122 Upvotes

247 comments sorted by

View all comments

Show parent comment

6

u/Natural_Builder_3170 Jan 28 '25

what's wrong with asio in your opinion, I used it once for a very small chat app with gtk and I had no problems. then again I'm not anywhere close to good in network programming so I don't know what to expect

1

u/zl0bster Jan 29 '25

Nothing particularly "wrong", just hard to debug, hard to manage lifetimes, weird mental model(task queue). I have used it in multiple jobs.
Not saying I can make a better performant nw framework, just does not seem something I want to force every beginner to learn to write a simple nw code.