|
|
Subscribe / Log in / New account

But why

But why

Posted Oct 13, 2024 13:59 UTC (Sun) by mathstuf (subscriber, #69389)
In reply to: But why by StillSubjectToChange
Parent article: An update on gccrs development

> For instance, MSVC has "supported" modules for quite some time now, yet it's quite difficult to find *anyone* (outside of MS at least) who genuinely uses them.

MSVC's module support is ahead of the other implementations IME. Adoption issues have mostly been related to tooling and using modules. Now that CMake[1] has (experimental) support for `import std;` (MSVC and Clang only right now), I think that it is a good time for projects to start investigating modules usage and file issues to compilers for what needs fixing on their side. There's still work to be done on non-compiler, non-build tooling, but I'm working on that too[2].

And I am interesting in modules adoption ecosystem-wide, not just for CMake. I've gone to many build systems trying to get modules support (e.g., xmake[3], tup[4], meson[5], bazel[6]) implemented. There's also the "Are We Modules Yet?"[7] page which aims to track progress.

[1] Full disclosure: I'm a CMake developer and implemented its C++ modules support.
[2] https://cppcon2024.sched.com/event/1gZg8/beyond-compilati...
[3] https://github.com/xmake-io/xmake/issues/386
[4] https://groups.google.com/g/tup-users/c/FhJTA6KAzWU/m/t5P...
[5] https://github.com/mesonbuild/meson/issues/5024#issuecomm...
[6] https://github.com/bazelbuild/bazel/pull/19940#issuecomme...
[7] https://arewemodulesyet.org/


to post comments

But why

Posted Oct 13, 2024 15:52 UTC (Sun) by intelfx (subscriber, #130118) [Link] (1 responses)

> Full disclosure: I'm a CMake developer and implemented its C++ modules support

Can we bribe you with beer and/or cookies to write a guest article for LWN on the state of C++ modules? :-)

I remember one of your multi-screen comments talking about modules a few months ago and I would *love* to see it in form of an article...

But why

Posted Oct 13, 2024 20:11 UTC (Sun) by mathstuf (subscriber, #69389) [Link]

Sure, cookies are more enticing than alcohol for me :) . COI policies may have things to say about actually fulfilling such an offer, but I'll put in a request to do something for LWN (we have our own blog as well, so cross-posting or the like may need considered).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds