logoalt Hacker News

nok22kontoday at 7:18 AM1 replyview on HN

wasn't there a lot of talk that modules are still not really working, in practice I mean?


Replies

pjmlptoday at 7:47 AM

Depends on where you are.

VC++ and clang latest with MSBuild or CMake/ninja are there, minus some bugs or code completion misbehaving (but bearable).

GCC 16 is mostly ok now, also with CMake/ninja.

All my hobby coding in C++ makes use of modules, at work it is a different matter, where libraries to be consumed by Java/.NET/nodejs, are still using C++17 as baseline.

You can easily check, https://github.com/pjmlp/RaytracingWeekend-CPP

Note the CMake version was tested initially with clang 17, and we're already on clang 22, so some of those comments are irrelevant nowadays, I haven't bothered to update the project.

Naturally if you cannot be on latest compiler releases, or suffer from CMake phobia, the support isn't there.

show 1 reply