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 comments

1

u/14ned LLFIO & Outcome author | Committee WG14 Jan 30 '25

You obviously don't spend much time not on POSIX.

I do (and I'm not including Windows), and I'd like to see anything which isn't platform dependent from POSIX and the major libc's into the standard. Especially on Freestanding/embedded.

We'll see how the committee likes or dislikes the idea. For some of the common string functions not yet in the standard library, we've actively refused because those string functions are in our opinion especially awful. And I'd agree with that. But for stuff like hash tables, binary searches, possibly even random number generation better than rand(), a lot of that stuff is very well understood by now. Warts and all. We'll see how it pans out, though I expect almost certainly the hardest part will be naming :)

1

u/pjmlp Jan 30 '25

Windows is not POSIX, regardless of WSL, and that is my main platform.

Also the mainframes and micros I might care about, all support POSIX.

Good luck for the efforts.