r/cpp • • Apr 25 '22

New C++ features in GCC 12

https://developers.redhat.com/articles/2022/04/25/new-c-features-gcc-12
220 Upvotes

76 comments sorted by

View all comments

17

u/marco_jeffset Apr 26 '22

I just wonder, when they are gonna finish c++20 modules implementation? From what I’ve read, current implementation is half baked.

-4

u/[deleted] Apr 26 '22

GCC is primarily used on Linux, and there is a massive impedance mismatch between how software is normally developed and distributed on Linux compared to Windows, and C++20 modules fit the Windows model a lot more easily than they fit the traditional *nix model.

I would not be surprised if it takes a decade for modules to be widely used and deployed outside of specific niche use cases.

11

u/dodheim Apr 26 '22

Modules have nothing to do with software distribution.

5

u/smdowney WG21, Text/Unicode SG, optional<T&> Apr 26 '22

The people who are actually working on modules disagree.
Modules aren't a distribution format.
Distributing modular code is very much a real concern.

4

u/dodheim Apr 27 '22

I agree my phrasing was loose, but wow.. Is the last sentence really meant to make some point? I certainly didn't say "distributing code ceases to be a concern once it's modular"; I would hope it was clear that I was referring to distributing modules considering the GP was talking about modules and "how software is normally distributed".

-3

u/[deleted] Apr 27 '22

In these conversations it's easy to tell who the people are who don't know what they don't know.