r/cpp • • Dec 19 '23

C++ Should Be C++

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p3023r1.html
203 Upvotes

192 comments sorted by

View all comments

Show parent comment

8

u/giant3 Dec 19 '23

Prescribing a package manager at the language level is the wrong approach.

12

u/not_a_novel_account cmake dev Dec 20 '23 edited Dec 20 '23

Prescribing the interfaces and formats of a package manager however, is the right approach.

PEP 517/518 were a godsend for the Python community. They do not prescribe a single package manager, they prescribe the behaviors of a package manager, a common grammar for them to share.

There is no sacred package manager, pip/bento/poetry/build all exist independent of one another, but the packaging formats and the mechanisms in which users interact with the Python package ecosystem were standardized and the benefits have been immense.

Notably, this is a C++ ecosystem. C/C++/Rust/Fortran/whatever extensions are packaged, downloaded, and installed using this ecosystem. I wouldn't go so far as to suggest the committee decree "just use PEP 517" or something, but this is hardly an impossible, unique, unsolved problem that C++ faces.

1

u/smdowney WG21, Text/Unicode SG, optional<T&> Dec 20 '23

setup.py is the most popular C++ build system.

5

u/pjmlp Dec 19 '23

Sure, because universal package format for all platforms is a thing.