3 ms·
> Apparently the author never heard of C++ modules. I've been programming C++ professionally for 15 years. My work currently runs on Windows, macOS, and Androi
by forrestthewoods 5y ago
> Apparently the author never heard of C++ modules.
I've been programming C++ professionally for 15 years. My work currently runs on Windows, macOS, and Android. With a little Linux on rare occasion.
I've been hearing about C++ modules for, I dunno, 7 years? Thus far they have had literally zero impact on my both my job and my decision matrix. I do not anticipate they will be actually something I can use until at least 2024. I will be mildly surprised if C++ modules are in broad use in 2026.
I would have said similar things about Rust until recently. I definitely can't replace all my C++ code with Rust. But I can use Rust to write new CLI tools and write certain libraries.
- pjmlp 5y agoJust like I happen to use modules in 2021 with Visual C++. Also clang has supported Apple/Google's point of view for quite sometime with header maps....
- forrestthewoods 5y agoThat's cool I guess. Modules do have partial support in all the major compilers. I'm not sure what that venn diagram looks like. If you wanna argue that modules are ready for primetime and businesses should start converting their codebases to use them then go for it. But it's a pretty obvious fact that almost no one is using modules outside of hobby projects. I don't think I've seen a single significant C++ based project linked on HackerNews that uses modules. I'm sure a few did and I didn't notice. Header files in C++ are hugely problematic. It's why the module system was designed. That system is not ready to actually be used by the vast majority of C++ programmers on the vast majority of C++ projects. Even if you happen to be using it right now in your hobby projects or even your job. I hope someday modules are ready and make my life better. It'll be a few years at bare minimum. I'm not fully convinced C++ modules will be standard convention 10 years from now. I think there's a real chance they wither and die on the vine. I hope not! But it's definitely a possibility.
- pjmlp 5y agoJust as much as I would be arguing that Rust is ready for all kinds of C++ workloads.
- deleted 5y ago[deleted]
- forrestthewoods 5y agoWe were discussing a specific claim you made that was unreasonable. No moving the goal posts to unspecific claims that haven’t been made yet!
- pjmlp 5y agoI am not moving goal post at all, you're the one that implying I was arguing about C++ modules being ready for prime time. Well they are as ready for prime time, as Rust is for a large majority of C++ use cases.
- forrestthewoods 5y agoThe goal posts have moved too far for me. Good luck.